SA-MP Forums Archive
2 Errors - 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: 2 Errors (/showthread.php?tid=607607)



2 Errors - RedRex - 21.05.2016

Hello i got 2 Errors idk how to fix it lol

Codes :

PHP код:
if (P_DATAplayerid ][ P_Level ] < 1)return SendClientMessage(playerid"You are not high enough level to use this commands"); 
PHP код:
    if (P_DATAplayerid ][ P_Level ] < 1)return SendClientMessageplayerid"You are not high enough level to use this commands"); 
How to fix it


Re: 2 Errors - WhiteGhost - 21.05.2016

Anyways whats the errors?
Edit: Oh Yeah


Re: 2 Errors - Sawalha - 21.05.2016

you didn't add the color parameter in SendClientMessage, assuming that the color is white;

just add the parameter:
Код:
    if (P_DATA[ playerid ][ P_Level ] < 1)return SendClientMessage( playerid, -1, "You are not high enough level to use this commands");
-1 here's the color as the function's structure is SendClientMessage(playerid, color, message[]);


Re: 2 Errors - RedRex - 21.05.2016

Fixed Thanks Sawalha