30.11.2013, 16:37
I made this:
And I get this errors:
What to do?
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/help", true)) { SendClientMessage(playerid, 0xFFFFFFFF, "To be updated."); return 1; // Returning 1 informs the server that the command has been processed. // OnPlayerCommandText won't be called in other scripts. } return 0; // Returning 0 informs the server that the command hasn't been processed by this script. // OnPlayerCommandText will be called in other scripts until one returns 1. // If no scripts return 1, the 'SERVER: Unknown Command' message will be shown. } if(!strcmp(cmdtext, "/help", true)) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, 0xFFFFFFFF, "To be updated."); } return 1; }
Код:
F:\Jocuri, programe\Game-Mode\samp03x_svr_R2_win32\gamemodes\game.pwn(97) : error 010: invalid function or declaration F:\Games\Game-Mode\....\gamemodes\game.pwn(99) : error 010: invalid function or declaration F:\Games\Game-Mode\....\gamemodes\game.pwn(103) : error 010: invalid function or declaration