Using jumps/looping?

Status
Not open for further replies.

Zin

Well-Known Member
Joined
Aug 1, 2013
Messages
1,696
Likes
112
Points
208
Website
youtube.com
#21
It's not that it doesn't work, you can change the color using {COLOR} inside the string (first parameter) but 0af8 takes 2 parameters according to the docs (https://blast.hk/wiki/opcodes:0af8), so the correct use should be 0af8: "text" -1, somehow you don't use the second parameter along all the code so maybe there's like a default color but I'm not sure about that...
Nah that's exactly it, always happens to me when I put debug lines like that and forget params like time for 0AD1 and colour for say_msg. Pretty sure any sort of invalid params or "bad use of opcode" will give the gambling thing.
 
OP
OP
C

ChampaRando

Well-Known Member
Joined
Jan 17, 2020
Messages
65
Likes
3
Points
8
Location
INDIA
#22
Sweet, so what's that -1 suppose to do? I dont exactly get blasthack's guide.

SO is it good practice to use (0AF8: samp add_message_to_chat "{00FF00}Looping again" -1 )?
 

Zin

Well-Known Member
Joined
Aug 1, 2013
Messages
1,696
Likes
112
Points
208
Website
youtube.com
#23
Sweet, so what's that -1 suppose to do? I dont exactly get blasthack's guide.

SO is it good practice to use (0AF8: samp add_message_to_chat "{00FF00}Looping again" -1 )?
Well you have to else the game crashes. You could just use the sampfuncs console (open by pressing @) you don't need to put any -1 or anything and you can do colours same way with {FFFFFF} and stuff, it also doesn't spam the chat and dissapear because people keep writing in the chat but your choice. -1 is just white (unless you put your own colours with curly brackets).
 
OP
OP
C

ChampaRando

Well-Known Member
Joined
Jan 17, 2020
Messages
65
Likes
3
Points
8
Location
INDIA
#24
A
Well you have to else the game crashes. You could just use the sampfuncs console (open by pressing @) you don't need to put any -1 or anything and you can do colours same way with {FFFFFF} and stuff, it also doesn't spam the chat and dissapear because people keep writing in the chat but your choice. -1 is just white (unless you put your own colours with curly brackets).
Ah right yeah I get ya I get ya.

Cheers, this thread can be locked. It was a pleasure trying to solve my code with all of you haha. Thank you.
 
Status
Not open for further replies.
Top