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
Linear Mode
Laser color.
MP2
Godfather
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
#6
26.07.2012, 13:48
Quote:
Originally Posted by
Dan.
Does It matter if it's:
pawn Код:
if
(
!
strcmp
(
params,
"red"
, true
)
)
or:
pawn Код:
if
(
strcmp
(
params,
"red"
, false
)
)
.
Yes it does. ! checks if strcmp is FALSE, strcmp returns FALSE if the strings MATCH, which is what you want. The true is so if a player typed 'RED' or 'Red' it will still work (case insensitive).
Find
Reply
«
Next Oldest
|
Next Newest
»
Messages In This Thread
Laser color.
- by
Dan.
- 26.07.2012, 11:06
Re: Laser color.
- by
[IKS]Niko_Hs™
- 26.07.2012, 11:20
Re: Laser color.
- by
MP2
- 26.07.2012, 11:21
Re: Laser color.
- by
Dan.
- 26.07.2012, 11:30
Re: Laser color.
- by
Kindred
- 26.07.2012, 11:32
Re: Laser color.
- by
MP2
- 26.07.2012, 13:48
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