Vehicle Health
#1

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
Reply
#2

health and vVehicleHealth need to be floats.
Reply
#3

SOLVED!
Reply
#4

vVehicleHealth is probably not a float..
Reply
#5

Are you sure vVehicleHeath is float?
Reply
#6

Show this line

pawn Код:
new vehicleVariables
Reply
#7

Oh, Thank You All, forgot enums :fp

Rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)