22.07.2012, 16:25
Quote:
pawn Код:
|
Код:
(939) : warning 209: function "OnPlayerKeyStateChange" should return a value (954) : error 078: function uses both "return" and "return <value>" (963) : error 078: function uses both "return" and "return <value>"
Код:
if(!gPlayerUsingLoopingAnim[playerid]) return; if(IsKeyJustDown(KEY_SECONDARY_ATTACK,newkeys,oldkeys)) { StopLoopingAnim(playerid); TextDrawHideForPlayer(playerid,txtAnimHelper); } if (PRESSED(KEY_FIRE)) { AddVehicleComponent(GetPlayerVehicleID(playerid),1010); } if(newkeys & KEY_SUBMISSION) { if (IsPlayerInAnyVehicle(playerid)) { if((GetPlayerVehicleID(playerid) == 520) || (GetPlayerVehicleID(playerid) == 425) || (GetPlayerVehicleID(playerid) == 464)) { return 1; } else { new Float:vx, Float:vy, Float:vz; GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz); SetVehicleVelocity(GetPlayerVehicleID(playerid) ,vx*2,vy*2 ,vz*2); } } } return 1; }