Tag mismatch
#1

I have an error:

PHP код:
193    new money Carinfo[GetPlayerVehicleID(playerid)][Fuel]; 
PHP код:
enum Car
{
    
Float:Fuel,
}
new 
Carinfo[MAX_VEHICLES][Car]; 
Why?

PHP код:
\fuel.pwn(193) : warning 213tag mismatch 
Reply
#2

Round it to an integer:
pawn Код:
new money = floatround(Carinfo[GetPlayerVehicleID(playerid)][Fuel], floatround_floor);
References:
https://sampwiki.blast.hk/wiki/Floatround
https://sampwiki.blast.hk/wiki/Floatround_method
Reply
#3

thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)