For in Dialog buggy?? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: For in Dialog buggy?? (/Thread-For-in-Dialog-buggy) |
For in Dialog buggy?? - admin phoenix - 02-19-2013 09:36 PM 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 RE: For in Dialog buggy?? - Ultima One - 02-19-2013 10:29 PM try: FOR x 0 <eval <argv>-1> if you start at 0, you need to -1 from argv don't you? RE: For in Dialog buggy?? - darksun84 - 02-19-2013 10:39 PM http://tracker.sphere.torfo.org/bugs/view.php?id=2043 RE: For in Dialog buggy?? - admin phoenix - 02-19-2013 10:53 PM 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=2043thanks darksun84 I knew that there was something on the bugtracker but didnĀ“t found it. I solved it via while/endwhile RE: For in Dialog buggy?? - Ben - 02-20-2013 09:23 AM 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 |