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
Help about is string in text
leo9
Little Clucker
Posts: 46
Threads: 10
Joined: May 2014
Reputation:
0
#1
26.06.2014, 15:34
guys i wanna a code wich say is any string in inputtext like isplayerinvehicle can u help pls
Find
Reply
RedFusion
Gangsta
Posts: 920
Threads: 113
Joined: Nov 2009
Reputation:
0
#2
26.06.2014, 17:34
pawn Код:
if
(
strlen
(
inputtext
)
)
Checks if the length of the string isn't 0
pawn Код:
if
(
strlen
(
inputtext
)
>
0
)
Checks if the length of the string is above 0
pawn Код:
if
(
strlen
(
inputtext
)
!=
0
)
Same as the first alternative
All of these alternatives work for what you want to achieve
https://sampwiki.blast.hk/wiki/Strlen
https://sampwiki.blast.hk/wiki/Control_Structures#Operators
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