27.10.2012, 16:38
Hi!
I have work with dialogs for very long now with out asking for help!..
And I fixed it..
But now when I try to do another thing with dialogs it won't work, so I wounder if it works to do like this:
But I get error that it's not defined.. When I tired to define it, it still didn't workt...
I have work with dialogs for very long now with out asking for help!..
And I fixed it..
But now when I try to do another thing with dialogs it won't work, so I wounder if it works to do like this:
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_WEAPONS)
{
if(response) // If they clicked 'Select' or double-clicked a weapon
{
// Give them the weapon
if(listitem == 0) // They selected the first item - Desert Eagle
{
ShowPlayerDialog(playerid, DIALOG_BUY0, DIALOG_STYLE_LIST, "Shotguns & handguns", "9mm 150$\nSilenced 9mm 250$\nDesert Eagle\nShotgun\nSawnoff Shotgun 600$\nCombat Shotgun 200$\nMicro SMG/Uzi 350$\nMP5 250$\t", "Buy", "Close");
}