21.04.2011, 07:32
Hello everyone.
I was making a tiny command but whenever I compile my server I get 3 warnings:
For the command I made (the warnings are in line 4):
Could anybody tell me what is wrong?
Thanks
I was making a tiny command but whenever I compile my server I get 3 warnings:
PHP Code:
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
PHP Code:
if(strcmp(cmdtext,"/kill",true) == 0){
GetPlayerPos(playerid,spawnX[playerid],spawnY[playerid],spawnZ[playerid]);
for(new i=0; i<sizeof(spawnInfo); i++){
if(spawnInfo[i][0] == spawnX[playerid] && spawnInfo[i][1] == spawnY[playerid] && spawnInfo[i][2] == spawnZ[playerid])return SendClientMessage(playerid,COLOR_WARNING, "Warning: you are not allowed to use this command to spawn positions!");
}
return SetPlayerHealth(playerid,0.0);
}
Thanks