Excusme how to fix DMV ?
#4

sorry for my sob**t haha
i dont know i must show the code from where

maybe this can help me
pawn Код:
CMD:dmvmenu(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 833.60, 3.23, 1004.17))
    {

        if(PlayerInfo[playerid][pCarLic] == 0)
        {
            SendClientMessage(playerid, COLOR_GRAD2, "A valid driver's license is required to release your vehicle from the impound, or pay any tickets.");
            return 1;
        }

        new
            vstring[1024],
            iCount;

        for(new i; i < MAX_PLAYERVEHICLES; i++)
        {
            if(PlayerVehicleInfo[playerid][i][pvPrice] < 1) PlayerVehicleInfo[playerid][i][pvPrice] = 2000000;

            if(PlayerVehicleInfo[playerid][i][pvId] > INVALID_PLAYER_VEHICLE_ID) {
                if(PlayerVehicleInfo[playerid][i][pvTicket]) {
                    format(vstring, sizeof(vstring), "%s\n%s (ticket - $%i)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400], PlayerVehicleInfo[playerid][i][pvTicket]);
                    ++iCount;
                }
                else format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
            }
            else if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
                format(vstring, sizeof(vstring), "%s\n%s (impounded - $%i release)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400], (PlayerVehicleInfo[playerid][i][pvPrice] / 10) + PlayerVehicleInfo[playerid][i][pvTicket] + (PlayerInfo[playerid][pLevel] * 1000));
                ++iCount;
            }
            else format(vstring, sizeof(vstring), "%s\nNone", vstring);
        }
        if(iCount)
        {
            ShowPlayerDialog(playerid, MPSPAYTICKETS, DIALOG_STYLE_LIST, "Vehicles", vstring, "Release", "Cancel");
        }
        else SendClientMessageEx(playerid, COLOR_GRAD2, "You don't have any tickets to be paid or vehicles to be released.");
    }
    else SendClientMessageEx(playerid, COLOR_GRAD2, "You are not at the DMV release point in Dillimore (inside the DMV).");
    return 1;
}
Reply


Messages In This Thread
Excusme how to fix DMV ? - by warlord321 - 03.11.2013, 20:27
Re: Excusme how to fix DMV ? - by iZN - 03.11.2013, 20:33
Re: Excusme how to fix DMV ? - by AlonzoTorres - 03.11.2013, 20:36
Re: Excusme how to fix DMV ? - by warlord321 - 03.11.2013, 20:48
Re: Excusme how to fix DMV ? - by rappy93 - 03.11.2013, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)