Vehicle Health - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle Health (
/showthread.php?tid=337413)
Vehicle Health -
Ld Est Ld - 26.04.2012
Hello, I have a problem.
If my Car is broken, then it should write the health value of car to MySQL, but I'm getting the Warning. Tag mismatch.
Код:
if(health <= 375)
{
SendClientMessage(i, COLOR_LIGHTBLUE, "Your car is broken.");
SetVehicleParamsEx(GetPlayerVehicleID(i),VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
vehicleVariables[vehicleid][vVehicleHealth] = health;
}
Код:
vehicleVariables[vehicleid][vVehicleHealth] = health;
--- Error Line
Re: Vehicle Health -
PrawkC - 26.04.2012
health and vVehicleHealth need to be floats.
Re: Vehicle Health -
Ld Est Ld - 26.04.2012
SOLVED!
Re: Vehicle Health -
PrawkC - 26.04.2012
vVehicleHealth is probably not a float..
Re: Vehicle Health -
404 Not Found - 26.04.2012
Are you sure vVehicleHeath is float?
Re: Vehicle Health -
MadeMan - 26.04.2012
Show this line
Re: Vehicle Health -
Ld Est Ld - 26.04.2012
Oh, Thank You All, forgot enums :fp
Rep+