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

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 ?
Reply
#2

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

Same problem
Reply
#4

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.
Reply
#5

thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)