[SOLVED]Give Weapon Dialog Box
#1

Hello,
I need help with a script that a am making, tha script is to give a player a weapon, but e chose the amount of ammo that he wants.
There is the code that i already made

Code:
 ShowPlayerDialog(playerid, DIALOG_BASE, DIALOG_STYLE_INPUT, "Login", "Welcome back\nInsert password to login", "Login", "Cancel");
       public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
       	{
         GivePlayerWeapon(playerid, 22, 500);
		}
I do not know how to use the data on ShowPlayerDialog and use it on GivePlayerWeapon. If possivel, y would like make something that make possivle to introduce only number on ShowPlayerDialog, to avoid bugs.
Please, can anyone help me finhis this code? Thanks
Reply


Messages In This Thread
[SOLVED]Give Weapon Dialog Box - by mamedeste - 12.01.2010, 00:43
Re: Give Weapon Dialog Box - by [HiC]TheKiller - 12.01.2010, 02:36
Re: Give Weapon Dialog Box - by mamedeste - 12.01.2010, 10:53
Re: [UNSOLVED]Give Weapon Dialog Box - by mamedeste - 12.01.2010, 17:08
Re: [UNSOLVED]Give Weapon Dialog Box - by MaykoX - 12.01.2010, 17:56
Re: [UNSOLVED]Give Weapon Dialog Box - by mamedeste - 12.01.2010, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)