Raised This Month: $ Target: $400
 0% 

print_chat commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 05-25-2010 , 13:23   Re: print_chat commands
Reply With Quote #6

Quote:
Originally Posted by macas5 View Post
I tried to make
Code:
new menu= menu_create("Choose where to spend points. You currently have %i points", "pts_handler", playerpts[id])
But i still get "Choose where to spend points. You currently have %i points" without getting a playerpts[id] number. Help
Link to menu_create
http://www.amxmodx.org/funcwiki.php?go=func&id=798
Code:
menu_create ( title[], handler[], ml=0 )

Link to format
http://www.amxmodx.org/funcwiki.php?go=func&id=49
Code:
format ( output[], len, const format[], ... )

Ahh, see unforunately you cannot use that function "menu_create" to format a string. So you would have to do something like..
Code:
new szTitle[64]; format(szTitle,sizeof(szTitle),"Choose where to spend points. You currently have %i points",playerpts[id]); new menu = menu_create(szTitle, "pts_handler");

Hope this helps!
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
 



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 05:23.


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