CLEO Help How to log a comment

CLEO related
Status
Not open for further replies.

Juanbustillos

Active member
Joined
Mar 29, 2014
Messages
29
Reaction score
4
Location
Ecuador
Hi. i want to log a comment in SAMPFUNCS.txt but when i try to compile it says Error: unfinished string ".
Any idea to do this?

log "//Object %d" 4@
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,734
Solutions
2
Reaction score
117
Ju4n_Kr4t0s link said:
Try this:
alloc 0@ 1
alloc 1@ 1
format 0@ "/"
format 1@ "/"

log "%s%sObject %d" 0@ 1@ 4@
:forever_opcode_alone:
Did you just solve your own help request?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
273
That seems like an inconvenient way for just two slashes.
Code:
log "%c%c sObject %d" 0x2F 0x2F 4@
or
Code:
log "\\ sObject %d" 0x2F 0x2F 4@
or
don't use slashes.
 
Status
Not open for further replies.
Top