Dini help
#2

I've stopped using Dini a long time ago, but give this a shot.

pawn Код:
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);
    format(string,sizeof(string),"Accounts/%s.ini",name);//Change that to the folder where you store your user files and change the file type (if it's not .ini)
    if(dini_Exists(string))return 1;//If it exists, it willl return 1 so it won't create the file.
    dini_Create(string);//If it didn't return 1 then the file will be created.
    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: 2 Guest(s)