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
#2

pawn Код:
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;
}
Reply
#3

wow my bad, I copied some extra stuff there xD


Код:
	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;
 		}
	}
Reply
#4

Nevermind already fixed, thx anyways
Reply
#5

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
pawn Код:
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;
}
I'm sorry but this is just hillarious xD Thanks for the refreshing posts guys
Reply
#6

lol I agree that was funny
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)