error 033: array must be indexed (variable "BombStats") - 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)
+--- Thread: error 033: array must be indexed (variable "BombStats") (
/showthread.php?tid=560726)
error 033: array must be indexed (variable "BombStats") -
De4dpOol - 30.01.2015
Hello Guys I am new with strings. I am trying to check the BombStats but I am getting this
error 033: array must be indexed (variable "BombStats")
pawn Код:
new BombStats[24];
BombStats = "Planted";
//Checking if BombStats is "Planted" [No idea how to do this, this is where i am going wrong]//
if(BombStats == "Planted") //error line
Please help me. Thanks.
Re: error 033: array must be indexed (variable "BombStats") -
ATGOggy - 30.01.2015
You need to use strcmp.
PHP код:
if(!strcmp(BombStats, "Planted", true))
Re: error 033: array must be indexed (variable "BombStats") -
De4dpOol - 30.01.2015
Thanks man +rep!