SetPlayerColor When player Select a class[help]
#1

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");
Reply
#2

Check the wiki for SendClientMessage and SetPlayerColor.
Reply
#3

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

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.
Reply
#5

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);
Reply
#6

Maybe show the entire piece of code?
Reply
#7

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

no only 1 line
Reply
#9

Код:
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
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)