Quantcast

Jump to content

» «
Photo

Var ... End

4 replies to this topic
Ify24
  • Ify24

    0x00000000 --> invisible

  • Members
  • Joined: 17 Aug 2011

#1

Posted 18 March 2012 - 09:36 AM

Hy guys.

CODE
Var
ATTACKER [b]:[/b]
End

What can I put after a colon in Var ... End statement ?

I know that I can type: actor, integer and float.

What else can I use to define other things ???

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#2

Posted 18 March 2012 - 09:55 AM Edited by SilentPL, 18 March 2012 - 09:59 AM.

Think, try and read Sanny's help. If you'l try and write something incorrect - no, your PC won't explode and you won't die in fire.

Ify24
  • Ify24

    0x00000000 --> invisible

  • Members
  • Joined: 17 Aug 2011

#3

Posted 18 March 2012 - 10:22 AM

I read in sanny's help about Var ... End.
Ok, then I will have to test it myself.....

Thanks for nothing.

LINK/2012
  • LINK/2012

    LIVIN' IN CODE

  • Feroci
  • Joined: 30 Jan 2011
  • Brazil

#4

Posted 18 March 2012 - 01:05 PM

Sanny Help, supported types:
QUOTE
The following types are supported:

Integer, Int - integer values

Float - floating-points values

String, ShortString - fixed length string variable

(only for the arrays, use s$, @s for the variables)

LongString - Variable length string variable

(only for the arrays, use v$, @v for the variables)


And you can put a class-name too, in your post you said about Actor, that is because Actor is a "class".

Look:
CODE
var
   0@ : Audiostream
   1@ : Car
end

0@.Load("a.mp3") // works because you defined 0@ as Audiostream, that is the same as:
Audiostream.Load(0@, "a.mp3")

1@.Create(#ADMIRAL, 0.0, 0.0, 0.0) // works, you know...
// Equivalent to...
Car.Create(1@, #ADMIRAL, 0.0, 0.0, 0.0)

Ify24
  • Ify24

    0x00000000 --> invisible

  • Members
  • Joined: 17 Aug 2011

#5

Posted 19 March 2012 - 04:20 PM

QUOTE (Link2012 @ Sunday, Mar 18 2012, 13:05)
Sanny Help, supported types:
QUOTE
The following types are supported:

Integer, Int - integer values

Float - floating-points values

String, ShortString - fixed length string variable

(only for the arrays, use s$, @s for the variables)

LongString - Variable length string variable

(only for the arrays, use v$, @v for the variables)


And you can put a class-name too, in your post you said about Actor, that is because Actor is a "class".

Look:
CODE
var
   0@ : Audiostream
   1@ : Car
end

0@.Load("a.mp3") // works because you defined 0@ as Audiostream, that is the same as:
Audiostream.Load(0@, "a.mp3")

1@.Create(#ADMIRAL, 0.0, 0.0, 0.0) // works, you know...
// Equivalent to...
Car.Create(1@, #ADMIRAL, 0.0, 0.0, 0.0)

Thanks.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users