Raised This Month: $ Target: $400
 0% 

buy meny


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-15-2013 , 06:03   Re: buy meny
Reply With Quote #4

Quote:
Originally Posted by Torge View Post
With a boolean or booleans but depends how many items you add for each boolean. ;D

Example:
PHP Code:
// Bought?
if (g_bBoughtAK47[id])
   
menu_additem(hMenu"AK47 [BOUGHT]""1");
// Not bought?
else
   
menu_additem(hMenu"AK47 [NOT BOUGHT]""1"); 
better method for menu..

example:
PHP Code:

new Temp[101];

formatex(Temp100"AK47 [%s]"g_bBoughtAK47[id] ? "BOUGHT" "NOT BOUGHT")
menu_additem(hMenuTemp"1"); 
Blizzard_87 is offline
 



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:46.


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