array must be indexed, variable "kind" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: array must be indexed, variable "kind" (
/showthread.php?tid=212730)
array must be indexed, variable "kind" -
yanir3 - 17.01.2011
solved
Re: array must be indexed, variable "kind" -
Retardedwolf - 17.01.2011
Use
strcmp for comparing strings.
Re: array must be indexed, variable "kind" -
yanir3 - 17.01.2011
I can't use strcmp, I just don't understand it.
Re: array must be indexed, variable "kind" -
Not available - 17.01.2011
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")
Re: array must be indexed, variable "kind" -
yanir3 - 17.01.2011
ty i used strcmp and succeed!
thanks