SA-MP Forums Archive
Tag Mismatch with Float - 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 with Float (/showthread.php?tid=419438)



Tag Mismatch with Float - jakejohnsonusa - 28.02.2013

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!


Re: Tag Mismatch with Float - austin070 - 28.02.2013

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]



Re: Tag Mismatch with Float - jakejohnsonusa - 28.02.2013

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


Re: Tag Mismatch with Float - austin070 - 28.02.2013

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