GTA: Modification Area
Would you like to react to this message? Create an account in a few clicks or log in to continue.
GTA: Modification Area

A website for the GTA modding scene

Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Big-game starts raising Schneider's profile
CLEO Rules EmptySun Mar 04, 2012 2:28 am by lavivi

» [Help] cleo created lighting
CLEO Rules EmptyThu Oct 14, 2010 1:03 am by findmy012

» Mission Question
CLEO Rules EmptyThu Oct 14, 2010 1:02 am by findmy012

» [IV] Spoiler Script
CLEO Rules EmptyThu Oct 14, 2010 1:02 am by findmy012

» Mission mod [help]
CLEO Rules EmptySat Sep 18, 2010 5:50 pm by jayd00

» Bc7 Mod Help
CLEO Rules EmptyFri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
CLEO Rules EmptyFri Dec 18, 2009 4:22 am by _CJ360_

» [IV] Novitec Rosso 599 GTB
CLEO Rules EmptyTue Nov 17, 2009 4:22 pm by Kotton

» Hello/Guidance Request
CLEO Rules EmptyMon Oct 12, 2009 6:45 am by Adler

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
image

Image

Image

Image

Image

Image

Image

Image

Image

Image

image

Image

steve-m.com

Image


----- Русский -----

Если ваш сайт содержит большую коллекцию SCM/CLEO-скриптов (больше 16), напишите на мой e-mail, и я добавлю его в список. Приветствуются скрипты, которые не встречаются на других сайтах ... Спасибо. ))))


----- English -----

If your website has a big enough collection of SCM/CLEO scripts (more than 16) notify me by e-mail
, and I will add it to the list. The unique scripts are preferable ... Thank you. ))))
Log in

I forgot my password



April 2024
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930     

Calendar Calendar


You are not connected. Please login or register

CLEO Rules

Go down  Message [Page 1 of 1]

1CLEO Rules Empty CLEO Rules Fri Feb 06, 2009 2:25 am

james227uk

james227uk
Admin

There are several rules of CLEO:


One file – one thread. Each CLEO script must be made as a single thread compiled in a single file. If you need more threads for your script, use the opcodes 004F or 0A92, depending on where that additional thread is located in - in the main.scm or separate .cs file.
Never use opcode 004E in the CLEO threads. They work separately from the common threads, so using this opcode will cause an error. Use the opcode 0A93, if you need to stop a CLEO script. Conversely, never use opcode 0A93 in the CLEO missions, but instead use 004E to cancel a mission.

Remember, you must follow these rules!

So

Code:

004E: end_thread


Would be replaced with:

Code:

0A93: end_custom_thread

When witting a CLEO script.

In a mission you must NEVER do this:

Code:

0050: gosub @MissionStart
00d6: if
0112:  wasted_or_busted // mission only
004d: jump_if_false @MissionEnd
0050: gosub @MissionFailed

:MissionEnd
0050: gosub @MissionCleanup

// THIS IS WRONG!!
0A93: end_custom_thread

It should be:

Code:

0050: gosub @MissionStart
00d6: if
0112:  wasted_or_busted // mission only
004d: jump_if_false @MissionEnd
0050: gosub @MissionFailed

:MissionEnd
0050: gosub @MissionCleanup
004e: end_thread

Locked

http://james227ukmods.synthasite.com

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum