C:\Documents and Settings\Laur\Desktop\DM\gamemodes\deathmatch.pwn( 825) : error 012: invalid function call, not a valid address C:\Documents and Settings\Laur\Desktop\DM\gamemodes\deathmatch.pwn( 825) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Laur\Desktop\DM\gamemodes\deathmatch.pwn( 825) : error 029: invalid expression, assumed zero C:\Documents and Settings\Laur\Desktop\DM\gamemodes\deathmatch.pwn( 825) : fatal error 107: too many error messages on one line |
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_SUBMISSION) { if (IsPlayerInAnyVehicle(playerid)) { new Float:health; new vehicleid = GetPlayerVehicleID(playerid); GetVehicleHealth(vehicleid, health); if (health < 995) { RepairVehicle(GetPlayerVehicleID(playerid)); } } } if(newkeys == KEY_JUMP) { if(Planted[playerid] == 1) { GivePlayerWeapon(playerid, 40, 1); ClearAnimations(playerid); ApplyAnimation(playerid,"PED","bomber",4.0,0,0,0,0 ,1000); SetTimerEx("Explode", 1200, 0, "i", playerid); return 1; } } if(newkeys & KEY_FIRE && IsPlayerInAnyVehicle(playerid)) { if(!IsNosVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid,0xFF0000AA , "You can not add nitro to the vehicle"); AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); } return 1; } |
RepairVehicle(GetPlayerVehicleID(playerid)); |
RepairVehicle(GetPlayerVehicleID(playerid));
new vehicleid = GetPlayerVehicleID(playerid);
RepairVehicle(vehicleid);