Raised This Month: $51 Target: $400
 12% 

doubt new menu system


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
andre neves
Junior Member
Join Date: Mar 2011
Old 06-01-2011 , 08:15   doubt new menu system
Reply With Quote #1

Code:
new menu = menu_create("\rLook at this awesome Menu!:", "menu_handler");
was trying to use this script like this:

Code:
new menu = menu_create("Shop Menu^nyour money: %d", "menu_handler");
then I realized that the function menu_create not have any :..., which would be to identify the %d, is there any way I show the money in the menu title?
andre neves is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 06-01-2011 , 08:35   Re: doubt new menu system
Reply With Quote #2

one word, formatex.
__________________
jc980 is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 06-01-2011 , 08:41   Re: doubt new menu system
Reply With Quote #3

look at my deathrun shop plugin to see how i did it
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 06-01-2011 , 08:50   Re: doubt new menu system
Reply With Quote #4

Quote:
new text[500]
formatex(text,charsmax(text),"Shop Menu^nYour Money: %d", cs_get_user_money(id))

new menu = menu_create(text, "menu_handler");
__________________
jc980 is offline
andre neves
Junior Member
Join Date: Mar 2011
Old 06-01-2011 , 10:19   Re: doubt new menu system
Reply With Quote #5

ok it worked.

Another doubt, how do I change the team someone? without using client_cmd

Last edited by andre neves; 09-07-2011 at 17:15.
andre neves is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-01-2011 , 13:31   Re: doubt new menu system
Reply With Quote #6

Quote:
Originally Posted by andre neves View Post
how do I change the time someone?
What???
__________________
fysiks is offline
andre neves
Junior Member
Join Date: Mar 2011
Old 06-01-2011 , 17:03   Re: doubt new menu system
Reply With Quote #7

sorry,

function, as change team
andre neves is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 06-01-2011 , 17:07   Re: doubt new menu system
Reply With Quote #8

he wants to transfer a player form team to team with out using cl_cmd...
Doc-Holiday is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 06-01-2011 , 17:15   Re: doubt new menu system
Reply With Quote #9

http://www.amxmodx.org/funcwiki.php?go=func&id=200
JocAnis is offline
andre neves
Junior Member
Join Date: Mar 2011
Old 06-02-2011 , 09:40   Re: doubt new menu system
Reply With Quote #10

Quote:
Originally Posted by JocAnis View Post
I used this function with a loop,

There was an error in the console, I thought that a bot could be causing this:

then tried to put is_user_bot, still kept giving error

has no other way but by client_cmd?
andre neves is offline
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 07:49.


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