24.09.2010, 16:07
mauzen i puted this
still i get the same problem
Quote:
public OnPlayerConnect(playerid) { new file [MAX_PLAYER_NAME+25], name[MAX_PLAYER_NAME]; format(file, sizeof(file), "mygamemode/users/%s.txt", name); SetPlayerScore(playerid, dini_Int(file, "Score")); return 1; } public OnPlayerDisconnect(playerid, reason) { new file[MAX_PLAYER_NAME+25], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); dini_Create(file); format(file, sizeof(file), "mygamemode/users/%s.txt", name); dini_IntSet(file, "Score", GetPlayerScore(playerid)); return 1; } |