Results 1 to 5 of 5
  1. #1
    ZrioXoirZ's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0

    PLAYER::GET_PLAYER_NAME

    Hello Guyz
    First my code I'm using

    void ZRIOMENU_MENU_13()
    {
    ZRIOMENU_DRAW_4("~o~PLAYERS");

    for (int i = 0; i < 30; i++)
    {
    ZRIOMENU_OPTION_1(PLAYER::GET_PLAYER_NAME(i)); //ADD OPTION
    }
    if (ZRIOMENU_OPTION_12 && PLAYER::IS_PLAYER_PLAYING(ZRIOMENU_OPTION_10 - 1))
    {
    ZRIOMENU_INFORMATION_1 = ZRIOMENU_OPTION_10 - 1; //SELECTED PLAYER
    ZRIOMENU_MENU_1(11); //SUB MENU
    }

    ZRIOMENU_MENU_NORMAL_1();
    }

    So and u know if there is no player name u get **invalid** as answer but how can I change **invalid** to something different?

  2. #2
    Mr Krabs's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Eclipse Towers 3, Rockford Hills
    Posts
    343
    Reputation
    10
    Thanks
    79
    My Mood
    Psychedelic
    Probably It's the game that give's the invalid. I'm not coding and I don't know how to code, but it will make more sense since you are looking for a slot and the game returns **invalid** as there is no player. My best suggestion to make a player list that will only show the players online, and not a full list with invalid. like if there is only 2 players then only 2 slots appears:

    Nig1337Nog
    BlasterMaster

    and not:

    Nig1337Nog
    **invalid**
    **invalid**
    **invalid**
    **invalid**
    **invalid**


    Get me ?

  3. #3
    dariowouters's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    2
    My Mood
    Lurking
    You can use GET_PLAYER_PED(i) to check if there is a player.

    If it doesn't return null then add a menu line.

  4. #4
    ZrioXoirZ's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    Thx a lot for ur tips

  5. #5
    Dakota's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    8,332
    Reputation
    648
    Thanks
    1,680
    Seems about answered so marked as solved and closed.

Similar Threads

  1. Windows Media Player 10
    By 1h1a1i in forum Hardware & Software Support
    Replies: 32
    Last Post: 07-14-2006, 04:50 PM
  2. Watch Out, Warrock Players Are Spying
    By System79 in forum General
    Replies: 13
    Last Post: 07-11-2006, 12:14 AM
  3. Windows Media Player 11
    By stingray001 in forum General
    Replies: 9
    Last Post: 05-30-2006, 01:30 PM
  4. offline player
    By naughtynurse in forum Gunz General
    Replies: 2
    Last Post: 03-21-2006, 09:16 PM
  5. Can u use the gain experience hack with 1 player
    By mjt20mik in forum WarRock - International Hacks
    Replies: 7
    Last Post: 02-05-2006, 02:20 AM