CLEO Help Change string to Lower case & 33@ limit

CLEO related
Status
Not open for further replies.

a10210319

Active member
Joined
Mar 21, 2014
Messages
38
Reaction score
0
Change string to Lowercase

and

Relieve 33@ limit ?

how to do it ?
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
You want to change the string because it is upper case? or what do you want?

EXAMPLE ON SANNYBUILDER: must be %s but it appears %S?

If you want to change that you must do this:
Press F10 (options) on Sanny Builder, formats tab then on Case converting choose "As is".

And for the limit, i think you can use opcode 0029.

For example: 0029:  33@ >= 99.
 

a10210319

Active member
Joined
Mar 21, 2014
Messages
38
Reaction score
0
pepeelpubero link said:
You want to change the string because it is upper case? or what do you want?

EXAMPLE ON SANNYBUILDER: must be %s but it appears %S?

If you want to change that you must do this:
Press F10 (options) on Sanny Builder, formats tab then on Case converting choose "As is".

And for the limit, i think you can use opcode 0029.

For example: 0029:  33@ >= 99.

Q1.
now i edit Proaim.cs
i read a name from ini file
when i get another player nickname and use 0C18: 29@ = strstr string1 25@ string2 17@
Tell whether the target , i want CLEO aim Specified player , but sannybuilder Case sensitive Makes me a not good edit


Q2.
CLEO only support 0@~33@ , Not enough for me
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
a10210319 link said:
Q1.
now i edit Proaim.cs
i read a name from ini file
when i get another player nickname and use 0C18: 29@ = strstr string1 25@ string2 17@
Tell whether the target , i want CLEO aim Specified player , but sannybuilder Case sensitive Makes me a not good edit


Q2.
CLEO only support 0@~33@ , Not enough for me

A1: I don't understand.

A2: Try using for example $NUMBER34, just replace the new @ with $. You must type on it a word, if you put $ only with numbers, it doesn't work.
 

m1zg4rd_PL

Well-known member
Joined
Jul 19, 2013
Messages
222
Reaction score
0
a10210319 link said:
Relieve 33@ limit ?

how to do it ?

You can do this by using INI files. Just read and write keys to store integer, float and strings:

Code:
//for reading, 0@ will be used to read and write data to keys
0AF0: 0@ = get_int_from_ini_file "CLEO\YourConfigFile.ini" section "SECTION" key "YourKey"
0AF2: 0@ = get_float_from_ini_file "CLEO\YourConfigFile.ini" section "SECTION" key "YourKey"
0AF4: 0@v = read_string_from_ini_file "CLEO\YourConfigFile.ini" section "SECTION" key "YourKey"

//for writing
0AF1: write_int 69 to_ini_file "CLEO\YourConfigFile.ini" section "SECTION" key "YourKey"
0AF3: write_float 6.9 to_ini_file "CLEO\YourConfigFile.ini" section "SECTION" key "YourKey"
0AF5: write_string "string value" to_ini_file "CLEO\YourConfigFile.ini" section "SECTION" key "YourKey"
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Use 0AB1/0AB2, variables used in these don't interfere with variables used in script, so infinite variables.

Don't use strstr, use 0C14: strcmp or 0C21: stricmp(insensitive).
 
Status
Not open for further replies.
Top