Help with string
#1

I need a little help with a string.

I want to get the player's color.

I want to put the string inside here:

PHP код:
SetPlayerFlashColor(playerid41COLOR_PURPLEHERE_THE_STRING); 
Please help.
Reply
#2

GetPlayerColor returns the player's color (It returns 0 if it has never been used)

Use it like this:
Код:
SetPlayerFlashColor(playerid, 4, 1, COLOR_PURPLE, GetPlayerColor(playerid));
Reply
#3

Use it like that:
Код:
pName(playerid)
{
    new pNameS[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pNameS, MAX_PLAYER_NAME);
    return pNameS;
}

SetPlayerFlashColor(playerid, 4, 1, COLOR_PURPLE, pName);
need to repeat the lines.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)