Quote:
Originally Posted by macas5
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!
__________________