dialoginput style question
#1

hi,

damn maybe im just too tired now xD but i cant fugure this out.
I want that itgives me the first weapon that is listed on the list if i enter 1 into the dialog.
The 2nd weapon if i enter 2 and so on.
But it just does not work. Nothing happens.

pawn Код:
new Weaponsdialog = 1;

public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{

    new Weaponsdialogue[710] = "{CD5555}Katana - {CDAF95}15800$\n{CD5555}Chainsaw - {CDAF95}2500$\n...


    foreach (Player, i)
   {
    if(IsPlayerInRangeOfPoint(i,2,311.2411,-165.3235,999.6010))

    {
ShowPlayerDialog(i, Weaponsdialog, DIALOG_STYLE_INPUT, "
{CD5555}Weapon                 {CDAF95}Price",Weaponsdialogue,"Buy", "Cancel");

        }
    }
return 1;
}


//OnDialogResponse

    if(dialogid  == Weaponsdialog)
{
if(response)
{

if(strcmp("
1", inputtext, true))
{

GivePlayerWeapon(playerid,8,0);

}
else if(strcmp("
2", inputtext, true))
{

GivePlayerWeapon(playerid,9,0);

}

// and so on...
regards.
Reply


Messages In This Thread
dialoginput style question - by BlackWolf120 - 01.05.2011, 04:03
Re: dialoginput style question - by Joe Staff - 01.05.2011, 04:30
Re: dialoginput style question - by BlackWolf120 - 01.05.2011, 11:58
Re: dialoginput style question - by BlackWolf120 - 02.05.2011, 17:13
Re: dialoginput style question - by BlackWolf120 - 03.05.2011, 22:23
Re: dialoginput style question - by admantis - 03.05.2011, 23:13
AW: dialoginput style question - by BlackWolf120 - 04.05.2011, 17:00
Re: dialoginput style question - by Jeffry - 05.05.2011, 18:12
Re: dialoginput style question - by Vince - 05.05.2011, 20:32
Re: dialoginput style question - by BlackWolf120 - 06.05.2011, 18:25

Forum Jump:


Users browsing this thread: 1 Guest(s)