Omg what happend? - 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: Omg what happend? (
/showthread.php?tid=624778)
Omg what happend? -
Thanks - 22.12.2016
LoL? What happened here? I GOT 1 ERROR ...
Код:
error 001: expected token: ")", but found "return"
The Line:
Код:
if((GetPlayerSkin(285)) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]: Go Away From here");
Re: Omg what happend? -
K0P - 22.12.2016
Код:
if((GetPlayerSkin(285)) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]: Go Away From here");
You were using dubble brackets after "if"
Use this code:
Код:
if(GetPlayerSkin(285)) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]: Go Away From here");
Re: Omg what happend? -
AjaxM - 22.12.2016
The code below should fix it.
PHP код:
if(GetPlayerSkin(playerid) == 285) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]: Go Away From here");
Re: Omg what happend? -
K0P - 22.12.2016
Quote:
Originally Posted by AjaxM
PHP код:
if(GetPlayerSkin(playerid) == 285) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]: Go Away From here");
|
Oh,and yeah didn't noticed that mistake ^
Nice Ajax