SA-MP Forums Archive
error 033: array must be indexed (variable "-unknown-") - 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)
+--- Thread: error 033: array must be indexed (variable "-unknown-") (/showthread.php?tid=457089)



error 033: array must be indexed (variable "-unknown-") - Panovsky - 09.08.2013

Deleted


Re: error 033: array must be indexed (variable "-unknown-") - Iron3man - 09.08.2013

Post your codes!!


Re: error 033: array must be indexed (variable "-unknown-") - ikbenremco - 09.08.2013

pawn Код:
new ownerid[MAX_PLAYER_NAME];
I think it's this but you need to post codes else we can't help you..


Re: error 033: array must be indexed (variable "-unknown-") - Panovsky - 09.08.2013

Deleted


Re: error 033: array must be indexed (variable "-unknown-") - dEcooR - 09.08.2013

try to change ur to this

Код:
if(PropInfo[ownerid][PropOwner] != playerid)



Re: error 033: array must be indexed (variable "-unknown-") - Panovsky - 09.08.2013

Quote:
Originally Posted by dEcooR
Посмотреть сообщение
try to change ur to this

Код:
if(PropInfo[ownerid][PropOwner] != playerid)
Not work


Re: error 033: array must be indexed (variable "-unknown-") - Misiur - 09.08.2013

pawn Код:
PropInfo[propid][PropOwner] = pName;
You can't copy strings like that. Use
pawn Код:
strcat(PropInfo[propid][PropOwner], pName);



Re: error 033: array must be indexed (variable "-unknown-") - Panovsky - 09.08.2013

Quote:
Originally Posted by Misiur
Посмотреть сообщение
pawn Код:
PropInfo[propid][PropOwner] = pName;
You can't copy strings like that. Use
pawn Код:
strcat(PropInfo[propid][PropOwner], pName);
Not Work, but error is on this Line: new ownerid = GetPlayerID(PropInfo[propid][PropOwner]);


Re: error 033: array must be indexed (variable "-unknown-") - Misiur - 09.08.2013

Could you show your GetPlayerID function?