19.07.2015, 20:54
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); }