Raised This Month: $ Target: $400
 0% 

Reset variables with for cycle


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mforce
Member
Join Date: Jan 2015
Old 10-14-2015 , 13:43   Reset variables with for cycle
Reply With Quote #1

Is it possible for reset all variables?

PHP Code:
enum PLAYER_DATABASE
{
    
STEAMID[32],
    
AWP_KILLS,
    
SCOUT_KILLS,
    
DEAGLE_KILLS,
    
USP_KILLS,
    
GLOCK_KILLS,
    
KNIFE_KILLS,
    
AWP_MENU,
    
SCOUT_MENU,
    
DEAGLE_MENU,
    
USP_MENU,
    
GLOCK_MENU,
    
KNIFE_MENU
}
new 
player_data[33][PLAYER_DATABASE];

public 
client_putinserver(id) {
    if(
is_user_bot(id)) return;
    for(new 
i=0;PLAYER_DATABASE:i<=KNIFE_MENU;PLAYER_DATABASE:i++)
        
player_data[id][PLAYER_DATABASE:i] = 0
    load
(id);

mforce 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 22:18.


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