SolvedPLAYER::GET_PLAYER_NAME

Posts 15 of 5 · Page 1 of 1
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?
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 ?
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.
Thx a lot for ur tips
Seems about answered so marked as solved and closed.
Posts 15 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?