Do not load Y_INI value?
#1

Hello, my problem is that I can not get the value that is contained in the personal player file, for example:

Password: 1234

I try to load it in the game with the code below, but is 0 the loaded value and the file is 1234. I did debug and printou 0 in the console and do not know what to do ..

PHP код:
// OnPlayerConnect: 
    
if(fexist(_var)) 
        
INI_ParseFile(User(playerid),"Load_%s", .bExtra true, .extra playerid); 
//Loading conta: 
public Load_user(playeridname[], value[]){ 
new 
INI:file INI_Open(User(playerid)); 
INI_Int("Senha"Info[playerid][SenhaX]);   
INI_Close(file); 
return 
1

// Creating Conta 
public Create(playerid){ 
new 
INI:file INI_Open(User(playerid)); 
INI_WriteInt(file"Senha"0000); 
INI_Close(file); 
INI_ParseFile(User(playerid),"Load_%s", .bExtra true, .extra playerid); 
return 
1

stock User(playerid

    new 
string[128], playername[MAX_PLAYER_NAME]; 
    
GetPlayerName(playerid,playernamesizeof(playername)); 
    
format(string,sizeof(string), "Contas/%s.ini"playername); 
    return 
string

Reply


Messages In This Thread
Do not load Y_INI value? - by DevilAgain - 13.03.2015, 15:41
Re: Do not load Y_INI value? - by ATGOggy - 13.03.2015, 15:43
Re: Do not load Y_INI value? - by DevilAgain - 13.03.2015, 21:34
Respuesta: Do not load Y_INI value? - by JuanStone - 13.03.2015, 21:41
Re: Do not load Y_INI value? - by DevilAgain - 13.03.2015, 21:48
Respuesta: Do not load Y_INI value? - by JuanStone - 13.03.2015, 22:03
Re: Do not load Y_INI value? - by DevilAgain - 13.03.2015, 22:28
Re: Do not load Y_INI value? - by DevilAgain - 14.03.2015, 17:52
Re: Do not load Y_INI value? - by DevilAgain - 14.03.2015, 22:48

Forum Jump:


Users browsing this thread: 1 Guest(s)