The conditional sentence where all conditions must be true for the script to proceed (maximum in Sanny Builder/CLEO is 8 conditions under one IF AND or IF OR). The condition must be true/met in order for script to proceed. The condition can be written below or next to IF. Keyword used as a conditional sentence, just like in real life. It is possible to define more variables, but we may talk about that later. Regular variables may range from to Usually and are used to define boolean (true or 1 and false or 0) states of a command. It is possible to have multiple local variables of the same alias (number) but defined differently in different parts of the script. A script can define a global variable, however it is bad to do so as it may interfere with other to are local variables defined in the script itself and used only by the part of the script they are defined in. They have the same meaning in all scripts. These variables are not defined by the script but by the game/CLEO (SB) itself. Global variables that come from the base of the CLEO and GTA itself start with $. It can be used with a simple sentence such as jump, else_jump or with more advanced ones such as call. The label is basically a work space where a certain piece of code (snippet) will be marks the label itself and interaction with it within a code sentence. Is a keyword that creates a thread in the system if there is no source available all labels will get the name of the thread. Is a directive arks that the script is made in CLEO and will be saved as a CLEO script for that GTA version (GTA San Andreas PC CLEO script extension is. NOTE: This is only about wait 0, not the entire wait keyword. It is put at the very beginning of the labels, otherwise, for an unknown reason, the script crashes. And Sanny prevents compiling if it is not there, apparently, to prevent bugs.Ī form of the wait keyword with number 0 that has a similar function in the label like the 0000: opcode has in the script. To display classes and keywords press CTRL + Space in Sanny Builder.ĭirectives are places at the beginning of the script in the braces (curly brackets -, in order for script to be able to be compiled. For example the wait keyword will pause the script for the set amount of milliseconds when the script reaches the wait keyword. Keywords can be both checks and procedures. Keywords are for example: IF, THEN, END, shake_camera, key_down, thread, set_weather, etc. Keywords are commands, set bold in Sanny Builder, they operate/function like opcodes. To display classes and keywords press CTRL + Space in Sanny Builder. Example: Actor.Driving($PLAYER_ACTOR) is a check and it will check if player is driving in the IF conditional sentence. followed by a dot (.) after which check, proc and property come. Classes start with a word such as Actor, Player, Car, File, etc. Property is something between proc and check, it is used to get something from something or set something to something. Proc stands for procedure and is used as a consequence of the condition (After THEN, ELSE). Check is used in IF conditional sentence as a condition. In the script any number can be assigned to represent true and/or to represent false.Ĭlass in the script means a category that can be used as check, proc or property. That parameter can be anything: Weapon ID, car ID, text, color, a number, etc. Anything past the : is either just a piece of text to tell what the opcode does or a parameter that allows the operation code to do what it needs to do. Operation code that starts with 0, has 4 characters and ends with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |