IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Var ... End

 question
 
Ify24  
Posted: Sunday, Mar 18 2012, 09:36
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



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 ???
PM
  Top
 

 
SilentPL  
Posted: Sunday, Mar 18 2012, 09:55
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




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.

This post has been edited by SilentPL on Sunday, Mar 18 2012, 09:59
Users WebsitePMMSNXbox Live
  Top
 

 
Ify24  
Posted: Sunday, Mar 18 2012, 10:22
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



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

Thanks for nothing.
PM
  Top
 

 
Link2012  
Posted: Sunday, Mar 18 2012, 13:05
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



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)
PMMSN
  Top
 

 
Ify24  
Posted: Monday, Mar 19 2012, 16:20
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



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.
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG