View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001458SphereServerexecutable - genericpublic19-07-08 01:1320-07-08 03:45
ReporterCoruja 
Assigned ToMrSugarCube 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version20-09-2009, 0.56b Prerelease 
Summary0001458: Problem with ARGS
DescriptionIf 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)
TagsNo tags attached.
Nightly Version08-02-2008
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0000013)
Admin BladeCraft (reporter)
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 (developer)
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 (reporter)
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..

- Issue History
Date Modified Username Field Change
19-07-08 01:13 Coruja New Issue
19-07-08 01:13 Coruja Nightly Version => 08-02-2008
19-07-08 01:13 Coruja Experimental Flags => None
19-07-08 01:13 Coruja Option Flags => None
19-07-08 19:36 Admin BladeCraft Note Added: 0000013
20-07-08 00:28 Coruja Note Added: 0000014
20-07-08 03:27 Fire-Dragon-DoL Note Added: 0000016
20-07-08 03:45 MrSugarCube Status new => resolved
20-07-08 03:45 MrSugarCube Fixed in Version => 0.56c Nightly
20-07-08 03:45 MrSugarCube Resolution open => fixed
20-07-08 03:45 MrSugarCube Assigned To => MrSugarCube


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker