SA-MP Forums Archive
settings... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: settings... (/showthread.php?tid=135163)



settings... - WardenCS - 19.03.2010

Hello,i have problem with my settings file,i dont know how to write it into settings.cfg
can someone write it to me?

pawn Код:
public LoadConfig()
{
print(" ");
print("Loading Config......");

new valtmp[128];
new File: file = fopen("/settings/settings.cfg", io_read);
fread(file, valtmp);strmid(motd, valtmp, 0, strlen(valtmp)-1, 255);
fread(file, valtmp);GetVal(valtmp);fow = RetVal;
fread(file, valtmp);GetVal(valtmp);radardist = RetVal;
fread(file, valtmp);GetVal(valtmp);radarfreq = RetVal;
fread(file, valtmp);GetVal(valtmp);stats = RetVal;
fread(file, valtmp);GetVal(valtmp);dollah = RetVal;
fread(file, valtmp);GetVal(valtmp);realtime = RetVal;
fread(file, valtmp);GetVal(valtmp);timeshift = RetVal;
fread(file, valtmp);GetVal(valtmp);wtime = RetVal;
fread(file, valtmp);GetVal(valtmp);gRoundTime = RetVal*60000;
fread(file, valtmp);GetVal(valtmp);levelcost = RetVal;
fread(file, valtmp);GetVal(valtmp);basedcost = RetVal;
fread(file, valtmp);GetVal(valtmp);deathcost = RetVal;
fread(file, valtmp);GetVal(valtmp);suecost = RetVal;
fread(file, valtmp);GetVal(valtmp);paycheck = RetVal;
fread(file, valtmp);GetVal(valtmp);realchat = RetVal;
fread(file, valtmp);GetVal(valtmp);forceteam = RetVal;
fread(file, valtmp);GetVal(valtmp);cchargetime = RetVal;
fread(file, valtmp);GetVal(valtmp);callcost = RetVal;
fread(file, valtmp);GetVal(valtmp);txtcost = RetVal;
fread(file, valtmp);GetVal(valtmp);intrate = RetVal;
fread(file, valtmp);GetVal(valtmp);teamcarlock = RetVal;
fread(file, valtmp);GetVal(valtmp);levelexp = RetVal;
fread(file, valtmp);GetVal(valtmp);nocasino = RetVal;
fread(file, valtmp);GetVal(valtmp);civnokill = RetVal;
fread(file, valtmp);GetVal(valtmp);accountplay = RetVal;
fread(file, valtmp);GetVal(valtmp);mediccharge = RetVal;
fclose(file);
print(".....Config Settings Loaded");
printf("%s %d %d %d %d %d %d %d %d %d",motd,dollah,realtime,timeshift,wtime,gRoundTime,levelcost,deathcost,paycheck,realchat,forceteam);
}



Re: settings... - dice7 - 19.03.2010

Ask in the topic where you got the script


Re: settings... - WardenCS - 19.03.2010

i didnt got it from any topics here...


Re: settings... - dice7 - 19.03.2010

Then ask it where ever you got it.


Re: settings... - WardenCS - 19.03.2010

he wont help me...he went to another country or smth...is this so hard for u,pro scripter?