Tag Mismatch - 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 (
/showthread.php?tid=379541)
Tag Mismatch -
vIBIENNYx - 22.09.2012
This is where the warning is:
pawn Код:
if(vdoorslocked[VehicleID] == false)
However, the code works as expected despite getting the following warning:
pawn Код:
warning 213: tag mismatch
Any idea's how I can fix the warning or, ignore it so to speak?
Re: Tag Mismatch -
Red_Dragon. - 22.09.2012
They are floats, just declare your array
Re: Tag Mismatch -
Danyal - 22.09.2012
replace this
pawn Код:
if(vdoorslocked[VehicleID] == false)
with this
vehicleid should be in small alphabet
pawn Код:
if(vdoorslocked[vehicleid] == false)
Re: Tag Mismatch -
vIBIENNYx - 22.09.2012
The lowercased array isn't the issue, it's the "== false/true"
Re: Tag Mismatch -
Red_Dragon. - 22.09.2012
Ok so changed it ?
Re: Tag Mismatch -
Danyal - 22.09.2012
Quote:
Originally Posted by vIBIENNYx
The lowercased array isn't the issue, it's the "== false/true"
|
then use 0 or 1 becoz
false return as 0
and true return as 1
Re: Tag Mismatch -
vIBIENNYx - 22.09.2012
Thanks ^^ Repped.