SphereServer BugTracker - SphereServer
View Issue Details
0001458SphereServerexecutable - genericpublic19-07-08 01:1320-07-08 03:45
Coruja 
MrSugarCube 
normalmajoralways
resolvedfixed 
 
20-09-2009, 0.56b Prerelease 
08-02-2008
None
None
0001458: Problem with ARGS
If ARGS is defined twice, only on first time it can be parsed correctly. Example:

[FUNCTION lol]
ARGS=test,1,2,3
SAY [<ARGV0>,<ARGV1>,<ARGV2>,<ARGV3>] //this will return: [test,1,2,3] (no problem here)
ARGS=lol,1,2,3
SAY [<ARGV0>,<ARGV1>,<ARGV2>,<ARGV3>] //this will return: [lol,1,2,3,,,] (the <ARGV0> works like <ARGS> returning all the sentence, and others <ARGVx> become empty without arguments)
No tags attached.
Issue History
19-07-08 01:13CorujaNew Issue
19-07-08 01:13CorujaNightly Version => 08-02-2008
19-07-08 01:13CorujaExperimental Flags => None
19-07-08 01:13CorujaOption Flags => None
19-07-08 19:36Admin BladeCraftNote Added: 0000013
20-07-08 00:28CorujaNote Added: 0000014
20-07-08 03:27Fire-Dragon-DoLNote Added: 0000016
20-07-08 03:45MrSugarCubeStatusnew => resolved
20-07-08 03:45MrSugarCubeFixed in Version => 0.56c Nightly
20-07-08 03:45MrSugarCubeResolutionopen => fixed
20-07-08 03:45MrSugarCubeAssigned To => MrSugarCube

Notes
(0000013)
Admin BladeCraft   
19-07-08 19:36   
Im not sure what the problem is because that returns what you set it to be just like the first one.

In any case, try using <argv[#]> in your problem and see if it fixes. I never even knew it worked without [ ]
(0000014)
Coruja   
20-07-08 00:28   
Using <ARGV[x]> I got the same problem :(

I'm using this:

[DIALGO lol]
//1st round...
FOR x
 ARGS .= ,uid1,uid2,uid3,...
ENDFOR
FOR <ARGN>
 dtext lalala <UID.<ARGV[<local._for>]>.NAME> //no problem found
ENDIF

//now the 2nd round...
FOR x
 ARGS .= ,uid1,uid2,uid3,...
ENDFOR
FOR <ARGN>
 dtext lalala <UID.<ARGV[<local._for>]>.NAME> //wtf, <ARGV0> return all the sentence like <ARGS> and all others <ARGVx> is empty..
ENDIF

And, this console error:
19:23:ERROR:(sys_lol.scp,392)Can't resolve <UID.04012677f,040126221.NAME>
(0000016)
Fire-Dragon-DoL   
20-07-08 03:27   
that0s not a big problem

i'm always using args and <strarg> <streat> and <explode>

they works great, very useful..