What's wrong ?
#1

Why would this give me errors ?

Код:
	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.
Reply


Messages In This Thread
What's wrong ? - by marinov - 11.11.2010, 21:00
Re: What's wrong ? - by The_Moddler - 11.11.2010, 21:14
Re: What's wrong ? - by marinov - 11.11.2010, 21:16
Re: What's wrong ? - by marinov - 11.11.2010, 21:19
Re: What's wrong ? - by Lenny the Cup - 11.11.2010, 22:53
Re: What's wrong ? - by marinov - 12.11.2010, 00:57

Forum Jump:


Users browsing this thread: 1 Guest(s)