PDA

View Full Version : error 006: must be assigned to an array


Neooooo
06/07/2015, 04:20 PM
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;
}