[Ajuda] Must be assigned to an array
#3

PHP код:
new Profissao[MAX_PLAYERS]; // variбvel para armazenar o valor de cada prof
#define Desempregado 0 // id das prof
forward ConferirProfissao(playerid); 
public 
ConferirProfissao(playerid

    new 
file[50], pname[24]; 
    
GetPlayerName(playeridpname24);
    
format(filesizeof(file), "Contas/%s.ini"pname);  
    
Profissao[playerid] = DOF2_GetInt(file"Profissao");
    return 
1

Te aconselho a dar uma olhada sobre as funзхes do salvamento em ficheiros dof2
https://sampforum.blast.hk/showthread.php?tid=350855
Reply


Messages In This Thread
Must be assigned to an array - by Luiiiz - 27.05.2018, 18:57
Re: Must be assigned to an array - by Minerva - 27.05.2018, 19:04
Re: Must be assigned to an array - by Cleyson - 29.05.2018, 01:09
Re: Must be assigned to an array - by AutoMatic2 - 29.05.2018, 02:48

Forum Jump:


Users browsing this thread: 1 Guest(s)