[Solved] tag mismatch
#1

pawn Код:
// lots of code
enum KMOraEnum { csik, benzin, sebesseg, szazmeter, kilometer };
new Text:kmora[MAX_VEHICLES][KMOraEnum];
// lots of code
public OnVehicleSpeedChange(vehicleid, newspeed, oldspeed)
{
    if (GetPlayerVehicleID(veh[vehicleid][0]) == vehicleid)
    {
        new sbsg[10];
        format(sbsg, sizeof(sbsg), "%d km/h", newspeed);
        TextDrawSetString(kmora[vehicleid][sebesseg], sbsg); // line 149
    if (newspeed > 50)
        {
            if (newspeed > 80)
            {
                TextDrawColor(kmora[vehicleid][sebesseg], 0xff0000cc); // line 154
        }
        else
        {
             TextDrawColor(kmora[vehicleid][sebesseg], 0xffff00cc); // line 158
            }
        }
        else
        {
            TextDrawColor(kmora[vehicleid][sebesseg], 0xffffffcc); // line 163
        }
    }
}
// .........rest of code....
Quote:

L:\dir\gm.pwn(149) : warning 213: tag mismatch
L:\dir\gm.pwn(154) : warning 213: tag mismatch
L:\dir\gm.pwn(15 : warning 213: tag mismatch
L:\dir\gm.pwn(163) : warning 213: tag mismatch

Why? I don't get it... please help
Reply
#2

lol I've got it it's not enough to prefix the "kmora" variable with Text: tag, the enumerator should be prefixed too...
pawn Код:
enum KMOraEnum { Text:csik, Text:benzin, Text:sebesseg, Text:szazmeter, Text:kilometer };
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)