03.11.2009, 20:43
Код:
(3989) : warning 209: function "SetPlayerFightStyle" should return a value (3990) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
public SetPlayerFightStyle(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pFightStyle] == 1)//Kick_Boxinng { SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK); } else if(PlayerInfo[playerid][pFightStyle] == 2)//Kung_Fu { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU); } else if(PlayerInfo[playerid][pFightStyle] == 3)//Boxing { SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING); } else if(PlayerInfo[playerid][pFightStyle] == 4)//Street_Fight { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); } } } <----line 3389 return 1; <----line 3390 }