OnDialogResponse Pb +rep
#1

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

Help Please
Reply
#2

Can you show us the code of /wshop?
Reply
#3

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
Reply
#4

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; 
    } 
Reply
#5

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
Reply
#6

https://sampwiki.blast.hk/wiki/GivePlayerWeapon
Reply
#7

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
Reply
#8

Can you show us your OnDialogResponse?
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)