SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 07/10/2017, 12:50 PM   #1
SytonicX
Big Clucker
 
Join Date: Dec 2016
Posts: 114
Reputation: 23
Default Array Error

Code:
../gamemodes/Build.pwn(6221) : error 006: must be assigned to an array
../gamemodes/Build.pwn(6223) : warning 217: loose indentation
That is the error I am getting and those are the lines:
Code:
6218:	        new mtlist[9065];
6219:	        for(new i = 0; i < sizeof(MaterialIDs); i++)
6220:	        {
6221:               mtlist[i] = MaterialIDs[i];
6222:	        }
6223:		    	ShowModelSelectionMenuEx(playerid, mtlist, sizeof(MaterialIDs), "Material List", 500, 16.0, 0.0, -55.0);
SytonicX is offline   Reply With Quote
Old 07/10/2017, 12:59 PM   #2
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,915
Reputation: 258
Default Re: Array Error

Can you show declarations of mtlist & MaterialIDs? You are probably missing a dimenson in your code.
warning 217: loose indentation
The indentation of this line is different of the next and previous line.
__________________
actor_plus - v5.0.2
I'm a goner, somebody catch my breath,
I'm a goner, somebody catch my breath
Dayrion is offline   Reply With Quote
Old 07/10/2017, 01:39 PM   #3
SytonicX
Big Clucker
 
Join Date: Dec 2016
Posts: 114
Reputation: 23
Default Re: Array Error

Fixed the code, Thanks for your help!
SytonicX 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
error 021: symbol already defined: "strtok" & error 047: array sizes do not match, or destination array is too small Gorgeousmaniac Scripting Help 5 08/09/2016 01:37 PM
(dFile) error 047: array sizes do not match, or destination array is too small Jack_Leslie Scripting Help 0 06/09/2011 01:20 AM
(dFile) error 047: array sizes do not match, or destination array is too small Jack_Leslie Scripting Help 8 01/09/2011 05:32 AM
[SOLVED]error 047: array sizes do not match, or destination array is too small help! Help Archive 7 18/06/2011 08:09 PM
[Sloved]error 047: array sizes do not match, or destination array is too small CoaPsyFactor Help Archive 1 09/06/2011 08:27 PM


All times are GMT. The time now is 04:33 PM.


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