Tag mismatch and number of arguments does not match definition - 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: Tag mismatch and number of arguments does not match definition (
/showthread.php?tid=657138)
Tag mismatch and number of arguments does not match definition -
R3SpaWn0 - 01.08.2018
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
Re: Tag mismatch and number of arguments does not match definition -
NaS - 01.08.2018
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.
Re: Tag mismatch and number of arguments does not match definition -
R3SpaWn0 - 01.08.2018
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