The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For in Dialog buggy??
Author Message
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #1
For in Dialog buggy??
when I try this one

[DIALOG d_open_quest]
0,0
page 0
f_read_quests_titel 3,1,2,3

[FUNCTION f_read_quests_titel]
FOR x 0 <argv>
serv.log X: <dlocal.x>
ENDFOR

I got this one
X: 0
X: 1
X: 2
X: 3
X: 3

so the last local.x is looping twice.
maybe I am stupid or is it a bug?

gr

phoenix
02-19-2013 09:36 PM
Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #2
RE: For in Dialog buggy??
try:
FOR x 0 <eval <argv>-1>

if you start at 0, you need to -1 from argv don't you?

ULTIMA ONE
The modern, sphere powered Ultima Online server
02-19-2013 10:29 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: For in Dialog buggy??
02-19-2013 10:39 PM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #4
RE: For in Dialog buggy??
yes, sorry, forgot to post the part
<eval <argv>-1>

(02-19-2013 10:39 PM)darksun84 Wrote:  http://tracker.sphere.torfo.org/bugs/view.php?id=2043
thanks darksun84
I knew that there was something on the bugtracker but didnĀ“t found it.
I solved it via while/endwhile
(This post was last modified: 02-19-2013 10:56 PM by admin phoenix.)
02-19-2013 10:53 PM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #5
RE: For in Dialog buggy??
didn't need to replace with "while/endwhile", just needed to make sure there was another blank line at the end of the script.

This never happened when [EOF] was required Smile

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
02-20-2013 09:23 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)