settings...
#1

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);
}
Reply
#2

Ask in the topic where you got the script
Reply
#3

i didnt got it from any topics here...
Reply
#4

Then ask it where ever you got it.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)