How to...
#1

Hello,I have two questions.

1.How can I check the lenght of the messase sent in the callback "OnPlayerText"

2.How can I check if the player sent the same message two times one after another?

Thanks!
Reply
#2

1. strlen
Reply
#3

Wiki.SA-MP.com - strlen(string[])
Create a global array (string) and use strmid or format to set that string to be the same as OnPlayerText's parameter, 'text[]'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)