Raised This Month: $ Target: $400
 0% 

Bool function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-04-2011 , 19:54   Re: Bool function
Reply With Quote #2

There's no third value/condition in a bool but that doesn't mean your problem can't be solved.

Instead of using a bool and setting to true, use an integer and on each buy attempt do
PHP Code:
if ( ++NumBuy <= )
   
//give item 
__________________

Last edited by Bugsy; 11-04-2011 at 19:57.
Bugsy 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 14:15.


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