HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

OMG WE is so stupid, look at this!

02-25-2003, 11:25 PM#1
FyreDaug



What can I do to get my JASS script to work? All it does is go through a bunch of arrayed variables and change stuff.
02-26-2003, 12:21 AM#2
Guest
LOL!!! HAHAHAHAH.... that is funny.... WE is stupid... can't help ya there just had to laugh at how stupid it is:ggani: Perhaps copy'n'paste on another map :bgrun:
02-26-2003, 12:24 AM#3
STURMguy22
ur sure helpful aftershock......wow......i am too......
02-26-2003, 01:22 AM#4
FyreDaug
...
02-26-2003, 01:41 AM#5
FyreDaug
Are you limited to 25 or 26 ELSEIF statements? Because if I delete them down to the 25th one from 0-25, it works and doesn't give me an error, saying theres no errors...... I'm lost.


EDIT: Sorry I said that wrong, 0-25 is there, the rest above it are not.
02-26-2003, 01:49 AM#6
FyreDaug
Damnit, it is a limit somehow, I just deleted a bunch of random ELSEIF's and it works..... I need them ALL, how can I do this?
02-26-2003, 02:07 AM#7
Guest
Try passing everything to a new function.
02-26-2003, 02:52 AM#8
weaaddar
GUs item2string function would not compile with the full list I assumed it was becuase he used Elseifs if its not completely neccessary that the first event is false or if your postive it can only be once branch and your willing to waste more mem just uses ifs..
I've used over 25 ifs in a function so I think your safe.
02-26-2003, 03:39 AM#9
nicoli_s
try putting it in there manually in the .w3m file with winmpq if u know how
02-26-2003, 03:59 AM#10
DaemonKillar
I wouldn't be able to tell you how many times such shit happened to me while makin COTN, except I had like 300 compile errors. The solution is simple: I reboot my CPU and it works fine ;)
02-26-2003, 04:48 AM#11
dataangel
Use ifs instead of elseifs, and if possible replace your last elseif with an else.
02-26-2003, 07:22 PM#12
FyreDaug
Basically it's IF x=1 then
elseif (x=1-79)
end if.

This is also in a loop statement.....
02-26-2003, 09:37 PM#13
FyreDaug
It works fine right now, but I only have these ones, from 0-79

0, 55-79, that's 26 if I'm not mistaken. The 0 is the IF statement and the rest are elseif's.

Please help me
03-01-2003, 08:29 AM#14
PitzerMike
I can't see the problem, just initialize another if-block after every 25 elseifs, I have done that before

if x = 0 then
...
elseif x = 25 then
...
endif
if x = 26 then
....
elseif x = .....


You could also use a boolean to detect if the first if-statements didn't match and initialize another if block.

if x = 0 then
...
elseif x = 24 then
....
else
set yourboolean = false
endif

if yourboolean == false then
if x = 25 then
....
elseif x = 26 then
....
endif
endif
03-01-2003, 05:14 PM#15
FyreDaug
Its still 216*80, it would crash. I have a better method to use, with Local variables.