How ? - 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: How ? (
/showthread.php?tid=537558)
How ? -
MasonSFW - 16.09.2014
I want to check players skin if not id 240
pawn Код:
if(!Player[playerid][pChar] == 240)
{
SetPlayer(playerid, 0);
}
pawn Код:
warning 213: tag mismatch
Re: How ? -
MikeEd - 16.09.2014
pawn Код:
if(GetPlayerSkin != 240)
{
SetPlayer(playerid,0);
}
AW: How ? -
Harry :) - 16.09.2014
not sure if !... works, never actually tried but "if not" is actuall != instead of ==
Re: How ? -
biker122 - 16.09.2014
You're using a separate variable pChar, so you should use it like this:
pawn Код:
if(Player[playerid][pChar] != 240)
{
SetPlayer(playerid, 0);
}
Re: How ? -
MasonSFW - 16.09.2014
Worked Thank you, Biker That easy but i forgot :P rep'ed