Hey,
For some reason i can't get my progress report right.
It report only the stats of the last round.
But no of all the previous rounds
Here is my script.
http://villavu.com/forum/showthread.php?t=57191
All works out fine now, thx for the help.
Hey,
For some reason i can't get my progress report right.
It report only the stats of the last round.
But no of all the previous rounds
Here is my script.
http://villavu.com/forum/showthread.php?t=57191
All works out fine now, thx for the help.
Last edited by fre; 06-11-2010 at 07:34 AM.
~Fre
it should be
instead ofSCAR Code:Players[CurrentPlayer].Integers[10] := Players[CurrentPlayer].Integers[10]+Gems;
SCAR Code:Players[CurrentPlayer].Integers[10] := Gems
alternatively you can also do
SCAR Code:IncEx(Players[CurrentPlayer].Integers[10], Gems)
tell me if that works I looked at your script for all of 15 seconds.
“Ignorance, the root and the stem of every evil.”
You don't set Players[CurrentPlayer].Integers[1], so everytime Proggy is called, TotalOres will be set to 0 (Players[CurrentPlayer].Integers[1] is 0 if not set) + Ores, so you'll always only get one load.
You have to do something like:
SCAR Code:IncEx(Players[CurrentPlayer].Integers[1], Ores); //will add 'Ores' to Integers[1];
for i := 0 to High(Players) do
IncEx(TotalOres, Players[i].Integers[1]); //will add each players ores to the total script ores
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
I had no idea the integers were set to 0 every time a procedures is called.
Would this be the same as?PHP Code:procedure count;
var
a:integer;
begin
a:=0;
repeat
a:=a+1;
writeln(inttostr(a));
until(a>10)
end;
EDIT: after i posted it i wounder why i didnt test it myself ( i am lazy)PHP Code:procedure count;
var
a:integer;
begin
// not set a to 0 because this is done automatic?
repeat
a:=a+1;
writeln(inttostr(a));
until(a>10)
end;
But i did test it and it is indeed the same.
Thx for the clarification tough.
I ll let my code here for some ppl that might have the same issue.
Last edited by fre; 06-08-2010 at 02:31 PM.
~Fre
I just want to clarify, it's only local variables that are automatically set to 0 when the procedure is called. Global variables are set to 0 when the script starts and is never reset to 0 (unless the scripter manually resets of course).
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
And it's good practice to "reset" local variables at the beginning of every procedure/function.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
It is a problem with their interpreter..
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
I reported in the bugs tracker. Also I heard this isn't a problem in SCAR?
Is your account in an old-school random? Help SRL-OSR solve randoms!
There are currently 1 users browsing this thread. (0 members and 1 guests)