12.04.2011, 01:24
pawn Код:
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
stock SalvarProfissao(playerid, prof)
{
new arquivo, string[128];
format(string, sizeof(string), "\Users\%s.ini", PlayerName(playerid));
if(fexist(string))
{
arquivo = fopen(string);
new string2;
format(string2, sizeof(string2), "Prof", gTeam[playerid]);
fwrite(arquivo, string2);
fclose(arquivo);
}
return 1;
}