PARTNERI:
-UPOZORENJE-

Samo registrovani članovi mogu da vide/koriste forum u celini.
Prijavite se ili registrujte nalog na Balkan SA-MP forumu.


Autor Tema: Neka mi neko kaze dje grijesim  (Pročitano 987 puta)

0 članova i 1 gost pregledaju ovu temu.

Van mreže [CS]Jan

  • Pee-Wee
  • *
  • Poruke: 48
  • Pol: Muškarac
    • CroSlavonija
Neka mi neko kaze dje grijesim
« poslato: Jul 20, 2009, 19:57:53 posle podne »
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptExit()
{
return 1;
}

#else
#endif

public OnFilterScriptInit()
{
CreateObject(978,2399.331,81.485,26.325,0.0,0.0,0.0);
CreateObject(978,2390.716,81.104,26.176,0.0,0.0,0.0);
CreateObject(978,2348.385,101.664,26.175,0.0,0.0,-180.000);
CreateObject(978,2339.004,101.662,26.175,0.0,0.0,-180.000);
CreateObject(978,2333.902,96.327,26.172,0.0,0.0,-90.000);
CreateObject(978,2333.902,86.938,26.172,0.0,0.0,-90.000);
CreateObject(978,2350.436,-22.277,26.172,0.0,0.0,45.000);
CreateObject(978,2344.012,-28.776,26.176,0.0,0.0,45.000);
CreateObject(978,2337.513,-35.327,26.176,0.0,0.0,45.000);
CreateObject(978,2300.026,-37.780,26.325,0.0,0.0,0.0);
CreateObject(978,2290.897,-37.857,26.176,0.0,0.0,0.0);
CreateObject(978,2281.439,-37.770,26.325,0.0,0.0,0.0);
CreateObject(978,2299.107,-18.142,26.164,0.0,0.0,-180.000);
CreateObject(978,2289.734,-18.126,26.174,0.0,0.0,-180.000);
CreateObject(978,2230.693,-36.627,26.325,0.0,0.0,-11.250);
CreateObject(978,2223.283,-34.582,26.184,0.0,0.0,-22.500);
CreateObject(978,2215.774,-29.513,26.325,0.0,0.0,-45.000);
CreateObject(978,2163.258,-62.241,6.906,0.0,0.0,78.750);
CreateObject(978,2159.853,-70.503,5.835,0.0,-17.189,56.250);
CreateObject(978,2138.123,-84.248,2.736,0.0,0.0,22.500);
CreateObject(978,2145.489,-81.134,2.677,0.0,0.0,22.500);
CreateObject(978,2153.622,-76.760,3.644,0.0,-12.032,33.750);
CreateObject(978,2130.925,-88.779,2.143,0.0,0.0,33.750);
CreateObject(1634,2105.600,-102.089,2.373,0.0,0.0,123.750);
CreateObject(978,2382.036,80.834,26.617,0.0,10.313,-4.297);


    return 1;
}

ima jedan warning ako mi neko moze reci kako da ga rijesim
 

Correlli

  • Gost
Odg: Neka mi neko kaze dje grijesim
« Odgovor #1 poslato: Jul 20, 2009, 20:04:00 posle podne »
Jedini warning koji možeš dobit tu je "warning 217: loose indentation" - uredi kodu.

A što se tiće #else i #endif, ne koristiš pravilno, a i netreba ti to tu.
 

Van mreže [CS]Jan

  • Pee-Wee
  • *
  • Poruke: 48
  • Pol: Muškarac
    • CroSlavonija
Odg: Neka mi neko kaze dje grijesim
« Odgovor #2 poslato: Jul 21, 2009, 11:06:34 pre podne »
znaci ako izbrisem to 2 radit ce?
 

Van mreže [CS]Jan

  • Pee-Wee
  • *
  • Poruke: 48
  • Pol: Muškarac
    • CroSlavonija
Odg: Neka mi neko kaze dje grijesim
« Odgovor #3 poslato: Jul 21, 2009, 11:09:31 pre podne »
sry zbog spamma ali kad to obrisem imam 1error pise mi ovaj da stavim #endif a kad stavim imam 1warning moze li mi neko napisati sve kako treba?
 

Correlli

  • Gost
Odg: Neka mi neko kaze dje grijesim
« Odgovor #4 poslato: Jul 21, 2009, 11:12:12 pre podne »
Ovo je sve Å¡to ti treba:

#include <a_samp>

public OnFilterScriptInit()
{
    CreateObject(978,2399.331,81.485,26.325,0.0,0.0,0.0);
    CreateObject(978,2390.716,81.104,26.176,0.0,0.0,0.0);
    CreateObject(978,2348.385,101.664,26.175,0.0,0.0,-180.000);
    CreateObject(978,2339.004,101.662,26.175,0.0,0.0,-180.000);
    CreateObject(978,2333.902,96.327,26.172,0.0,0.0,-90.000);
    CreateObject(978,2333.902,86.938,26.172,0.0,0.0,-90.000);
    CreateObject(978,2350.436,-22.277,26.172,0.0,0.0,45.000);
    CreateObject(978,2344.012,-28.776,26.176,0.0,0.0,45.000);
    CreateObject(978,2337.513,-35.327,26.176,0.0,0.0,45.000);
    CreateObject(978,2300.026,-37.780,26.325,0.0,0.0,0.0);
    CreateObject(978,2290.897,-37.857,26.176,0.0,0.0,0.0);
    CreateObject(978,2281.439,-37.770,26.325,0.0,0.0,0.0);
    CreateObject(978,2299.107,-18.142,26.164,0.0,0.0,-180.000);
    CreateObject(978,2289.734,-18.126,26.174,0.0,0.0,-180.000);
    CreateObject(978,2230.693,-36.627,26.325,0.0,0.0,-11.250);
    CreateObject(978,2223.283,-34.582,26.184,0.0,0.0,-22.500);
    CreateObject(978,2215.774,-29.513,26.325,0.0,0.0,-45.000);
    CreateObject(978,2163.258,-62.241,6.906,0.0,0.0,78.750);
    CreateObject(978,2159.853,-70.503,5.835,0.0,-17.189,56.250);
    CreateObject(978,2138.123,-84.248,2.736,0.0,0.0,22.500);
    CreateObject(978,2145.489,-81.134,2.677,0.0,0.0,22.500);
    CreateObject(978,2153.622,-76.760,3.644,0.0,-12.032,33.750);
    CreateObject(978,2130.925,-88.779,2.143,0.0,0.0,33.750);
    CreateObject(1634,2105.600,-102.089,2.373,0.0,0.0,123.750);
    CreateObject(978,2382.036,80.834,26.617,0.0,10.313,-4.297);
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
« Poslednja izmena: Jul 21, 2009, 11:12:55 pre podne Don Correlli »
 

Van mreže [CS]Jan

  • Pee-Wee
  • *
  • Poruke: 48
  • Pol: Muškarac
    • CroSlavonija
Odg: Neka mi neko kaze dje grijesim
« Odgovor #5 poslato: Jul 21, 2009, 11:53:41 pre podne »
Puno hvala na brzom odgovoru