Array Error - 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: Array Error (
/showthread.php?tid=642791)
Array Error -
SytonicX - 07.10.2017
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);
Re: Array Error -
Dayrion - 07.10.2017
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.
Re: Array Error -
SytonicX - 07.10.2017
Fixed the code, Thanks for your help!