29.05.2018, 01:09
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(playerid, pname, 24);
format(file, sizeof(file), "Contas/%s.ini", pname);
Profissao[playerid] = DOF2_GetInt(file, "Profissao");
return 1;
}
https://sampforum.blast.hk/showthread.php?tid=350855