[HELP] tag mismatch
#1

PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    new 
vehicleid GetPlayerVehicleID(playerid);
    new 
pname[MAX_PLAYER_NAME];
    
    
GetPlayerName(playeridpnamesizeof pname);
    
    if(
newstate == PLAYER_STATE_DRIVER)
    {
        if(
vehicleid == vehicle)
        {
            new    
mpp;
            new 
carsid mpp;
            if(
strcmp(pname"%d"carsidtrue) == 0)
              {
                return 
1;
            }
            else
              {
              
RemovePlayerFromVehicle(playerid);
            new 
string[50];
            
format(stringsizeof(string), "~r~This car is private!");
            
GameTextForPlayer(playeridstring30004);
            }
        }
}
    return 
1;

Error when compiling:

Quote:

C:\Users\mega\Desktop\1\gamemodes\grandlarc.pwn(65 5) : warning 213: tag mismatch

Problem is in this line:
PHP код:
if(strcmp(pname"%d"carsidtrue) == 0
Reply


Messages In This Thread
[HELP] tag mismatch - by agreathon - 24.07.2011, 15:16
Re: [HELP] tag mismatch - by Finn - 24.07.2011, 15:22
Re: [HELP] tag mismatch - by MadeMan - 24.07.2011, 15:22
Re: [HELP] tag mismatch - by agreathon - 24.07.2011, 15:53
Re: [HELP] tag mismatch - by =WoR=Varth - 25.07.2011, 01:14

Forum Jump:


Users browsing this thread: 1 Guest(s)