09.08.2009, 13:47
Compile:
Script:
First off, i do not want to define a TARGETED vehicle id, i want everyone who is in a vehicle that its health reached 300, then it TogglePlayerControllable to 0
And when he gets out of the car, the nearexplow goes to false..
Код:
C:\Documents and Settings\Administrator\Desktop\samp02Xserver.win32\filterscripts\nearexplow.pwn(8) : error 017: undefined symbol "vehicleid" C:\Documents and Settings\Administrator\Desktop\samp02Xserver.win32\filterscripts\nearexplow.pwn(14) : error 076: syntax error in the expression, or invalid function call Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
pawn Код:
#include <a_samp>
new nearexplow[MAX_PLAYERS];
forward OnPlayerUpdate(playerid);
new Float:vHealth;
public OnPlayerUpdate(playerid)
{
GetVehicleHealth(vehicleid, vHealth);
if (vHealth < 300.0)
{
TogglePlayerControllable(playerid, 0);
nearexplow[playerid]=true;
}
if (TogglePlayerControllable == 1)
{
nearexplow[playerid]=false;
}
return 1;
}
And when he gets out of the car, the nearexplow goes to false..