SA-MP Forums Archive
Help with string - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with string (/showthread.php?tid=612409)



Help with string - Fantje - 17.07.2016

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.


Re: Help with string - Stinged - 17.07.2016

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));



Re: Help with string - FrAnKiN1 - 17.07.2016

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.