SA-MP Forums Archive
OnDialogResponse Pb +rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnDialogResponse Pb +rep (/showthread.php?tid=544514)



OnDialogResponse Pb +rep - AYOUYOU - 02.11.2014

Bug in /wshop When i choose weapon and Buy it he said that

Help Please


Re: OnDialogResponse Pb +rep - DanishHaq - 02.11.2014

Can you show us the code of /wshop?


Re: OnDialogResponse Pb +rep - AYOUYOU - 02.11.2014

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Can you show us the code of /wshop?
This is CMD of /weaps
PHP код:
    if(!strcmp(cmdtext"/weaps"))
    {
        
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"{28F540}NGEN {FF00E6}<:> {F55B28}Weapons shop""{7261F2}9mm {$1000)\n{95B4EE}AK-47 ($1000)\n{7261F2}Combat Shotgun ($1000)\n{95B4EE}Desert Eagle ($1000)\n{7261F2}M4 ($1000)\n{95B4EE}Micro SMG ($1000)\n{7261F2}MP5 ($1000)\n{95B4EE}Sawn-off Shotgun ($1000)\n{7261F2}Shotgun ($1000)\n{95B4EE}Silenced 9mm ($1000)\n{7261F2}Sniper Rifle ($1000)\n{95B4EE}Tec9 ($1000)", "Select", "Cancel");
        return 1;
    } 
And This is Full public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])http://pastebin.com/V39Tkf4k


Re: OnDialogResponse Pb +rep - Glossy42O - 02.11.2014

Change dialog id if u dunno how

PHP код:
    if(!strcmp(cmdtext"/weaps")) 
    { 
        
ShowPlayerDialog(playerid453DIALOG_STYLE_LIST"{28F540}NGEN {FF00E6}<:> {F55B28}Weapons shop""{7261F2}9mm {$1000)\n{95B4EE}AK-47 ($1000)\n{7261F2}Combat Shotgun ($1000)\n{95B4EE}Desert Eagle ($1000)\n{7261F2}M4 ($1000)\n{95B4EE}Micro SMG ($1000)\n{7261F2}MP5 ($1000)\n{95B4EE}Sawn-off Shotgun ($1000)\n{7261F2}Shotgun ($1000)\n{95B4EE}Silenced 9mm ($1000)\n{7261F2}Sniper Rifle ($1000)\n{95B4EE}Tec9 ($1000)", "Select", "Cancel"); 
        return 1; 
    } 



Re: OnDialogResponse Pb +rep - AYOUYOU - 02.11.2014

Quote:
Originally Posted by Stuun
Посмотреть сообщение
Change dialog id if u dunno how

PHP код:
    if(!strcmp(cmdtext"/weaps")) 
    { 
        
ShowPlayerDialog(playerid453DIALOG_STYLE_LIST"{28F540}NGEN {FF00E6}<:> {F55B28}Weapons shop""{7261F2}9mm {$1000)\n{95B4EE}AK-47 ($1000)\n{7261F2}Combat Shotgun ($1000)\n{95B4EE}Desert Eagle ($1000)\n{7261F2}M4 ($1000)\n{95B4EE}Micro SMG ($1000)\n{7261F2}MP5 ($1000)\n{95B4EE}Sawn-off Shotgun ($1000)\n{7261F2}Shotgun ($1000)\n{95B4EE}Silenced 9mm ($1000)\n{7261F2}Sniper Rifle ($1000)\n{95B4EE}Tec9 ($1000)", "Select", "Cancel"); 
        return 1; 
    } 
when i choose weapon ican't take it why?
Please Explain More


Re: OnDialogResponse Pb +rep - Glossy42O - 02.11.2014

https://sampwiki.blast.hk/wiki/GivePlayerWeapon


Re: OnDialogResponse Pb +rep - Glossy42O - 02.11.2014

Look at this too

https://sampforum.blast.hk/showthread.php?tid=513271

You might learn something from it. Making just a dialog won't give you weapons


Re: OnDialogResponse Pb +rep - [HiC]TheKiller - 02.11.2014

Can you show us your OnDialogResponse?


Re: OnDialogResponse Pb +rep - M0HAMMAD - 02.11.2014

the dialog ID it's Mixed with the other dialogs.
change the number from 1 to 99999 or add define.