Raised This Month: $ Target: $400
 0% 

Limit of buy item but he take ammo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 08-19-2021 , 17:37   Re: Limit of buy item but he take ammo
Reply With Quote #10

Quote:
Originally Posted by Bugsy View Post
arrayset() would cover the entire array, I'm not sure how only resetting certain indexes would matter.
I'm not sure, but wouldn't it have to do with how the Array was created in the first place? Or destroying it when required?

EDIT: Something like this?

PHP Code:
new Array:g_iBought;

public 
plugin_init()
{
    
g_iBought ArrayCreate(MAX_PLAYERS 1);
}

public 
plugin_end()
{
    
ArrayDestroy(g_iBought);

PHP Code:
g_bCompradoid ] ++;
ArrayPushArray(g_iBoughtg_bComprado); // bought


ArrayClear(g_iBought); // new round 
__________________

Last edited by Napoleon_be; 08-19-2021 at 17:55.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



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 02:33.


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