489
edits
Paradox-01 (talk | contribs) m (image was permanently deleted because this was fixed) |
Script 10k (talk | contribs) (schedule ... repeat ... every ... pseudo code fix) |
||
Line 32: | Line 32: | ||
:There's also [[Gameplay]], for some brief weapon tips. Here's the thing, though. [[Mercury Bow]] is already an article. Why should the M Bow get an article and not the other weapons? In fact, I would say that most of the red links highlighted at the top of "Wanted pages" are equally minor. While there may not be a lot to say about them, they deserve at least a short page, I think. --[[User:Iritscen|Iritscen]] ([[User talk:Iritscen|talk]]) 04:22, 25 November 2015 (CET) | :There's also [[Gameplay]], for some brief weapon tips. Here's the thing, though. [[Mercury Bow]] is already an article. Why should the M Bow get an article and not the other weapons? In fact, I would say that most of the red links highlighted at the top of "Wanted pages" are equally minor. While there may not be a lot to say about them, they deserve at least a short page, I think. --[[User:Iritscen|Iritscen]] ([[User talk:Iritscen|talk]]) 04:22, 25 November 2015 (CET) | ||
==Wrong pseudo code== | |||
Hi Iritscen thanks for fixing my wording. | |||
I have just noticed a small error. | |||
The following code: | |||
for (int i = 0; i < 50; i++) | |||
{ | |||
print("Is this annoying yet?"); | |||
wait(20); | |||
} | |||
found here: | |||
http://wiki.oni2.net/BSL:Manual (schedule ... repeat ... every ...) | |||
is not correct. It is not equivalent to (at least if you change the variables, let say 50 to -1) in | |||
schedule dprint("Is this annoying yet?") repeat 50 every 20; | |||
the correct code should be the following: | |||
int i = 0; | |||
do | |||
{ | |||
print("Is this annoying yet?"); | |||
wait(20); | |||
i++; | |||
} while (i != 50); | |||
Why? If the conditional value is -1 or 0 (instead of 50) your code would never run (it would stop at first loop condition validation). | |||
While with: | |||
schedule dprint("Is this annoying yet?") repeat -1 every 20; | |||
It would run forever. Please consider to edit the page or if you want I can do it. Thanks. [[User:Script 10k|Script 10k]] ([[User talk:Script 10k|talk]]) 19:27, 2 November 2017 (CET) |
edits