warning 213: tag mismatch
#1

pawn Код:
new GasAmount;
pawn Код:
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
Reply
#2

Because you haven't declared GasAmount a Text?
Код:
new Text:GasAmount;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)