HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Line of JASS

04-24-2006, 11:50 PM#1
CyborgDragon
Okay, I was studying a JASS map learning tidbits, and then I got to this line:
Collapse JASS:
udg_ep[( S2I(( 2 + 2 )) - 9 )] ) )
I pretty much understand it except for what S2I means.
04-24-2006, 11:56 PM#2
The_AwaKening
It's a conversion of "String 2 integer"
04-24-2006, 11:58 PM#3
CyborgDragon
Thank you.
04-25-2006, 12:07 AM#4
PipeDream
That line is legal syntax?
04-25-2006, 12:12 AM#5
Earth-Fury
Quote:
Originally Posted by PipeDream
That line is legal syntax?

i presume its part of a bigger line. Else the map wouldnt work.
04-25-2006, 12:35 AM#6
PipeDream
Oh, yeah, that too. I was referring to S2I( integer ).
04-25-2006, 03:53 AM#7
Vexorian
that line is completelly senseless I hope you invented it up in an attempt to make your post seem more credible
04-25-2006, 04:40 PM#8
weaaddar
udg_ep[( S2I(( 2 + 2 )) - 9 )] ) )
S2I takes a string returns an integer, 2+2 is not a string. There are also numerous extra parens.
04-25-2006, 05:19 PM#9
Captain Griffen
Especially since that isn't even a line, it would have to be a part of a line.

You can just ask what S2I means.
04-25-2006, 07:59 PM#10
johnfn
Yeah, if you just found that in a tutorial, I would ditch that tutorial straightaway :P
04-25-2006, 08:22 PM#11
MaD[Lion]
this line is totally fucked, who gave u this line man?
04-27-2006, 01:08 PM#12
CyborgDragon
No one, I was reading through JASS in a map and came across that, and apparently that line does work because nothing's wrong in-game.
04-27-2006, 01:12 PM#13
Mezzer
What map was that?
Oh, and btw, wouldn't it be "Thee who calls one an idiot art an idiot thyself"
04-27-2006, 07:08 PM#14
Captain Griffen
That line does nothing. I'm suprised it even compiles.