12.12.2010, 17:30
pawn Код:
stock LoadHouses()
{
new housecount = 0;
for(new i = 0; i < MAX_HOUSES; i++)
{
new file[128];
format(file, sizeof(file), "HouseSystem/Houses/%d.ini", i);
if(dini_Exists(file))
{
PickupID[i] = CreatePickup(1273, 23, dini_Float(file, "HX"), dini_Float(file, "HY"), dini_Float(file, "HZ"), -1);
HInfo[i][owned] = dini_Int(file, "Owned");
HInfo[i][price] = dini_Int(file, "Price");
HInfo[i][ownername] = dini_Get(file, "Ownername");
housecount ++;
}
}
printf("\n||-Houses loaded successfuly: %d-||\n",housecount);
return 1;
}
pawn Код:
HInfo[i][ownername] = dini_Get(file, "Ownername");
Код:
C:\Users\User\Desktop\servers2\FC-RP\filterscripts\housesystem.pwn(114) : error 006: must be assigned to an array Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.