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)


Pages: (2) 1 [2]   ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 Need Help, Please.

 CLEO 3, GTA SA
 
Bad.boy!  
Posted: Saturday, May 26 2012, 07:32
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



QUOTE
00A7 = Car.DriveTo....
Since if i compile and then decompile, 00A7 will be changed to Car.DriveTo


That does Sanny Builder automatically, you can check "Write Opcodes" function in SB options to prevent it. Both ways are compiled the same.

QUOTE
Globals take more memory than Locals.

There is more space for globals than for locals (not sure), but they take the same amount of space.

QUOTE
I must usw (.cs) to trigger the (.cm) ? (GTAModding.com)

Something like this:
CODE
{$CLEO .cs}

0000:

:SNIFFER
repeat
   wait 0
until 00F0:   actor $PLAYER_ACTOR 1 near_point x y radius 3.0 3.0 stopped_on_foot

if and
   0256:   player $PLAYER_CHAR defined
   044B:   actor $PLAYER_ACTOR on_foot // You could leave this
   03EE:   player $PLAYER_CHAR controllable
   $ONMISSION == 0
then
   0A94: start_custom_mission "Custom_Mission"
   $ONMISSION = 1
   00BA: show_text_styled GXT 'CUSTOM_TEXT' time 1000 style 2  // Real string names can't be more than 8 chars
   repeat
       wait 0
   until $ONMISSION == 0
   
   0AB4: 0@ = var 0 // This is used instead of a global
   // In your mission you have to set 0AB3: var 0 = 1 if passed
   // This could cause errors if this one is used in other cleo scripts, so you could use an other var
   // 0@ = var 32 or something
   
   if
       0@ == 1
   then
       0A93: end_custom_thread
   else
       jump @SNIFFER
   end
else
   jump @SNIFFER
end
PM
  Top
 

 
Yezz007  
Posted: Saturday, May 26 2012, 09:46
Quote Post


Do not hate the players , hate the game!
Group Icon
Group: Members
Joined: Feb 4, 2012

in.gif

XXXXX



QUOTE
The error May occur > Not occur yet ( for me at lest)
Actually all the Global var are in Integer
for example if you use $2 & $3 instead of $player_Char & $Player_Actor
the result will be same
if you use global var in string/name, Sanny builder will auto compile to first undefined or Unused Interger
//For normal SCM, global Var are defined in "Sanny Builder 3\data\sa\CustomVariables.ini" file //

Those all variables at "CustomVariables.ini" are the Vars that i can use in CLEO?
Or may crash if use the same name ($0-$10951)?
Is "CustomVariables.ini" stores all vars that is being used by main.scm ?

_______________
The (.cm) works, thanks Bad.boy!

This post has been edited by Yezz007 on Saturday, May 26 2012, 14:04
Users WebsitePM
  Top
 

 
Yezz007  
Posted: Saturday, Aug 18 2012, 04:21
Quote Post


Do not hate the players , hate the game!
Group Icon
Group: Members
Joined: Feb 4, 2012

in.gif

XXXXX



This post is no longer needed, see my problem below.

This post has been edited by Yezz007 on Friday, Aug 24 2012, 13:49
Users WebsitePM
  Top
 

 
Yezz007  
Posted: Friday, Aug 24 2012, 14:06
Quote Post


Do not hate the players , hate the game!
Group Icon
Group: Members
Joined: Feb 4, 2012

in.gif

XXXXX



Man i got a problem, my script just crashing and i dunno know the problemo.
I need your favor please
Please check my code.
It is a CLEO mission (.cm) and crashed after line 125.
Main Question: Why Crash?
Users WebsitePM
  Top
 

 
Deji  
Posted: Friday, Aug 24 2012, 14:20
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



To answer the common question...

Yes, the behavior of the globals in CustomVariables.ini is more expected. The same conflict issue can occur with any var that can be used in more than one script, however. The only way it remains safe to use PLAYER_ACTOR, etc. is on the premise that no script will change its use. But I'd just stay away from globals altogether unless they are temporarily used in a way similar ti in the main.scm or you wanna hijack the SCM.
Users WebsitePM
  Top
 

 

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

0 Members:

Pages: (2) 1 [2] 

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



 
IMG IMG