[SOLVED] Strange error
#1

While doing some stuff I got onto this error:
error 033: array must be indexed (variable "-unknown-")

pawn Код:
if(HouseInfo[h][hName] == "Name") return SendClientMessage(playerid, RED, "[ERROR] No one has bought this house so you cannot rent from here.");
Thanks in advance for helping.
Reply
#2

pawn Код:
if(!strcmp(HouseInfo[h][hName],"Name")) return SendClientMessage(playerid, RED, "[ERROR] No one has bought this house so you cannot rent from here.");
Reply
#3

Thank you, looks like strcmp is a weakness of mine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)