error 033: array must be indexed (variable "BombStats")
#1

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.
Reply
#2

You need to use strcmp.

PHP код:
if(!strcmp(BombStats"Planted"true)) 
Reply
#3

Thanks man +rep!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)