Raised This Month: $ Target: $400
 0% 

Menu Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spywar
Junior Member
Join Date: Nov 2013
Old 07-11-2014 , 13:07   Menu Problem
Reply With Quote #1

Hi! So,I have this menu:

PHP Code:
                        new szName[32];
                
get_user_name(idszNamesizeof szName 1);
                
                new 
data[64];
                
formatex(data,charsmax(data),"\rDo you want to start a private conversation with %s?"szName);
                
                new 
menu menu_create(data"menu_handler");
                
                
formatex(datacharsmax(data),"\wYes")
                
menu_additem(menudata"0"0);
                
                
formatex(datacharsmax(data),"\wNo")
                
menu_additem(menudata"1"0);
                
                
menu_display(iPlayer,menu,0); 
How it's possible if the player choose yes to do a action?

ex:
PHP Code:
If(yes)
{
client_print(id,print_chat"You accept the money!")


Last edited by Spywar; 07-11-2014 at 13:08.
Spywar is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-11-2014 , 13:27   Re: Menu Problem
Reply With Quote #2

Using the menu handler:
https://forums.alliedmods.net/showthread.php?t=46364
mottzi is offline
Send a message via MSN to mottzi
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode