SA-MP Forums Archive
what should i di for that errors {7} - 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: what should i di for that errors {7} (/showthread.php?tid=611275)



what should i di for that errors {7} - vikoo - 04.07.2016

hello,when iam added new clans i get 7 errors but iam not understand why i got it
and it's works in onther gamemode
this line have more 4 errors:

Quote:

AFK[playerid] = Create3DTextLabel("AFK", 0xFF0000FF, 0.0, 0.0, 2.0, 40, 0, 0);

and this line have 1 error:
Quote:

SendMessageToPlayer(playerid,0x99FF00AA,"Type /back when you back.");

here 1 error:
Quote:

} else return SendMessageToPlayer(playerid,COLOR_RED,"ERROR: You must be [SS] higher level to use this command");

here 1 error :
Quote:

} else return SendMessageToPlayer(playerid,COLOR_RED,"ERROR: You must be a SS member to use this command");}




Re: what should i di for that errors {7} - Sew_Sumi - 04.07.2016

Code:
 else return SendMessageToPlayer(playerid,COLOR_RED,"ERROR: You must be a SS member to use this command");}
You've got an extra brace ( } ) on that line... Chances are that the braces are your issue.

You'll need to review your code.


Re: what should i di for that errors {7} - Rubey - 04.07.2016

You don't mistaken with "SendClientMessage"?


Re: what should i di for that errors {7} - Dayrion - 04.07.2016

This should SendClientMessage instead of SendMessageToPlayer and AFK[playerid] looks like not defined.
Have you new AFK[MAX_PLAYERS]; near the top of your script?


Re: what should i di for that errors {7} - vikoo - 04.07.2016

i will try that thx all