SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 13/10/2009, 01:36 PM   #1
borisblat
Big Clucker
 
Join Date: Apr 2009
Posts: 155
Reputation: 0
Default [Help]error 033: array must be indexed (variable "teleport")

new teleport[256];
teleport = strval(tmp2);
rror 033: array must be indexed (variable "teleport")
borisblat is offline  
Old 13/10/2009, 02:51 PM   #2
dice7
High-roller
 
Join Date: Apr 2009
Location: Slovenia
Posts: 2,200
Reputation: 22
Default Re: [Help]error 033: array must be indexed (variable "teleport")

You can't place one integer (that's what strval returns) into 256 cells if that's what you want. Use a loop or index your array to the cell you want the number to go to
dice7 is offline  
 

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
Help Checkpoint & error 033: array must be indexed (variable "tmp") KyleOwnzYou Help Archive 2 08/05/2010 04:10 AM
error 033: array must be indexed (variable "Address") Kyle Help Archive 1 15/02/2010 11:59 PM
error 033: array must be indexed (variable "cheaterr") Dj_maryo1993 Help Archive 2 29/07/2009 11:38 AM
error 033: array must be indexed (variable "dini_Get") introzen Help Archive 3 09/03/2009 06:55 AM


All times are GMT. The time now is 01:10 PM.


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