21.06.2013, 07:59
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);
}
warning 213: tag mismatch