SA-MP Forums Archive
[SOLVED] Strange error - 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: [SOLVED] Strange error (/showthread.php?tid=121986)



[SOLVED] Strange error - KnooL - 19.01.2010

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.


Re: [UNSOLVED] Strange error - GTAguillaume - 19.01.2010

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



Re: [UNSOLVED] Strange error - KnooL - 19.01.2010

Thank you, looks like strcmp is a weakness of mine