[SOLVED] Dini_create
#1

Hi,

Just started learning the dini functions...

Having this code didn't create a file, what does?

pawn Код:
if(!dini_Exists(posfile))
    {
    GetPlayerName(playerid, PlayerPosName, sizeof(PlayerPosName));
    format(posfile, sizeof(posfile), "/xadmin/locations/%s.ini", PlayerPosName);
      dini_Create(posfile);
    }
Grts Riz
Reply
#2

Код:
public OnPlayerConnect(playerid)
{
	new PlayerPosName[24],posfile[64];
	GetPlayerName(playerid, PlayerPosName, sizeof(PlayerPosName));
	format(posfile, sizeof(posfile), "/xadmin/locations/%s.ini", PlayerPosName);
	if(!dini_Exists(posfile)) dini_Create(posfile);
	return 1;
}
Reply
#3

Maybe the dini file already exists?
Reply
#4

Thnx Jeff your solution fixed my problem

Grts Riz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)