Dini help
#1

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;
}
Reply


Messages In This Thread
Dini help - by luigifan9 - 28.12.2011, 00:04
Re: Dini help - by Tee - 28.12.2011, 00:09
Re: Dini help - by luigifan9 - 28.12.2011, 00:15
Re: Dini help - by Tee - 28.12.2011, 00:18
Re: Dini help - by luigifan9 - 28.12.2011, 00:24
Re: Dini help - by Tee - 28.12.2011, 00:41

Forum Jump:


Users browsing this thread: 1 Guest(s)