12.01.2010, 00:43
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
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
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); }
Please, can anyone help me finhis this code? Thanks