Array must be indexed?
#1

Hey, I got a problem

Why do I get Error Code 033: Array must be indexed on this?:

Error is placed on the line:
pawn Код:
if(pName == HouseInfo[h][hName])
pawn Код:
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
if(pName == HouseInfo[h][hName])
thanks
Reply
#2

It's a string comparison:

pawn Код:
if(!strcmp(pName,HouseInfo[h][hName],true))
Reply
#3

Quote:
Originally Posted by Merlо
It's a string comparison:

pawn Код:
if(!strcmp(pName,HouseInfo[h][hName],true))
thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)