Thread: save data
View Single Post
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 01-23-2020 , 11:19   Re: save data
Reply With Quote #5

I think it works like that too, I haven't tested it.

PHP Code:
#include <nvault_array>

enum _:Data
{
    
iPoints,
    
iTsKilled,
    
iCtKilled
}

new 
iData[33][Data]

public 
client_disconnect(id)
{
        new 
szAuth[35]
        
get_user_authid(idszAuthcharsmax(szAuth));
    
        
nvault_set_array(NameVaultszAuthiData[id][Data:0], sizeof(iData[]));
}

public 
client_authorized(id)
{
        new 
szAuth[35]
        
get_user_authid(idszAuthcharsmax(szAuth));
    
        
nvault_get_array(NameVaultszAuthiData[id][Data:0], sizeof(iData[]));

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 01-25-2020 at 15:08.
iceeedr is offline
Send a message via Skype™ to iceeedr