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



error 033: array must be indexed (variable "zoned") - Skinnz - 05.08.2016

hello, i have a error in compilation

error 033: array must be indexed (variable "zoned")

PHP код:
new zoned[MAX_ZONE_NAME], richman strlen("Richman");
                
GetPlayer2DZone(playeridzonedMAX_ZONE_NAME);
                if(
zoned == richmanSCM(playerid,BLANC,"Richman"); 
Can you help me ?


Re: error 033: array must be indexed (variable "zoned") - Fantje - 05.08.2016

new zoned[MAX_ZONE_NAME], richman = strlen("Richman");
GetPlayer2DZone(playerid, zoned, sizeof(zoned));
if(zoned == richman) SCM(playerid,BLANC,"Richman");


Respuesta: error 033: array must be indexed (variable "zoned") - Skinnz - 05.08.2016

Same problem


Re: error 033: array must be indexed (variable "zoned") - SickAttack - 05.08.2016

pawn Код:
new zoned[MAX_ZONE_NAME];
GetPlayer2DZone(playerid, zoned, sizeof(zoned));
if(!strcmp(zoned, "Richman", true)) SCM(playerid,BLANC,"Richman");
Use strcmp to compare two strings.


Respuesta: error 033: array must be indexed (variable "zoned") - Skinnz - 05.08.2016

thank you