SA-MP Forums Archive
Why does this give me a 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: Why does this give me a tag mismatch? (/showthread.php?tid=406571)



Why does this give me a tag mismatch? - 101 - 10.01.2013

pawn Код:
new tax = (PlayerData[i][pBank]*0.05);

Error:
warning 213: tag mismatch

1 Warning.


Re: Why does this give me a tag mismatch? - Fabio11 - 10.01.2013

Try
pawn Код:
new float:tax = PlayerData[i][pBank] * 0.05;



Re : Why does this give me a tag mismatch? - yusei - 10.01.2013

Delete


Re: Why does this give me a tag mismatch? - Vince - 10.01.2013

Because you are trying to store a float in an integer.




Re : Why does this give me a tag mismatch? - piiap - 10.01.2013

It's a number Float,

pawn Код:
new Float:tax = PlayerData[i][pBank]*0.05;



Re: Why does this give me a tag mismatch? - 101 - 10.01.2013

Well that was a fail lol. Thanks guys.