Raised This Month: $ Target: $400
 0% 

[Help] Fuction only usable once


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 12-25-2014 , 06:18   Re: [Help] Fuction only usable once
Reply With Quote #1

PHP Code:

#define MAX_PLAYERS    32 

enum ( <<=)

    
abc// 1 << 0 or 1   
    
dfg// 1 << 1 or 1 << 1 (as value is calculated by enum)    
}

new 
g_OptionsMAX_PLAYERS ];
new 
g_VaultID

#define HasOption(%1,%2)    g_Options[%1]&%2 
#define AddOption(%1,%2)    g_Options[%1]|=%2 
#define RemoveOption(%1,%2)    g_Options[%1]&=~%2 

public plugin_init()
{    
register_plugin(PLUGINVERSIONAUTHOR)
g_VaultID nvault_open"testvault" ); 
}

public 
client_putinserver(id)
{
    
LoadFlags(id)
}

public 
client_disconnect(id)
{
    
SaveFlags(id)
}

public 
a1id 

    if ( 
HasOptionid abc ) ) 
        
a11id ); 


public 
a2id 

    if ( 
HasOptionid dfg ) ) 
        
a22id ); 


public 
PlayerWasBadid 

    
RemoveOptionid abc ); 
    
RemoveOptionid dfg ); 


public 
SaveFlagsid 

    new 
name[35]
    
get_user_name(idname34)

    new 
szData15 ]; 
    
num_to_strg_Optionsid ] , szData charsmaxszData ) ); 
    
nvault_setg_VaultID name szData ); 


public 
LoadFlagsid 

    new 
name[35]
    
get_user_name(idname34)

    
g_Optionsid ] = nvault_getg_VaultID name);   


public 
a11(id){} 
public 
a22(id){} 
Didnt work.
Syturi0 is offline
Reply



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 15:32.


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