CLEO Help how to do this?

CLEO related
Status
Not open for further replies.

Juanbustillos

Active member
Joined
Mar 29, 2014
Messages
29
Reaction score
4
Location
Ecuador
Hi. I have created a cleo that shows score , distance and ping of a certain player by typing /info [playerid] and it works well..

but I wanna know how to print that things not in the same line..

For example i get
Score: 2 Ping: 180 Distance: 213.112

and i want like this
Score: 2
Ping: 180
Distance: 213.112

Look at my code:

17@ = Render.CreateFont("Verdana", 8, 12)
alloc 18@ 64
format 18@ "Score: %d~n~Ping: %d~n~Distance: %f" 12@ 13@ 14@
Render.DrawText(17@, 18@, 15@, 16@, -1)

~n~ means new line but it doesn't work what i need to put?
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Split it up individually

Code:
format 18@ "Score: %d" 12@
Render.DrawText(17@, 18@, 15@, 16@, -1)
format 19@ "Ping: %d" 13@
Render.DrawText(17@, 19@, 15@, 16@, -1)
format 20@ "Distance: %f" 14@
Render.DrawText(17@, 20@, 15@, 16@,-1)
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Use '\n' attribute.

Code:
alloc 18@ 64
format 18@ "Score: %d%cPing: %d%cDistance: %f" 12@ 0xA 13@ 0xA 14@
Render.DrawText(17@, 18@, 15@, 16@, -1)
 
Status
Not open for further replies.
Top