Z
zendraw
Guest
Hi,
so im trying to write a text !@#F!@E! and turn that text into real numbers like this
!=5
@=6
#=120
F=12
etc.
this idea came from the fact that the characters in the font are numbers and what i tryed is
stats=chr(5)+chr(1)+chr(12)+chr(42);
and then im not sure how to turn those characters into real values. + for some reason chr(0-4) are non existent or return 0
this is the code for converting which doesnt work properly
basically what im tryin to achive is to avoid an array of variables and store those variables in single string.
so im trying to write a text !@#F!@E! and turn that text into real numbers like this
!=5
@=6
#=120
F=12
etc.
this idea came from the fact that the characters in the font are numbers and what i tryed is
stats=chr(5)+chr(1)+chr(12)+chr(42);
and then im not sure how to turn those characters into real values. + for some reason chr(0-4) are non existent or return 0
this is the code for converting which doesnt work properly
Code:
str=string(chr(0))+string(chr(6))+string(chr(2))+string(chr(8))+string(chr(9));
Code:
repeat (string_length(str)) {st[i]=string_byte_at(str, i); i++};