SA-MP Forums Archive
[DUV]Meu FS compila 100% Mas nгo aparece os objetos no server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [DUV]Meu FS compila 100% Mas nгo aparece os objetos no server (/showthread.php?tid=125563)



[DUV]Meu FS compila 100% Mas nгo aparece os objetos no server - [NNFc]MinDs - 04.02.2010

Gostaria de saber o que estб acontecendo, grato : minds

Segue aqui o script


Код:
#include <a_samp>

#if defined FILTERSCRIPT


public OnFilterScriptInit()
{
  print("\n--------------------------------------");
  print(" MinDs Script =]");
  print("--------------------------------------\n");
return 1;
}

new Sala;

Sala = CreateObject(2634,233.456,1822.771,7.908,0.0,0.0,-90.000);

new base10;

base10 = CreateObject(980,318.535,1924.677,19.414,0.0,0.0,0.0);

new base20;

base20 = CreateObject(980,347.662,1777.271,19.371,0.0,0.0,-180.000);

new base30;

base30 = CreateObject(5005,73.147, 1848.606, 20.199,0.0,0.0,-271.719);

new base40;

base40 = CreateObject(986,70.791,1741.045,18.351,0.0,0.0,-90.000);

new base50;

base50 = CreateObject(971,96.703,1923.313,20.713,0.0,0.0,-270.000);

new base60;

base60 = CreateObject(8948,214.652,1875.482,13.918,0.0,0.0,90.000);

new base70;

base70 = CreateObject(980,283.132,1865.689,10.531,0.0,0.0,-90.000);

new base80;

base80 = CreateObject(980,264.243,1863.924,10.570,0.0,0.0,-180.000);

new base90;

base90 = CreateObject(980,272.913,1875.220,10.383,0.0,0.0,0.0);





