12.03.2010, 15:45
appreciate ur help but still doesnt work ![Sad](images/smilies/sad.gif)
![Sad](images/smilies/sad.gif)
Код:
public OnPlayerConnect(playerid) { new FilePath[32]; new Ip[16]; GetPlayerIp(playerid,Ip,sizeof(Ip)); format(FilePath, sizeof(FilePath), "%s/%s.ini", UserPath, PlayerName(playerid)); if(!dini_Exists(FilePath)) { dini_Create(FilePath); dini_Set(FilePath, "Name", PlayerName(playerid)); dini_Set(FilePath, "Ip", Ip); dini_IntSet(FilePath, "VIP", 0); } return 1; } public OnPlayerDisconnect(playerid, reason) { new FilePath[32]; new Ip[16]; format(FilePath, sizeof(FilePath), "%s/%s.ini", UserPath, PlayerName(playerid)); dini_Set(FilePath, "Name", PlayerName(playerid)); dini_Set(FilePath, "Ip", Ip); dini_IntSet(FilePath, "VIP", 0); return 1; }