Tag mismatch... Why?
#1

Hello!

I have a warning in this ligne:

pawn Код:
new prixvente = MaisonInfo[maisonid][Prix]/1.5;
Why? x)

Thx
Reply
#2

Код:
new Float:prixvente = MaisonInfo[maisonid][Prix]/1.5;
?
Reply
#3

Indeed, it should be a float. And as Dziugsas failed to explain why (I personally don't think you actually learn by just getting the answer);

You divided this value by 1.5. You know you have integers (0, 1, 2, 3, 4, 5 etc). These don't have commas. Float however do use that. If you would've tried to divide it by 2, it wouldn't give this tag mismatch error (you may check it if you'd like - it'd be a nice learn moment).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)