Array must be indexed (FROM PUBLIC Function!)
#1

Hey,

I have this public function:
pawn Код:
forward PropertyPTD(playerid,create,string[]);
public PropertyPTD(playerid, create, string[])
And a check in that public:
pawn Код:
if(string == "House"){
But I get this error:
Код:
error 033: array must be indexed (variable "string")
Reply
#2

You can't compare strings like that. Use
pawn Код:
if(!strcmp(string, "House"))
Reply
#3

Cheeers Repped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)