easyDialog.inc
#6

I added a class from my GM now and I'm loose indentation warning.

pawn Code:
#include <a_samp>
#include <zcmd>
#include <easyDialog>

main(){}

public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("LS Riots v1.0");
        AddPlayerClass(265,1723.8688,-1630.1272,20.2140,1.0711,24,1000,27,1000,29,1000); // Cops1
        return 1;
}

CMD:weapons(playerid, params[])
{
    Dialog_Show(playerid, WeaponMenu, DIALOG_STYLE_LIST, "Weapon Menu", "9mm\nSilenced 9mm\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun", "Select", "Cancel");
    return 1;
}

Dialog:WeaponMenu(playerid, response, listitem, inputtext[])
{
    if (response)
    {
        new str[64];
        format(str, 64, "You have selected the '%s'.", inputtext);

        GivePlayerWeapon(playerid, listitem + 22, 500);
        SendClientMessage(playerid, -1, str);
    }
    return 1;
}
Reply


Messages In This Thread
easyDialog.inc - by NviDa - 27.04.2014, 10:38
AW: easyDialog.inc - by Nero_3D - 27.04.2014, 10:46
Re: easyDialog.inc - by NviDa - 27.04.2014, 11:05
AW: easyDialog.inc - by Nero_3D - 27.04.2014, 11:29
Re: easyDialog.inc - by Konstantinos - 27.04.2014, 11:30
Re: easyDialog.inc - by NviDa - 27.04.2014, 11:42
Re: easyDialog.inc - by Konstantinos - 27.04.2014, 11:45
Re: easyDialog.inc - by NviDa - 27.04.2014, 12:37

Forum Jump:


Users browsing this thread: 2 Guest(s)