SA-MP Forums Archive
Error with my script! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error with my script! (/showthread.php?tid=105742)



Error with my script! - Mkb122 - 30.10.2009

Thanx for helping all!


Re: Error with my script! - Luka P. - 30.10.2009

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


Re: Error with my script! - Mkb122 - 30.10.2009

It's working now!


Re: Error with my script! - Peter_Corneile - 31.10.2009

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


Re: Error with my script! - Mkb122 - 31.10.2009

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


Re: Error with my script! - Luka P. - 31.10.2009

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?


Re: Error with my script! - Mkb122 - 31.10.2009

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


Re: Error with my script! - Clank - 31.10.2009

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.


Re: Error with my script! - Mkb122 - 31.10.2009

Sorry download link deleted!


Re: Error with my script! - Peter_Corneile - 31.10.2009

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