02.01.2016, 17:04
I get this!
Код:
./includes/callbacks.pwn(6792) : warning 202: number of arguments does not match definition ./includes/callbacks.pwn(6798) : error 017: undefined symbol "Panel" ./includes/callbacks.pwn(6798) : error 001: expected token: ";", but found "]" ./includes/callbacks.pwn(6798) : error 029: invalid expression, assumed zero ./includes/callbacks.pwn(6798) : fatal error 107: too many error messages on one line
PHP код:
public OnVehicleDamageStatusUpdate(vehicleid,playerid)
{
new panels, doors, lights, tires, Float:speed = GetPlayerSpeed(playerid, true);
foreach (Player,i)
{
if(IsPlayerConnected(i) && GetPlayerVehicleID(i) == vehicleid)
{
GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
if(PlayerVehicleInfo[GetPlayerVehicleID(playerid)][Panel] != panels || VehicleInfo[GetPlayerVehicleID(playerid)][Doors] != doors)
{
if(speed >= 60.0)
{
new Float:health;
GetPlayerHealth(i,health);
switch(GetPVarInt(i, "Seatbelt"))
{
case 0:
{
SetPlayerHealth(i,health-20.0);
}
case 1:
{
SetPlayerHealth(i,health-1.0);
}
}
}
}
}
}
return true;
}