Tag Mismatch?
#1

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetPlayerVehicleID(playerid) == 520)
    {
      if(!gTeam[playerid] == 7)
      {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, RED, "Army ID: Denied");
        }
    }
}
I keep getting a tag mismatch, any help?
Reply
#2

Код:
SendClientMessage(playerid, RED, "Army ID: Denied");
Is this the line?
Mismatch is nice because of reason that it has argument id, give full error message ! Althought it should be RED, so it means sending your #define RED line.
Reply
#3

Quote:
Originally Posted by ScottCFR
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetPlayerVehicleID(playerid) == 520)
    {
      if(!gTeam[playerid] == 7)
      {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, RED, "Army ID: Denied");
        }
    }
}
I keep getting a tag mismatch, any help?
pawn Код:
if(gTeam[playerid] != 7)
Reply
#4

no , it's from here : if(!gTeam[playerid] == 7)

must be:
pawn Код:
if(gTeam[playerid] != 7) /* if gTeam[playerid] is not 7 , do the { }*/
or:
pawn Код:
if(gTeam[playerid] == 7) /* if gteam[playerid] is 7 , do the { }*/
Reply
#5

Quote:
Originally Posted by Angel φ
no , it's from here : if(!gTeam[playerid] == 7)

must be:
pawn Код:
if(gTeam[playerid] != 7) /* if gTeam[playerid] is not 7 , do the { }*/
or:
pawn Код:
if(gTeam[playerid] == 7) /* if gteam[playerid] is 7 , do the { }*/
=
Quote:
Originally Posted by Joe Torran C
Quote:
Originally Posted by ScottCFR
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetPlayerVehicleID(playerid) == 520)
    {
      if(!gTeam[playerid] == 7)
      {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, RED, "Army ID: Denied");
        }
    }
}
I keep getting a tag mismatch, any help?
pawn Код:
if(gTeam[playerid] != 7)
Reply
#6

For some reason, It wont remove the player from the vehicle. Should i maybe put it under OnPlayerUpdate?
Reply
#7

Quote:
Originally Posted by ScottCFR
For some reason, It wont remove the player from the vehicle. Should i maybe put it under OnPlayerUpdate?
Use OnPlayerStateChange
ALSO If your using 520 cause of hydra then you use GetVehicleModel not VehicleID
Reply
#8

forgot about that, thx
Reply
#9

Quote:
Originally Posted by Joe Torran C
Quote:
Originally Posted by Angel φ
no , it's from here : if(!gTeam[playerid] == 7)

must be:
pawn Код:
if(gTeam[playerid] != 7) /* if gTeam[playerid] is not 7 , do the { }*/
or:
pawn Код:
if(gTeam[playerid] == 7) /* if gteam[playerid] is 7 , do the { }*/
=
Quote:
Originally Posted by Joe Torran C
Quote:
Originally Posted by ScottCFR
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetPlayerVehicleID(playerid) == 520)
    {
      if(!gTeam[playerid] == 7)
      {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, RED, "Army ID: Denied");
        }
    }
}
I keep getting a tag mismatch, any help?
pawn Код:
if(gTeam[playerid] != 7)
Seriusly GUYS? That even doesn't give this warning(error), he didn't ask that, but you "gained" 3 posts...
and well then which is error line?
Reply
#10

That IS The Warning..
Put if(!gTeam[playerid] == 1) in your script,
It will bring the warning, Tag mismatch
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)