I/O functions file load from ini file
#1

Firstly, hello guys.I have a problem.I tried every time to do this.But i couldn't.I need your help guys !

Now my problem is when samp-server opened..I want to load from ini file.

fwrite ini code for save to scriptfiles )

pawn Код:
CMD:createfaction(playerid, params[])
{
new olusumadi[32],skinid,Float:Xi,Float:Yi,Float:Zi, factionlar[256];
if(sscanf(params, "si", olusumadi,skinid)) return MesajGonder(playerid,"/createfaction [Faction name] [faction start skin]");
GetPlayerPos(playerid,Xi,Yi,Zi);
CreateOrganization(olusumadi, skinid, Xi,Yi,Zi, 24,500,25,500,3,1);
format(factionlar,256,"CreateOrganization(%s,%i,%f,%f,%f,24,500,25,500,3,1);\n\r",olusumadi,skinid,Xi,Yi,Zi);
new File:dosya = fopen("Factionlar.ini", io_append);
fwrite(dosya, factionlar);
fclose(dosya);
return 1;
}

Now how can i load this ini file when samp-server opened ?
Reply


Messages In This Thread
I/O functions file load from ini file - by razol - 30.04.2012, 11:02
Re: I/O functions file load from ini file - by razol - 30.04.2012, 11:27
Re: I/O functions file load from ini file - by razol - 30.04.2012, 12:33
Re: I/O functions file load from ini file - by Jefff - 30.04.2012, 13:05
Re: I/O functions file load from ini file - by razol - 30.04.2012, 13:21

Forum Jump:


Users browsing this thread: 1 Guest(s)