Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
OnPlayerCommandText
ScIrUsna
Huge Clucker
Posts: 285
Threads: 154
Joined: Mar 2016
Reputation:
0
#1
24.06.2016, 16:45
Hi,
I have to check OnPlayerCommandText if player input % in commands when player can write text?
Find
Reply
Dayrion
High-roller
Posts: 1,915
Threads: 64
Joined: Jan 2016
Reputation:
0
#2
24.06.2016, 17:37
You should use
strfind
.
Find
Reply
ScIrUsna
Huge Clucker
Posts: 285
Threads: 154
Joined: Mar 2016
Reputation:
0
#3
25.06.2016, 04:11
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?
Find
Reply
Mencent
High-roller
Posts: 1,311
Threads: 11
Joined: Mar 2015
Reputation:
0
#4
25.06.2016, 06:57
Hello!
You can use strcmp (with a for-loop) or strfind. But you have to use one of them.
Find
Reply
ScIrUsna
Huge Clucker
Posts: 285
Threads: 154
Joined: Mar 2016
Reputation:
0
#5
25.06.2016, 08:02
But it's necessary?
Find
Reply
Eymeric69
Big Clucker
Posts: 166
Threads: 35
Joined: May 2014
Reputation:
0
#6
25.06.2016, 08:19
or use ZCMD it's simple
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help