if(strcmp(cmd, "/human", true) ==0) { if(team[playerid] == 0) { team[playerid] = 1; SendClientMessage(playerid,GREEN,"You may now spawn."); HideMenuForPlayer(mainmenu,playerid); return 1; } else { team[playerid] = 1; SetPlayerHealth(playerid, 0); return 1; } }
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1191) : warning 225: unreachable code C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1191) : error 029: invalid expression, assumed zero C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1193) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
if(!strcmp(cmd, "/human", true))
{
if(team[playerid] == 0)
{
team[playerid] = 1;
SendClientMessage(playerid,GREEN,"You may now spawn.");
HideMenuForPlayer(mainmenu,playerid);
}
else //
{ //
team[playerid] = 1; //
SetPlayerHealth(playerid, 0); //
} // WTF IS ALL OF THIS?
else // What did you try to do? lol
{ //
GetPlayerScore(playerid) == 0;//lol //
team[playerid] = 2 //
}
return 1;
}
if(strcmp(cmd, "/human", true) ==0) { if(team[playerid] == 0) { team[playerid] = 1; SendClientMessage(playerid,GREEN,"You may now spawn."); HideMenuForPlayer(mainmenu,playerid); return 1; } else { team[playerid] = 1; SetPlayerHealth(playerid, 0); return 1; } }
pawn Код:
|