28.12.2011, 00:04
I am trying to get it so if you join the server and you don't have a save file it will create one, but it doesn't work.
Код:
public OnPlayerConnect(playerid) { M_OnPlayerConnect(playerid); new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s has joined the server.", name); SendClientMessageToAll(0xC4C4C4FF, string); if (dini_Exists(name) == true) { return 1; } else dini_Create(name); return 1; }