AddStaticVehicle(548,222.138,1859.780,12.807,0.0,-1,-1);
AddStaticVehicle(447,217.338,1859.755,12.807,0.0,-1,-1);
AddStaticVehicle(447,213.338,1859.755,12.807,0.0,-1,-1);
AddStaticVehicle(487,205.684,1860.826,12.801,0.0,-1,-1);
AddStaticVehicle(411,226.752,1881.897,17.301,0.0,-1,-1);
AddStaticVehicle(411,202.502,1881.872,17.301,0.0,-1,-1);
AddStaticVehicle(411,343.000,1925.547,17.301,0.0,-1,-1);
AddStaticVehicle(411,340.638,1913.725,17.301,0.0,-1,-1);
AddStaticVehicle(507,359.579,1916.880,17.301,0.0,-1,-1);
AddStaticVehicle(411,362.915,1934.977,17.301,89.0,-1,-1);
AddStaticVehicle(411,361.825,1889.298,17.307,89.0,-1,-1);
AddStaticVehicle(411,339.680,1867.587,17.415,89.0,-1,-1);
AddStaticVehicle(411,308.078,1978.374,17.301,178.0,-1,-1);
AddStaticVehicle(603,326.958,1978.815,17.301,178.0,-1,-1);
AddStaticVehicle(603,330.449,1966.122,17.301,178.0,-1,-1);
AddStaticVehicle(507,309.069,1960.806,17.301,178.0,-1,-1);
AddStaticVehicle(470,318.133,1970.772,17.301,178.0,-1,-1);
AddStaticVehicle(507,315.304,1981.084,17.301,178.0,-1,-1);
AddStaticVehicle(470,321.021,1983.637,17.301,178.0,-1,-1);
AddStaticVehicle(432,303.113,1970.415,17.301,178.0,-1,-1);
AddStaticVehicle(432,333.259,1956.105,17.301,178.0,-1,-1);
CreateObject(1886,96.394,1923.820,22.669,23.205,0.0,-47.656);
CreateObject(978,268.744,1888.756,17.481,0.0,0.0,0.0);
CreateObject(978,268.381,1879.483,17.488,0.0,0.0,-180.000);
CreateObject(978,263.657,1884.285,17.488,0.0,0.0,-268.522);
CreateObject(978,273.632,1884.285,17.488,0.0,0.0,-452.441);
CreateObject(3491,319.671,1966.976,25.186,0.0,0.0,0.0);
CreateObject(3475,207.838,1875.304,12.773,0.0,0.0,-90.000);
CreateObject(3745,288.860,1952.166,33.785,0.0,0.0,0.0);
CreateObject(3749,318.564,1924.417,22.499,0.0,0.0,0.0);
CreateObject(3475,330.191,1927.746,19.017,0.0,0.0,-45.000);
CreateObject(3475,332.458,1935.816,19.017,0.0,0.0,0.0);
CreateObject(3475,307.583,1928.956,19.017,0.0,0.0,33.750);
CreateObject(3475,305.946,1934.227,18.999,0.0,0.0,0.0);
CreateObject(3475,305.896,1937.230,18.999,0.0,0.0,0.0);
CreateObject(980,318.535,1924.677,19.414,0.0,0.0,0.0);
CreateObject(5268,307.811,2046.165,17.273,0.0,0.0,-45.000);
CreateObject(3279,349.781,1961.799,27.956,0.0,0.0,-270.000);
CreateObject(3267,325.373,1922.842,22.500,-68.755,0.0,-217.970);
CreateObject(3528,318.350,1920.166,25.845,0.0,0.0,-90.000);
CreateObject(16779,320.229,1963.508,33.153,0.0,0.0,0.0);
CreateObject(3475,332.483,1932.840,19.017,0.0,0.0,0.0);
CreateObject(1886,314.051,1921.917,22.311,16.329,0.0,25.783);
CreateObject(3749,347.574,1777.776,22.474,0.0,0.0,0.0);
CreateObject(987,356.663,1791.804,16.922,0.0,0.0,-90.000);
CreateObject(987,356.663,1803.679,16.922,0.0,0.0,-90.000);
CreateObject(987,338.642,1781.572,16.278,0.0,0.0,88.358);
CreateObject(3475,356.907,1803.389,19.790,0.0,0.0,0.0);
CreateObject(987,338.642,1778.670,16.278,0.0,0.0,88.358);
CreateObject(8209,375.952,1852.540,19.850,0.0,0.0,67.500);
CreateObject(8209,395.190,1947.841,19.742,0.0,0.0,-90.000);
CreateObject(8209,395.190,2043.591,19.742,0.0,0.0,-90.000);
CreateObject(8209,345.182,2093.741,19.749,0.0,0.0,0.0);
CreateObject(8209,245.932,2093.689,19.749,0.0,0.0,0.0);
CreateObject(8209,245.932,2093.689,26.924,0.0,0.0,0.0);
CreateObject(8209,149.282,2093.689,26.924,0.0,0.0,0.0);
CreateObject(8209,149.282,2093.689,20.099,0.0,0.0,0.0);
CreateObject(8209,90.116,2045.050,20.080,0.0,0.0,78.750);
CreateObject(8209,80.375,1976.648,19.742,0.0,0.0,84.843);
CreateObject(8209,75.300,1861.421,19.742,0.0,0.0,90.000);
CreateObject(8209,121.370,1794.255,19.742,0.0,0.0,159.373);
CreateObject(8209,216.596,1778.564,19.742,0.0,0.0,181.873);
CreateObject(8209,288.396,1779.889,19.742,0.0,0.0,177.576);
CreateObject(17068,273.976,1931.501,17.284,30.940,0.0,0.0);
CreateObject(621,178.217,2072.424,21.544,0.0,0.0,0.0);
CreateObject(621,214.929,2009.859,16.544,0.0,0.0,0.0);
CreateObject(621,225.741,1986.420,16.544,0.0,0.0,0.0);
CreateObject(621,204.924,1962.173,16.544,0.0,0.0,0.0);
CreateObject(621,245.772,1986.549,16.544,0.0,0.0,0.0);
CreateObject(621,234.325,2029.195,16.551,0.0,0.0,0.0);
CreateObject(621,261.494,2055.242,16.544,0.0,0.0,0.0);
CreateObject(621,285.943,2075.848,16.544,0.0,0.0,0.0);
CreateObject(621,323.301,2044.582,16.544,0.0,0.0,0.0);
CreateObject(3426,218.897,1973.863,17.046,0.0,0.0,0.0);
CreateObject(3525,310.273,1922.167,19.998,0.0,0.0,0.0);
CreateObject(3525,326.798,1922.167,19.998,0.0,0.0,0.0);
CreateObject(3277,314.917,1964.558,33.977,0.0,0.0,0.0);
CreateObject(3267,314.940,1964.474,34.037,0.0,0.0,-180.154);
CreateObject(16779,219.637,1821.848,12.672,0.0,0.0,0.0);
CreateObject(2634,233.589,1822.736,10.258,-1.719,0.0,-90.000);
CreateObject(9093,233.567,1818.073,8.120,0.0,0.0,-180.000);
CreateObject(9093,233.567,1827.423,8.120,0.0,0.0,-180.000);
CreateObject(747,245.891,1862.116,20.298,0.0,0.0,0.0);
CreateObject(758,247.040,1863.240,18.372,0.0,0.0,-55.863);
CreateObject(1886,282.862,1871.283,10.683,18.908,0.0,35.237);
CreateObject(3885,268.662,1884.627,-30.958,0.0,0.0,-14.610);
CreateObject(5130,279.618,1873.739,19.637,0.0,0.0,135.000);
CreateObject(5130,291.568,1873.739,19.637,0.0,0.0,-45.482);
CreateObject(3277,100.470,2239.139,124.872,0.0,0.0,0.0);
CreateObject(3277,-263.067,2172.383,111.449,-0.859,12.032,0.0);
CreateObject(3267,-262.951,2172.460,111.245,-6.875,6.875,-781.536);
CreateObject(3267,99.970,2239.215,124.572,-6.875,6.875,-781.536);
CreateObject(3528,-345.855,1628.888,132.660,0.0,0.0,101.250);
CreateObject(8210,-336.672,1508.423,77.664,0.0,0.0,0.0);
CreateObject(8210,-391.821,1508.398,77.664,0.0,0.0,0.0);
CreateObject(8210,-391.821,1508.398,71.089,0.0,0.0,0.0);
CreateObject(8210,-399.121,1508.398,68.089,0.0,0.0,0.0);
CreateObject(8210,-399.121,1508.398,77.589,0.0,0.0,0.0);
CreateObject(8210,-399.121,1508.398,72.839,0.0,0.0,0.0);
CreateObject(8210,-267.659,1509.046,77.664,0.0,0.0,0.0);
CreateObject(8210,-212.359,1509.046,77.664,0.0,0.0,0.0);
CreateObject(8210,-212.359,1509.046,69.964,0.0,0.0,0.0);
CreateObject(8210,-199.884,1509.046,69.964,0.0,0.0,0.0);
CreateObject(8210,-199.884,1509.046,77.688,0.0,0.0,0.0);
CreateObject(3749,-302.499,1506.963,80.231,0.0,0.0,0.0);
CreateObject(980,-302.488,1507.547,77.201,0.0,0.0,180.000);
CreateObject(5005,150.176,1759.004,20.192,0.0,0.0,-164.453);
CreateObject(3816,129.649,1980.268,27.064,0.0,0.0,180.000);
CreateObject(1634,372.411,1900.955,17.938,0.0,0.0,-90.000);
CreateObject(2047,320.218,1994.479,25.408,0.0,0.0,0.0);
CreateObject(3399,175.003,1947.987,22.841,0.0,0.0,-90.000);
CreateObject(3399,175.028,1955.112,19.666,0.0,0.0,-90.000);
CreateObject(3399,174.769,1936.207,22.868,0.0,0.0,-270.000);
CreateObject(3399,174.744,1928.280,19.268,0.0,0.0,-270.000);
CreateObject(747,243.524,1865.268,20.024,0.0,0.0,0.0);
CreateObject(758,244.625,1864.224,19.049,0.0,0.0,-55.863);
CreateObject(693,236.084,2001.184,22.512,0.0,0.0,0.0);
CreateObject(693,236.084,2001.184,58.337,0.0,0.0,0.0);
CreateObject(972,73.785,1759.133,16.638,0.0,0.0,-180.000);
CreateObject(972,73.835,1759.133,23.912,0.0,0.0,-180.000);
CreateObject(972,73.835,1751.383,23.912,0.0,0.0,-180.000);
CreateObject(972,84.898,1736.975,23.712,0.0,0.0,-254.375);
CreateObject(972,79.049,1917.469,25.341,0.0,0.859,-542.578);
CreateObject(5005,150.176,1759.004,26.042,0.0,0.0,-164.453);
CreateObject(1634,381.622,1918.978,17.938,0.0,0.0,191.250);

