Error with my script!
#1

Thanx for helping all!
Reply
#2

You forgot add some bracket ({/}).
Now look good at the script and find the error
Reply
#3

It's working now!
Reply
#4

pawn Код:
public OnHouseReload()
{  if(pdebug == 1){print("[DEBUG] OnHouseReload()");}

  new string[288];
  new arrCoords[28][64];
    new File:file;
    if(city == 1){file = fopen("/settings/houses_LS.cfg", io_read);}
    if(city == 2){file = fopen("/settings/houses_SF.cfg", io_read);}
    if (file)
    {
      new idx;
      while (idx < MAX_HOUSES)
        {
            fread(file, string);
            split(string, arrCoords, ',');
            HouseInfo[idx][hID] = strval(arrCoords[0]);
            HouseInfo[idx][hEntrancex] = floatstr(arrCoords[1]);
            HouseInfo[idx][hEntrancey] = floatstr(arrCoords[2]);
            HouseInfo[idx][hEntrancez] = floatstr(arrCoords[3]);
            HouseInfo[idx][hExitx] = floatstr(arrCoords[4]);
            HouseInfo[idx][hExity] = floatstr(arrCoords[5]);
            HouseInfo[idx][hExitz] = floatstr(arrCoords[6]);
            strmid(HouseInfo[idx][hOwner], arrCoords[7], false, strlen(arrCoords[7]), MAX_PLAYER_NAME+1);
            HouseInfo[idx][hValue] = strval(arrCoords[8]);
            HouseInfo[idx][hInt] = strval(arrCoords[9]);
            HouseInfo[idx][hLock] = strval(arrCoords[10]);
            HouseInfo[idx][hOwned] = strval(arrCoords[11]);
            HouseInfo[idx][hRent] = strval(arrCoords[12]);
            HouseInfo[idx][hRentabil] = strval(arrCoords[13]);
            HouseInfo[idx][hVec] = strval(arrCoords[14]);
            HouseInfo[idx][hVcol1] = strval(arrCoords[15]);
            HouseInfo[idx][hVcol2] = strval(arrCoords[16]);
            HouseInfo[idx][hLevel] = strval(arrCoords[17]);
            HouseInfo[idx][hWorld] = strval(arrCoords[18]);
            HouseInfo[idx][hVecX] = floatstr(arrCoords[19]);
            HouseInfo[idx][hVecY] = floatstr(arrCoords[20]);
            HouseInfo[idx][hVecZ] = floatstr(arrCoords[21]);
            HouseInfo[idx][hVecA] = floatstr(arrCoords[22]);
            HouseInfo[idx][hGarbage] = strval(arrCoords[23]);
            HouseInfo[idx][hNotUsed] = strval(arrCoords[24]);
            strmid(HouseInfo[idx][hDescription], arrCoords[25], false, strlen(arrCoords[25]), 23);
            strmid(HouseInfo[idx][hPlate], arrCoords[26], false, strlen(arrCoords[26]), 9);
            HouseInfo[idx][hTest] = strval(arrCoords[27]);
            idx++;
        }
    }
    fclose(file);
    return 1;
}
You forgot a bracket at last
Reply
#5

It's not working :S i still getting the error. Can u add my messanger i'll send you the script then :S Realy i am hopeless:S

marko@mkb122.com THANX i am take some sleep now 3 days no sleep only searhcing script
Reply
#6

Quote:
Originally Posted by Mkb122
It's not working :S i still getting the error. Can u add my messanger i'll send you the script then :S Realy i am hopeless:S

marko@mkb122.com THANX i am take some sleep now 3 days no sleep only searhcing script
Offtopic: You must sleep, don't you have real life?
Reply
#7

Dont make an off topic about this..... I am not a no lifer(A)
Reply
#8

first, post the whole script here. with this many errors you must have forgot a bracket just like luka said. if you post the whole script (via pastebin) then we can do something. noone will add you on msn.
Reply
#9

Sorry download link deleted!
Reply
#10

Now that youve sent us the script page , now we will also need the includes files that you have included in the script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)