Code
stock LoadBiz()
{
new name[400];
for(new id = 0; id < BIZNES+1; id++)
{
format(name, sizeof(name), "bussines/%d.ini",id);
new File:File = fopen(filename, io_read);
if (File)
{
new GK[256] , GV[256], Data[128];
while ( fread( File , Data , sizeof( Data ) ) )
{
GK = ini_GetKey( Data );
GV = ini_GetValue( Data );
if(!strcmp(key,"Owned",true)) BizInfo[id][bOwned] = strval(val);
else if(!strcmp(key,"Owner",true)) strmid(BizInfo[id][bOwner],val,0,strlen(val)-1,32);
}
fclose(File);
}
}
return 1;
}
так попробуй