SetPlayerHealth(playerid,80); SendClientMessage(playerid,0x800bd9AA,\"(( Ütköztél! ))\"); RemovePlayerFromVehicle(playerid); } case; { ApplyAnimation( playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0 ); }
SetPlayerHealth(playerid,80);SendClientMessage(playerid,0x800bd9AA,\"(( Ütköztél! ))\");RemovePlayerFromVehicle(playerid);ApplyAnimation( playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0 );
SetPlayerHealth(playerid, 80.0);RemovePlayerFromVehicle(playerid);new Float:health;GetPlayerHealth(playerid,health);if (health < 80.0){ ApplyAnimation( playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0 );}
C:\\DOCUME~1\\szabi\\Asztal\\server\\GAMEMO~1\\rpmod.pwn(249) : warning 219: local variable \"health\" shadows a variable at a preceding level
public OnVehicleDamageStatusUpdate(vehicleid,playerid){ new Float:health; new veh; veh = GetPlayerVehicleID(playerid); GetVehicleHealth(veh, health); if(health <= 0 || health <= 900) { SetPlayerHealth(playerid, 80.0); RemovePlayerFromVehicle(playerid); new Float:health; GetPlayerHealth(playerid,health); if (health < 80.0){ ApplyAnimation( playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0 );} }}
public OnVehicleDamageStatusUpdate(vehicleid,playerid){ new Float:health; new veh; veh = GetPlayerVehicleID(playerid); GetVehicleHealth(veh, health); if(health <= 0 || health <= 900) {SetPlayerHealth(playerid, 80.0);RemovePlayerFromVehicle(playerid);}new Float:health2;GetPlayerHealth(playerid,health2);if (health2 < 80.0){ ApplyAnimation( playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0 );}}
public OnVehicleDamageStatusUpdate( vehicleid, playerid ){ new Float: fHealth; GetVehicleHealth( vehicleid, fHealth ); if( fHealth <= 900 ) { SetPlayerHealth( playerid, 80.0 ); RemovePlayerFromVehicle( playerid ); ApplyAnimation( playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0 ); } return 1;}