Neka mi neko kaze dje grijesim

Započeo [CS]Jan, Jul 20, 2009, 19:57:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

#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

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.


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

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 od Don Correlli