return 1;
}

public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/salao", true)==0) {
MoveObject(Sala,233.456,1822.771,10.258,3.0);
if(IsPlayerAdmin(playerid))
{

return 1;
}
if(strcmp(cmdtext,"/salac", true)==0) {
MoveObject(Sala,233.456,1822.771,7.908,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}

return 0;
}

// __________________________________________
public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/open10", true)==0) {
MoveObject(base10,329.084,1924.677,19.414,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}
if(strcmp(cmdtext,"/close10", true)==0) {
MoveObject(base10,318.535,1924.677,19.414,3.0);
if(IsPlayerAdmin(playerid))
{
return 1
}
return 0;
}

// __________________________________________
public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/open20", true)==0) {
MoveObject(base20,336.923,1777.271,19.371,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}
if(strcmp(cmdtext,"/close20", true)==0) {
MoveObject(base20,347.662,1777.271,19.371,3.0);
if(IsPlayerAdmin(playerid))
{
return 1
}
return 0;
}

// __________________________________________
public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/open30", true)==0) {
MoveObject(base30,73.147, 1827.755, 20.199,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}
if(strcmp(cmdtext,"/close30", true)==0) {
MoveObject(base30,73.147, 1848.606, 20.199,3.0);
if(IsPlayerAdmin(playerid))
{
return 1
}
return 0;
}

