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
strcmp
armyoftwo
Gangsta
Posts: 636
Threads: 112
Joined: Nov 2009
Reputation:
0
#1
09.01.2011, 20:56
pawn Код:
if
(
strcmp
(
ip, load
[
3
]
, true,
15
)
==
0
)
{
Both strings are the same (ip, load[3]), but it doesn't execute further?
Find
Reply
JaTochNietDan
High-roller
Posts: 2,502
Threads: 26
Joined: Apr 2007
Reputation:
0
#2
09.01.2011, 21:29
Why bother specifying a length? Also the maximum length of an IP address is 16 characters, so yeah...
Find
Reply
Joe Staff
High-roller
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
#3
09.01.2011, 21:33
In that case you won't need 'true' or '15'
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
Help Archive