PDA

View Full Version : warning 213: tag mismatch


Donvalley
21/06/2013, 07:59 AM
new GasAmount;

if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
new gastext[41];
new vid = GetPlayerVehicleID(playerid);
format(gastext, sizeof(gastext), "Vehicle Fuel : %d", Gas[vid]);
TextDrawSetString(GasAmount, gastext);
TextDrawShowForPlayer(playerid, GasAmount);
}
if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
{
TextDrawHideForPlayer(playerid, GasAmount);
}

why am i getting this warning?

warning 213: tag mismatch

KingHual
21/06/2013, 08:12 AM
Because you haven't declared GasAmount a Text? new Text:GasAmount;