Help FS
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/tunecar", true) == 0)
    {
        if(IsPlayerVipType(playerid,2))
        new playerstate = GetPlayerState(playerid);
        if(playerstate == PLAYER_STATE_DRIVER)
        {
            return ModCar(playerid);
        }
        else
        {
            return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You must be in a car being the driver Or You Not Gold VIP");
        }
    }
    return 1;
}
You shouldn't be using "if" as "If", case sensitivity is required.
In addition, you shouldn't use a semicolon in "if" statements.
Reply


Messages In This Thread
Help FS - by sahrul012 - 18.03.2015, 14:51
Re: Help FS - by iFiras - 18.03.2015, 14:53
Re: Help FS - by CalvinC - 18.03.2015, 14:54
Re: Help FS - by sahrul012 - 18.03.2015, 14:57
Re: Help FS - by CalvinC - 18.03.2015, 14:59
Re: Help FS - by Rockyyy - 18.03.2015, 15:02
Re: Help FS - by iFiras - 18.03.2015, 15:05
Re: Help FS - by sahrul012 - 18.03.2015, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)