OnPlayerCommandText - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerCommandText (
/showthread.php?tid=610480)
OnPlayerCommandText -
ScIrUsna - 24.06.2016
Hi,
I have to check OnPlayerCommandText if player input % in commands when player can write text?
Re: OnPlayerCommandText -
Dayrion - 24.06.2016
You should use
strfind.
Re: OnPlayerCommandText -
ScIrUsna - 25.06.2016
Yes i know that i can use strfind but it's necesarry? like /sms [player] [sms] i'am saving player messages and sending them, i need to strfind and don't let peoples insert % in text?
Re: OnPlayerCommandText -
Mencent - 25.06.2016
Hello!
You can use strcmp (with a for-loop) or strfind. But you have to use one of them.
Re: OnPlayerCommandText -
ScIrUsna - 25.06.2016
But it's necessary?
Re: OnPlayerCommandText -
Eymeric69 - 25.06.2016
or use ZCMD it's simple