27.04.2014, 10:38
(
Last edited by NviDa; 27/04/2014 at 11:16 AM.
)
Just installed easyDialog and took this pwn code from Emmet's topic to test it out.
Now when I click the spawn button in game, my screen starts blinking in light yellow color,a black box appears saying 'loading' and also it says 'STAY WITHING WORLD BOUNDARIES'.
What to do?
pawn Code:
#define DIALOG_WEAPON (1337)
CMD:weapons(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_LIST, "Weapon Menu", "9mm\nSilenced 9mm\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun", "Select", "Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == DIALOG_WEAPON)
{
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;
}
What to do?