09.12.2010, 01:53
pawn Код:
enum PLAYER_MAIN {
FACTION_RANK,
CASH
}
new PlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
pawn Код:
public OnPlayerConnect(playerid)
{
new file[100],Name[MAX_PLAYER_NAME],Ip[16];
GetPlayerName(playerid,Name,sizeof(Name));
format(file,sizeof(file),PlayerFile,Name);
if(!dini_Exists(file))
{
dini_Create(file);
dini_Set(file,"FACTION_RANK",FACTION_RANK);
dini_Set(file,"CASH",CASH);
}
return 1;
}