Tag Mismatch with Float
#1

I'm having trouble setting CarInfo[car][cEngine] in my GM to the float engine. The code is bellow, I keep getting Tag Mismatch...
pawn Код:
new Float:engine;
GetVehicleHealth(car, engine);
CarInfo[car][cEngine] = engine;//Error Here
Anyone know how I can fix this?

Thanks in advance!
Reply
#2

Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
I'm having trouble setting CarInfo[car][cEngine] in my GM to the float engine. The code is bellow, I keep getting Tag Mismatch...
pawn Код:
new Float:engine;
GetVehicleHealth(car, engine);
CarInfo[car][cEngine] = engine;//Error Here
Anyone know how I can fix this?

Thanks in advance!
Define
pawn Код:
CarInfo[car][cEngine]
as
pawn Код:
Float:CarInfo[car array][cEngine]
Reply
#3

Sorry I'm not the best scripter, what is "car array" wouldn't it be "car" ?
Reply
#4

Go to wherever CarInfo[][] is defined and paste it here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)