30.04.2012, 11:02
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 )
Now how can i load this ini file when samp-server opened ?
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 ?