26.08.2012, 10:48
Well I'm making a game mode, when I was going to compile I found this error
[quote]C:\Users\ADM WINDOW 7\Documents\gamemodes\Untitled.pwn(9
: error 030: compound statement not closed at the end of file (started at line 80)
the codes
[quote]C:\Users\ADM WINDOW 7\Documents\gamemodes\Untitled.pwn(9
: error 030: compound statement not closed at the end of file (started at line 80)the codes
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new idx;
new cmd[256];
new string[256];
if(strcmp(cmd, "/cmds", true) == 0) {
SendClientMessage(playerid,COLOR_PSAT,"/cmds");
SendClientMessage(playerid,COLOR_PSAT,"/kill");
SendClientMessage(playerid,COLOR_PSAT,"Have you have some question? Contact some admin stuff or go to our forums <forum>");
return 1;
}
if(strcmp(cmd, "/kill", true) == 0) {
SetPlayerHealth(playerid,0);
SetPlayerArmour(playerid,0);
SendClientMessage(playerid,COLOR_PSAT,"You have killed yourself!!");
return 1;
}

