/approve frisk - Not loading
#1

For some reason, when a player types /approve frisk, nothing shows for this. It's meant to load up a selection dialog, showing all the items but nothing is shown.
pawn Код:
if (!strcmp(params, "frisk", true) && PlayerData[playerid][pFriskOffer] != INVALID_PLAYER_ID)
    {
        new
            targetid = PlayerData[playerid][pFriskOffer];

        if (!IsPlayerNearPlayer(playerid, targetid, 6.0))
            return SendErrorMessage(playerid, "You are not near that player.");

        new
            models[MAX_INVENTORY],
            amount[MAX_INVENTORY];

        for (new i = 0; i < PlayerData[playerid][pCapacity]; i ++)
        {
            if (InventoryData[playerid][i][invExists]) {
                models[i] = InventoryData[playerid][i][invModel];
                amount[i] = InventoryData[playerid][i][invQuantity];
            }
            else {
                models[i] = -1;
                amount[i] = -1;
            }
        }
        PlayerData[playerid][pFriskOffer] = INVALID_PLAYER_ID;
        ShowModelSelectionMenu(targetid, ReturnName(playerid), MODEL_SELECTION_FRISK, models, sizeof(models), 0.0, 0.0, 0.0, 1.0, -1, true, amount);
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)