SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/08/2016, 12:31 AM   #1
Skinnz
Big Clucker
 
Skinnz's Avatar
 
Join Date: Nov 2012
Location: GetPlayerPos(me,x,y,z);
Posts: 75
Reputation: 3
Default error 033: array must be indexed (variable "zoned")

hello, i have a error in compilation

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

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

Tellement d'oseille ça sent la franc maçonnerie.
Skinnz is offline   Reply With Quote
Old 05/08/2016, 01:11 AM   #2
Fantje
Huge Clucker
 
Join Date: Dec 2014
Posts: 393
Reputation: 9
Default Re: error 033: array must be indexed (variable "zoned")

new zoned[MAX_ZONE_NAME], richman = strlen("Richman");
GetPlayer2DZone(playerid, zoned, sizeof(zoned));
if(zoned == richman) SCM(playerid,BLANC,"Richman");
__________________
Fantje is offline   Reply With Quote
Old 05/08/2016, 01:56 AM   #3
Skinnz
Big Clucker
 
Skinnz's Avatar
 
Join Date: Nov 2012
Location: GetPlayerPos(me,x,y,z);
Posts: 75
Reputation: 3
Default Respuesta: error 033: array must be indexed (variable "zoned")

Same problem
__________________

Tellement d'oseille ça sent la franc maçonnerie.
Skinnz is offline   Reply With Quote
Old 05/08/2016, 01:57 AM   #4
SickAttack
High-roller
 
Join Date: Dec 2013
Posts: 4,759
Reputation: 754
Default Re: error 033: array must be indexed (variable "zoned")

pawn Code:
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.
SickAttack is offline   Reply With Quote
Old 05/08/2016, 05:12 AM   #5
Skinnz
Big Clucker
 
Skinnz's Avatar
 
Join Date: Nov 2012
Location: GetPlayerPos(me,x,y,z);
Posts: 75
Reputation: 3
Default Respuesta: error 033: array must be indexed (variable "zoned")

thank you
__________________

Tellement d'oseille ça sent la franc maçonnerie.
Skinnz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent HELP! Error 33 array must be indexed(variable "cmd" and "tmp" Jabien225 Scripting Help 9 11/05/2016 06:05 PM
error 033: array must be indexed (variable "gTeam") sanrock Scripting Help 8 07/06/2012 11:30 PM
[ajuda] error 033: array must be indexed (variable "TaxiMission") adminlucas Português/Portuguese 4 11/11/2011 12:36 AM
error 033: array must be indexed (variable "inputtext") eDz0r Help Archive 1 14/12/2010 01:43 PM


All times are GMT. The time now is 01:03 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.