Pawno crash on compiling
#4

pawn Код:
if(dialogid == 688) // Upgrade Vehicle
{
    if(response)
    {
        for(new h = 0; h < sizeof(HouseInfo); h++)
        {
            new model = strval(inputtext);

            if(model < 400)
                return ShowPlayerDialog(playerid, 687, DIALOG_STYLE_INPUT, "Vehicle", "Please enter a vehicle ID from 400 to 611.", "Create", "Cancel");

            if(model > 611)
                return ShowPlayerDialog(playerid, 687, DIALOG_STYLE_INPUT, "Vehicle", "Please enter a vehicle ID from 400 to 611.", "Create", "Cancel");

            if(IsModelValid(model))
            {
                SendClientMessage(playerid, 0xE21F1FFF, "Those vehicles are restricted!");
                ShowPlayerDialog(playerid, 687, DIALOG_STYLE_INPUT, "Vehicle", "Please enter a vehicle ID from 400 to 611.", "Create", "Cancel");
                return 1;
            }

            HouseInfo[h][CarModel] = model;
            IsUpgradingVehicle[playerid] = true;
            ShowPlayerDialog(playerid, 255, DIALOG_STYLE_MSGBOX, "Vehicle Setup", "Go to the position you want your vehicle to spawn, then type /confirm.", "Select", "Cancel");
            return 1;
        }
    }
    else
        return ShowPlayerDialog(playerid, 668, DIALOG_STYLE_LIST, "House Setup", "Entrance\nName\nDescription\nInterior\nVehicle\nVehicle2\nRent\nPurchase", "Select", "Cancel");

    return 1;
}

stock IsModelValid(model)
{
    switch(model)
        case 425, 432, 476, 447, 537, 538, 569, 570, 584, 590, 591, 606, 607, 608, 610, 611, 441, 464, 465, 501, 564, 594, 435, 449, 450: return true;
    return false;
}
Try.
Reply


Messages In This Thread
Pawno crash on compiling - by DaRoderick - 30.11.2012, 18:16
Re: Pawno crash on compiling - by NewerthRoleplay - 30.11.2012, 18:39
Re: Pawno crash on compiling - by DaRoderick - 30.11.2012, 19:36
Re: Pawno crash on compiling - by GiamPy. - 30.11.2012, 19:57
Re: Pawno crash on compiling - by DaRoderick - 30.11.2012, 21:24
Re: Pawno crash on compiling - by B-Matt - 01.12.2012, 06:31

Forum Jump:


Users browsing this thread: 1 Guest(s)