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
Help Archive
Threaded Mode
Question.
armyoftwo
Gangsta
Posts: 636
Threads: 112
Joined: Nov 2009
Reputation:
0
#1
16.01.2011, 09:55
pawn Код:
if
(
inputtext
==
"Keyword"
)
It gives me an error, is there an other way besides strcmp()?
Find
Reply
[WF]Demon
Huge Clucker
Posts: 484
Threads: 61
Joined: Oct 2009
Reputation:
0
#2
16.01.2011, 10:22
and what is wrong with strcmp? you can just do this
pawn Код:
if
(
strcmp
(
inputtext,
"Keyword"
, true
)
==
0
)
{
//Rest here
}
Find
Reply
Lorenc_
High-roller
Posts: 3,793
Threads: 196
Joined: Jan 2010
Reputation:
0
#3
16.01.2011, 10:33
if(strval(inputtext) == "Keyword")
Maybe that.
Find
Reply
Kase
Big Clucker
Posts: 50
Threads: 0
Joined: Jan 2011
Reputation:
0
#4
16.01.2011, 10:39
Quote:
Originally Posted by
Lorenc_
if(strval(inputtext) == "Keyword")
Maybe that.
I doubt it will work, since "Keyword" is not an integer. I recall using the character ' instead of ", but I'm
really
unsure. It's worth a try, though
strcmp could work out, why aren't you using it?
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: 3 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive