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
array must be indexed, variable "kind"
yanir3
Big Clucker
Posts: 168
Threads: 43
Joined: Jul 2010
Reputation:
0
#1
17.01.2011, 20:12
solved
Find
Reply
Retardedwolf
High-roller
Posts: 1,466
Threads: 7
Joined: Jun 2009
Reputation:
0
#2
17.01.2011, 20:15
Use
strcmp
for comparing strings.
Find
Reply
yanir3
Big Clucker
Posts: 168
Threads: 43
Joined: Jul 2010
Reputation:
0
#3
17.01.2011, 20:20
I can't use strcmp, I just don't understand it.
Find
Reply
Not available
Big Clucker
Posts: 94
Threads: 0
Joined: Jan 2011
Reputation:
0
#4
17.01.2011, 20:22
You have already used it.
pawn Код:
else
if
(
!
strcmp
(
x_imp,
"neon"
,true
)
)
Btw; this makes no sence, you are converting the string to an integer then "comparing" it as a textstring again.
pawn Код:
new
kind
[
24
]
=
strval
(
tmp
)
;
if
(
kind
==
"green"
)
Find
Reply
yanir3
Big Clucker
Posts: 168
Threads: 43
Joined: Jul 2010
Reputation:
0
#5
17.01.2011, 20:29
ty i used strcmp and succeed!
thanks
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