Business Help
#1

Hello can anyone help me with this?
It loads only 2 business the rest wont load :/

PHP код:
public LoadBizz()
{
    new 
arrCoords[19][64];
    new 
strFromFile2[256];
    new 
Filefile fopen("bizz.cfg"io_read);
    if(
file)
    {
        new 
idx;
        while (
idx sizeof(BizzInfo))
        {
            
fread(filestrFromFile2);
            
split(strFromFile2arrCoords'|');
            
BizzInfo[idx][bOwned] = strvalEx(arrCoords[0]);
            
strmid(BizzInfo[idx][bOwner], arrCoords[1], 0strlen(arrCoords[1]), 255);
            
strmid(BizzInfo[idx][bMessage], arrCoords[2], 0strlen(arrCoords[2]), 255);
            
strmid(BizzInfo[idx][bExtortion], arrCoords[3], 0strlen(arrCoords[3]), 255);
            
BizzInfo[idx][bEntranceX] = floatstr(arrCoords[4]);
            
BizzInfo[idx][bEntranceY] = floatstr(arrCoords[5]);
            
BizzInfo[idx][bEntranceZ] = floatstr(arrCoords[6]);
            
BizzInfo[idx][bExitX] = floatstr(arrCoords[7]);
            
BizzInfo[idx][bExitY] = floatstr(arrCoords[8]);
            
BizzInfo[idx][bExitZ] = floatstr(arrCoords[9]);
            
BizzInfo[idx][bLevelNeeded] = strvalEx(arrCoords[10]);
            
BizzInfo[idx][bBuyPrice] = strvalEx(arrCoords[11]);
            
BizzInfo[idx][bEntranceCost] = strvalEx(arrCoords[12]);
            
BizzInfo[idx][bTill] = strvalEx(arrCoords[13]);
            
BizzInfo[idx][bLocked] = strvalEx(arrCoords[14]);
            
BizzInfo[idx][bInterior] = strvalEx(arrCoords[15]);
            
BizzInfo[idx][bProducts] = strvalEx(arrCoords[16]);
            
BizzInfo[idx][bMaxProducts] = strvalEx(arrCoords[17]);
            
BizzInfo[idx][bPriceProd] = strvalEx(arrCoords[18]);
            
printf("BizzInfo:%d Owner:%s Message:%s Entfee:%d Till:%d Products:%d/%d Interior:%d.",
            
idx,
            
BizzInfo[idx][bOwner],
            
BizzInfo[idx][bMessage],
            
BizzInfo[idx][bEntranceCost],
            
BizzInfo[idx][bTill],
            
BizzInfo[idx][bProducts],
            
BizzInfo[idx][bMaxProducts],
            
BizzInfo[idx][bInterior]);
            
idx++;
        }
        
fclose(file);
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)