function "cmd_allowwar" should return a value
#1

C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(2395 : warning 209: function "cmd_allowwar" should return a value

Код:
//========================================[CMD /ALLOWWAR]====================================================//
CMD:allowwar(playerid,params[])
{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] >= 5)
	        {
	            if(Warallowed == 0) { Warallowed = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "{0066FF}Ai permis jucatorilor sa porneasca razboaie!"); return 1; }
	            if(Warallowed == 1) { Warallowed = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "{0066FF}Ai interzis jucatorilor sa porneasca razboaie!"); return 1; }
	        }
	    }
	}
//return /allowwar
CMD:aw(playerid, params[])
{
return cmd_allowwar(playerid, params);
}
Reply
#2

Код:
CMD:allowwar(playerid,params[])
{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] >= 5)
	        {
	            if(Warallowed == 0) { Warallowed = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "{0066FF}Ai permis jucatorilor sa porneasca razboaie!"); return 1; }
	            if(Warallowed == 1) { Warallowed = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "{0066FF}Ai interzis jucatorilor sa porneasca razboaie!"); return 1; }
	        }
	    }
	    return 1;
}
Reply
#3

pawn Код:
//========================================[CMD /ALLOWWAR]====================================================//
CMD:aw(playerid, params[])
    return cmd_allowwar(playerid, params);

CMD:allowwar(playerid,params[])
{
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 5)
            {
                if(Warallowed == 0) { Warallowed = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "{0066FF}Ai permis jucatorilor sa porneasca razboaie!"); return 1; }
                if(Warallowed == 1) { Warallowed = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "{0066FF}Ai interzis jucatorilor sa porneasca razboaie!"); return 1; }
            }
        }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)