// __________________________________________
public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/open40", true)==0) {
MoveObject(base40,70.791,1748.021,18.351,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}
if(strcmp(cmdtext,"/close40", true)==0) {
MoveObject(base40,70.791,1741.045,18.351,3.0);
if(IsPlayerAdmin(playerid))
{
return 1
}
return 0;
}

// __________________________________________
public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/open50", true)==0) {
MoveObject(base50,96.703,1926.388,20.713,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}
if(strcmp(cmdtext,"/close50", true)==0) {
MoveObject(base50,96.703,1923.313,20.713,3.0);
if(IsPlayerAdmin(playerid))
{
return 1
}
return 0;
}

// __________________________________________
public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/open60", true)==0) {
MoveObject(base60,221.252,1875.482,13.918,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}
if(strcmp(cmdtext,"/close60", true)==0) {
MoveObject(base60,214.652,1875.482,13.918,3.0);
if(IsPlayerAdmin(playerid))
{
return 1
}
return 0;
}

// __________________________________________
public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/open70", true)==0) {
MoveObject(base70,283.132,1861.714,10.531,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}
if(strcmp(cmdtext,"/close70", true)==0) {
MoveObject(base70,283.132,1865.689,10.531,3.0);
if(IsPlayerAdmin(playerid))
{
return 1
}
return 0;
}

// __________________________________________
public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/open80", true)==0) {
MoveObject(base80,261.668,1863.924,10.570,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}
if(strcmp(cmdtext,"/close80", true)==0) {
MoveObject(base80,264.243,1863.924,10.570,3.0);
if(IsPlayerAdmin(playerid))
{
return 1
}
return 0;
}

// __________________________________________
public OnPlayerCommandText(playerid,cmdtext[])
{

if (strcmp(cmdtext,"/open90", true)==0) {
MoveObject(base90,275.837,1875.220,10.383,3.0);
if(IsPlayerAdmin(playerid))
{
return 1;
}
if(strcmp(cmdtext,"/close90", true)==0) {
MoveObject(base90,272.913,1875.220,10.383,3.0);
if(IsPlayerAdmin(playerid))
{
return 1
}
return 0;
}

public OnFilterScriptExit()
{
return 1;
}

#endif

// __________________________________________
//FS FEITO POR [NNF]MinDs!!!



Re: [DUV]Meu FS compila 100% Mas nгo aparece os objetos no server - Josma_cmd - 04.02.2010

disculpa nao tenho certeza mais acho q c ta fazendo algum erro ae nas chaves tenta mais ou menos assim.

Код:
new portao;
Код:
public OnGameModeInit()
{
//=================================[Portoes]====================================
portao = CreateObject(980,-302.225,1507.517,71.607,0.0,0.0,0.0);//fechado
}
Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
//=============================================================================
	if (strcmp(cmdtext, "/sala", true)==0)
    {
    if(IsPlayerAdmin(playerid))
    {
	MoveObject(nomeobjeto, x, y, z, 2.0);
    GameTextForPlayer(playerid, "~g~Portao Aberto",2500,1);
    }
	else SendClientMessage(playerid,COLOR_RED,"Voce nao e um administrador");
    return 1;
    }
ae depois e so vc fazer os mesmo processos pra fechar ou abrir outros portoes e se quiser faz um settimer pra fechar dps c 5 segundosautomatico


Re: [DUV]Meu FS compila 100% Mas nгo aparece os objetos no server - [NNFc]MinDs - 04.02.2010

Infelizmente n deu mas vlw.
e tb eh um FilterScript, nao um gamemode


Re: [DUV]Meu FS compila 100% Mas nгo aparece os objetos no server - [VGS]Protioso - 04.02.2010

Meu santo cara, isso aн tб tudo errado e desorganizado!

Tipo, sу pode ter 1 (UUUUM) public OnPlayerCommandText... E as funзхes pra criar objetos e veнculos devem estar dentro de alguma funзгo e nгo espalhadas no script. De preferкncia dentro do OnFilterScriptInit.

Eu arrumei pra ti, mas tu tem que mudar a coordenada dos comandos de abrir e fechar, lб no MoveObject, as coordenadas estгo iguais para fechar e abrir, ou seja, nгo vai sair do lugar!

Mas dб nada velho, comeзo й assim mesmo uhaeuhea ;~

Tб aн: http://pastebin.com/m5435fc36

Boa sorte, abraзo.


Re: [DUV]Meu FS compila 100% Mas nгo aparece os objetos no server - Ghost_Boss - 04.02.2010

Estou com o mesmo problema, estou usando o FS do "Ryder" porйm compila e os objetos nгo aparecem no servidor :/! e segui todos os procedimentos direitinho


Re: [DUV]Meu FS compila 100% Mas nгo aparece os objetos no server - [NNFc]MinDs - 04.02.2010

Vlw [VGS] eu te conheзo do sa-mp uahuhaeushauehasu