Raised This Month: $ Target: $400
 0% 

Reload File


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 05-18-2013 , 07:58   Re: Reload File
Reply With Quote #9

You don't use the trie to check if a player is vip, you check by the the array gs_VipsList
So each time you load a command, you need to reset the array and copy each entry from the file to it.

you could just do this to shortcut it
PHP Code:
public reloadvips(id)
{
    for(new 
isizeof(gs_VipsList); i++)
    {
        
setc(gs_VipsList[i], charsmax(gs_VipsList[]), 0)
    }
    
    
plugin_cfg()

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster 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 16:15.


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