CLEO Help how to check if a text string has a specific character

CLEO related
Status
Not open for further replies.

noob213

Active member
Joined
Sep 15, 2017
Messages
88
Reaction score
6
example

alloc 1@ 32
while true
wait 0
for 0@ = 0 to 1000
if 0B23: samp is_player_connected 0@
then
0B36: samp 1@ = get_player_nickname 0@
if
// nickname contains the following character $
then
chatmsg "the name contains the $ character" -1
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
example

alloc 1@ 32
while true
wait 0
for 0@ = 0 to 1000
if 0B23: samp is_player_connected 0@
then
0B36: samp 1@ = get_player_nickname 0@
if
// nickname contains the following character $
then
chatmsg "the name contains the $ character" -1
Which character?
 
Status
Not open for further replies.
Top