PDA

View Full Version : Tag mismatch?


thimo
16/07/2013, 12:54 PM
Why do i get a tag mismatch from this:

GivePlayerCash(playerid, AHouseData[i][price] * 0.75);


While anywhere else this does work:

GivePlayerCash(playerid, Payment);

MP2
16/07/2013, 12:55 PM
Because it wants an integer, not a float. Use floatround().

thimo
16/07/2013, 12:57 PM
Thank you!