Tag mismatch and number of arguments does not match definition
#1

PHP код:
CarData[carid][carVehicle] = CreateVehicle(CarData[carid][carModel], CarData[carid][carPos][0], CarData[carid][carPos][1], CarData[carid][carPos][2], CarData[carid][carPos][3], CarData[carid][carColor1], CarData[carid][carColor2], CarData[carid][carFuel], CarData[carid][carHealth], (CarData[carid][carOwner] != 0) ? (-1) : (1200000)); 
on this line

warning 213: tag mismatch
warning 202: number of arguments does not match definition

when i add the 2 last, carHealth and carFuel, why?!! :S
Reply
#2

carHealth and carFuel do not exist in that function. For fuel you need to add a custom Fuel system, for health you can set the car's health when creating it:

Код:
SetVehicleHealth(CarData[carid][carVehicle], CarData[carid][carHealth]);
If you already have the fuel system, the value in the array should already have that value I guess.
Reply
#3

Quote:
Originally Posted by NaS
Посмотреть сообщение
carHealth and carFuel do not exist in that function. For fuel you need to add a custom Fuel system, for health you can set the car's health when creating it:

Код:
SetVehicleHealth(CarData[carid][carVehicle], CarData[carid][carHealth]);
If you already have the fuel system, the value in the array should already have that value I guess.
Dude you saved my life !! i love you !<3 <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)