SA-MP Forums Archive
error 006: must be assigned to an array - 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: error 006: must be assigned to an array (/showthread.php?tid=580583)



error 006: must be assigned to an array - Neooooo - 06.07.2015

E:\Scripting\gamemodes\mygm.pwn(3100) : error 006: must be assigned to an array
E:\Scripting\gamemodes\mygm.pwn(3101) : error 006: must be assigned to an array
E:\Scripting\gamemodes\mygm.pwn(3102) : error 006: must be assigned to an array
E:\Scripting\gamemodes\mygm.pwn(3103) : error 006: must be assigned to an array


And the code :

public LoadFactionInfo()
{
new File[300];
format(File,sizeof(File),"/Factions/factions.ini");
FactionInfo[Corleone][fMoney] = dini_Get(File,"Money");
FactionInfo[Corleone][fDrugs] = dini_Get(File,"Drugs");
FactionInfo[Corleone][fMembers] = dini_Get(File,"Members");
FactionInfo[Corleone][fChar] = dini_Get(File,"Skin");
return 1;
}