Bug (Urgent help) [pre-release]
#10

so i looped your DSchool vehicles its much easier and save you a space

Try This Code
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new CarCheck = GetPlayerVehicleID(playerid);
        for(new i = 0; i < sizeof(DSchool); i++)//loop for all DSchool
        {
            if(CarCheck == DSchool[i])
            {
                if(PlayerInfo[playerid][pDriversLic] == 0)
                {
                    ShowPlayerDialog(playerid, DRIVERS_TEST, DIALOG_STYLE_MSGBOX, "Notice", "Would you like to take drivers test?\nIt will cost you 50$", "Yes", "No");
                    return 1;
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Bug (Urgent help) [pre-release] - by Squirrel - 24.03.2013, 21:37
Re: Bug (Urgent help) [pre-release] - by Joshman543 - 24.03.2013, 22:09
Re: Bug (Urgent help) [pre-release] - by Squirrel - 24.03.2013, 22:11
Re: Bug (Urgent help) [pre-release] - by FunnyBear - 24.03.2013, 22:13
Re: Bug (Urgent help) [pre-release] - by Squirrel - 24.03.2013, 22:18
Re: Bug (Urgent help) [pre-release] - by Joshman543 - 24.03.2013, 22:18
Re: Bug (Urgent help) [pre-release] - by FunnyBear - 24.03.2013, 22:21
Re: Bug (Urgent help) [pre-release] - by Squirrel - 24.03.2013, 22:23
Re: Bug (Urgent help) [pre-release] - by Joshman543 - 24.03.2013, 22:26
Re: Bug (Urgent help) [pre-release] - by Patrick - 24.03.2013, 22:27

Forum Jump:


Users browsing this thread: 1 Guest(s)