Coding

 Closed TopicStart new topic

Microjam

Michael.Knight1
post May 9 2012, 11:46 AM
Post #1


Member

Posts: 130
From: Germany
Joined: 24-March 12






done.

This post has been edited by Michael.Knight1: May 9 2012, 05:18 PM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
fastman92
post May 9 2012, 01:20 PM
Post #2


Trained Member

Posts: 77
Joined: 25-October 10



Why do you still decompile your own CLEO scripts? Do not decompile .cs files, open .txt file of your script. Open .txt file of your script. Open .txt file of your script. Open .txt file of your script.

We're not gonna help you until you post undecompiled scripts - original sources.

This post has been edited by fastman92: May 9 2012, 01:21 PM
Go to the top of the page
 
+Quote Post
Michael.Knight1
post May 9 2012, 01:23 PM
Post #3


Member

Posts: 130
From: Germany
Joined: 24-March 12






done.

This post has been edited by Michael.Knight1: May 9 2012, 05:18 PM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
badboy
post May 9 2012, 02:03 PM
Post #4


Trained Member

Posts: 76
From: Nederland, NL
Joined: 1-May 12



Don't use globals when not necessary, and only use conditonal opcodes in a condition
Go to the top of the page
 
+Quote Post
Albreht
post May 9 2012, 03:07 PM
Post #5


Trained Newbie

Posts: 21
Joined: 19-February 12



i think this is much better
CODE
:KITT1
if or
8AB0: not key_pressed 77 // M
8AB0: not key_pressed 49 // 1
jf @JAM1
if or
8AB0: not key_pressed 77 // M
8AB0: not key_pressed 50 // 2
jf @JAM2
if or
8AB0: not key_pressed 77 // M
8AB0: not key_pressed 51 // 3
jf @JAM3
if or
8AB0: not key_pressed 77 // M
8AB0: not key_pressed 52 // 4
jf @JAM4
if or
8AB0: not key_pressed 77 // M
8AB0: not key_pressed 53 // 5
jf @JAM5
if or
8AB0: not key_pressed 77 // M
8AB0: not key_pressed 54 // 6
jf @JAM6


i didn't tried. but i think crashes are caused by them
CODE
00D6: if
03C0: 0@ = actor $PLAYER_ACTOR car
004D: jump_if_false @JAM2

03C0 gets actor's car handle. not used in "if"

CODE
if
   not 7@ == -1
0186: 8@ = create_marker_above_car 7@
004D: jump_if_false @HELLO

above the same reason.

and if you could, you should make this script again from blank.

sorry for bad english XD
Go to the top of the page
 
+Quote Post
Michael.Knight1
post May 9 2012, 04:34 PM
Post #6


Member

Posts: 130
From: Germany
Joined: 24-March 12



@Albreht !! Wrong Help down.gif


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
badboy
post May 9 2012, 05:06 PM
Post #7


Trained Member

Posts: 76
From: Nederland, NL
Joined: 1-May 12



QUOTE (Michael.Knight1 @ May 9 2012, 06:34 PM) *
@Albreht !! Wrong Help down.gif


Whether you like it or not Albreht was right. You should learn how to use jump_if_false, and what a condition is.
Also, and please take this as serious advice, learn better English.

If you knew better English you would have known that "03C9: car 7@ damaged" is a condition, and would understand more of both coding tutorials and the code self.

But you probably won't, so here is a tip:
If an opcode has 3 spaces (empty chars) it's a condition, if it hase one space (empty char) it's a normal opcode.
Don't use google translate to translate the above sentence btw.

This post has been edited by badboy: May 9 2012, 05:07 PM
Go to the top of the page
 
+Quote Post
Michael.Knight1
post May 9 2012, 05:17 PM
Post #8


Member

Posts: 130
From: Germany
Joined: 24-March 12



QUOTE (badboy @ May 9 2012, 05:06 PM) *
Whether you like it or not Albreht was right. You should learn how to use jump_if_false, and what a condition is.
Also, and please take this as serious advice, l

"03C9: car 7@ damaged" is a condition, and would understand more of both coding tutorials and the code self.

But you probably won't, so here is a tip:
If an opcode has 3 spaces (empty chars) it's a condition, if it hase one space (empty char) it's a normal opcode.

I Can You're From The Stuipd People , so i didn't wanna your help , @Albreht is Wrong because i modify and everyone the same . no.gif


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Deji
post May 10 2012, 08:37 AM
Post #9


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



This is a forum for Modding help. You're being given it. Please be more respectful to fellow forum members. Read the rules.


--------------------
Go to the top of the page
 
+Quote Post
Closed TopicStart new topic

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