SA-MP Forums Archive
SetPlayerColor When player Select a class[help] - 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: SetPlayerColor When player Select a class[help] (/showthread.php?tid=601577)



SetPlayerColor When player Select a class[help] - RedRex - 23.02.2016

Hi Guys How to Setplayercolor when select a class i try to type this but Failed If u have a any Tutuirol plesae tell me
this error
Код:
LVCNR.pwn(107) : error 035: argument type mismatch (argument 2)
and i try to type
Код:
//SWAT
    AddPlayerClass(285,1311.3173,1256.3123,10.8203,339.5134,0,0,0,0,0,0); //SWAT Spawn
		SetPlayerColor(COLOR_LIGHTBLUE);
		SendClientMessage(COLOR_RED, "You are now team with SWAT");



Re: SetPlayerColor When player Select a class[help] - Sithis - 23.02.2016

Check the wiki for SendClientMessage and SetPlayerColor.


Re: SetPlayerColor When player Select a class[help] - RedRex - 23.02.2016

lol bro i did it But its still not work !_!


Re: SetPlayerColor When player Select a class[help] - Sithis - 23.02.2016

You didn't or you are simply unable to follow very simple examples.

Check the wiki. Compare the code on the wiki with your own code. You are missing something very simple and obvious.


Re: SetPlayerColor When player Select a class[help] - RedRex - 23.02.2016

Look When i type it What i get ?
Код:
LVCNR.pwn(106) : error 017: undefined symbol "playerid"
LVCNR.pwn(107) : error 017: undefined symbol "playerid"
And the Codes
Код:
AddPlayerClass(285,1311.3173,1256.3123,10.8203,339.5134,0,0,0,0,0,0); //SWAT Spawn
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Testing");
    SetPlayerColor(playerid, 0x33CCFFAA);



Re: SetPlayerColor When player Select a class[help] - Sithis - 23.02.2016

Maybe show the entire piece of code?


Re: SetPlayerColor When player Select a class[help] - Smokkr - 23.02.2016

Did you put these 2 lines OnPlayerSpawn ? after selecting the SWAT team?


Re: SetPlayerColor When player Select a class[help] - RedRex - 23.02.2016

no only 1 line


Re: SetPlayerColor When player Select a class[help] - MicroKyrr - 23.02.2016

Код:
if(GetPlayerSkin(playerid) == 285)
{
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Testing");
    SetPlayerColor(playerid, 0x33CCFFAA);
I'm sleepy so correct me if i'm wrong

*Remember* You forget the rep last time


Re: SetPlayerColor When player Select a class[help] - RedRex - 23.02.2016

Quote:
Originally Posted by MicroKyrr
Посмотреть сообщение
Код:
if(GetPlayerSkin(playerid) == 285)
{
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Testing");
    SetPlayerColor(playerid, 0x33CCFFAA);
I'm sleepy so correct me if i'm wrong

*Remember* You forget the rep last time
Thanks worked I will rep u