[Pomoc] Pomicne kapije

Započeo Sabbath, Januar 15, 2011, 13:07:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Radio sam po tutorijalu jer pravim svoj filterscripts Moto event. Teleport radi ali kad kucam /otvori pise da se otvara ali nista se ne desava a nema errora u pawnu imaju warding
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT
#define COLOR_RED 0xFF0000FF
#define COLOR_BLUE 0x2641FEAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA

new zatvoreno;
new dole;


public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("        Moto Event by miki              ");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else
#endif

public OnGameModeInit()
{
    AddStaticVehicleEx(522,-1088.56298828,428.39721680,13.80881500,0.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,-1087.95581055,427.88781738,13.80881500,0.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,-1087.32104492,427.34045410,13.80881500,0.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,-1086.75659180,426.73913574,13.80881500,0.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,-1086.08984375,426.14938354,13.80881500,0.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,-1085.44689941,425.68106079,13.80881500,0.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,-1084.91076660,425.04501343,13.80881500,0.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,-1084.32104492,424.57913208,13.80881500,0.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(468,-1069.60852051,410.33834839,13.90843773,0.00000000,-1,-1,15); //Sanchez
AddStaticVehicleEx(468,-1069.15930176,409.93124390,13.90843773,0.00000000,-1,-1,15); //Sanchez
AddStaticVehicleEx(468,-1068.67041016,409.49154663,13.90843773,0.00000000,-1,-1,15); //Sanchez
AddStaticVehicleEx(468,-1067.68786621,408.49606323,13.90843773,0.00000000,-1,-1,15); //Sanchez
AddStaticVehicleEx(468,-1068.19921875,409.02929688,13.90843773,0.00000000,-1,-1,15); //Sanchez
AddStaticVehicleEx(468,-1066.85693359,407.70104980,13.90843773,0.00000000,-1,-1,15); //Sanchez
AddStaticVehicleEx(468,-1067.24475098,408.13171387,13.90843773,0.00000000,-1,-1,15); //Sanchez
AddStaticVehicleEx(468,-1066.47106934,407.27246094,13.90843773,0.00000000,-1,-1,15); //Sanchez
CreateObject(982,-1071.25439453,413.25756836,13.83199215,0.00000000,0.00000000,46.00000000); //object(fenceshit) (1)
CreateObject(982,-1079.26354980,421.02310181,13.83199215,0.00000000,0.00000000,45.99975586); //object(fenceshit) (2)
CreateObject(982,-1097.45617676,420.60015869,13.83199215,0.00000000,0.00000000,135.99975586); //object(fenceshit) (3)
CreateObject(982,-1070.99426270,395.14370728,13.85712242,0.00000000,0.00000000,135.99426270); //object(fenceshit) (4)
CreateObject(982,-1111.56933594,399.82833862,13.83199215,0.00000000,0.00000000,155.99426270); //object(fenceshit) (5)
CreateObject(982,-1091.40234375,380.29394531,13.83199215,0.00000000,0.00000000,115.99429321); //object(fenceshit) (6)
CreateObject(16089,-1110.37792969,381.27636719,13.14843750,0.00000000,0.00000000,43.99572754); //object(des_pipestrut02) (1)
zatvoreno = CreateObject(980,-1110.57910156,381.24224854,15.92182922,0.00000000,0.00000000,314.00000000); //object(airportgate) (1)
CreateObject(982,-1126.37451172,379.61703491,13.93355465,0.00000000,0.00000000,312.00000000); //object(fenceshit) (7)
CreateObject(982,-1112.07397461,365.71746826,13.93355465,0.00000000,0.00000000,313.99523926); //object(fenceshit) (8)
CreateObject(982,-1145.40917969,362.52282715,13.93355465,0.00000000,0.00000000,311.99523926); //object(fenceshit) (9)
CreateObject(982,-1130.18701172,347.67742920,13.93355465,0.00000000,0.00000000,315.99523926); //object(fenceshit) (10)
CreateObject(983,-1139.19567871,335.23757935,13.93355465,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (8)
CreateObject(983,-1158.05395508,353.38571167,13.93355465,0.00000000,0.00000000,280.00000000); //object(fenceshit3) (9)
CreateObject(8150,-1206.28698730,308.99185181,16.24946594,0.00000000,0.00000000,44.00000000); //object(vgsselecfence04) (1)
CreateObject(8150,-1184.48266602,288.17684937,16.24946594,0.00000000,0.00000000,43.99475098); //object(vgsselecfence04) (2)
CreateObject(987,-1262.53637695,232.97250366,13.14843559,0.00000000,0.00000000,70.00000000); //object(elecfence_bar) (1)
CreateObject(987,-1234.39843750,233.09555054,13.14843750,0.00000000,0.00000000,71.99938965); //object(elecfence_bar) (2)
CreateObject(987,-1258.40625000,244.13183594,13.14088821,0.00000000,0.00000000,69.99938965); //object(elecfence_bar) (3)
CreateObject(987,-1266.52099609,221.89620972,13.14088821,0.00000000,0.00000000,69.99938965); //object(elecfence_bar) (4)
CreateObject(987,-1272.75073242,211.65040588,13.14843750,0.00000000,0.00000000,57.99938965); //object(elecfence_bar) (5)
CreateObject(987,-1278.36730957,201.06729126,13.14088821,0.00000000,0.00000000,61.99938965); //object(elecfence_bar) (6)
CreateObject(987,-1276.23706055,189.24929810,13.14843750,0.00000000,0.00000000,99.99584961); //object(elecfence_bar) (7)
CreateObject(987,-1254.19433594,255.43359375,13.14843750,0.00000000,0.00000000,69.99938965); //object(elecfence_bar) (8)
CreateObject(987,-1235.74780273,221.45208740,13.14843750,0.00000000,0.00000000,83.99487305); //object(elecfence_bar) (9)
CreateObject(8150,-1297.13537598,143.12161255,16.64790344,0.00000000,0.00000000,67.99475098); //object(vgsselecfence04) (4)
CreateObject(8150,-1253.30273438,162.10742188,16.24946594,0.00000000,0.00000000,73.99291992); //object(vgsselecfence04) (5)
CreateObject(8150,-1422.79968262,-123.67890167,16.24499321,0.00000000,0.00000000,159.99438477); //object(vgsselecfence04) (6)
CreateObject(8150,-1311.40246582,53.29589462,16.24946594,0.00000000,0.00000000,49.99438477); //object(vgsselecfence04) (7)
CreateObject(8150,-1361.18725586,37.22123718,16.24946594,0.00000000,0.00000000,49.99328613); //object(vgsselecfence04) (8)
CreateObject(8150,-1392.45617676,-43.16162109,16.24946594,0.00000000,0.00000000,49.99328613); //object(vgsselecfence04) (9)
CreateObject(8150,-1438.95117188,-55.01171875,16.24946594,0.00000000,0.00000000,49.99328613); //object(vgsselecfence04) (10)
CreateObject(8150,-1376.98486328,-118.33798218,16.24946594,0.00000000,0.00000000,153.99389648); //object(vgsselecfence04) (11)
CreateObject(8150,-1382.28540039,-205.22555542,16.24946594,0.00000000,0.00000000,73.98986816); //object(vgsselecfence04) (12)
CreateObject(8150,-1337.90332031,-207.04687500,16.24946594,0.00000000,0.00000000,73.98742676); //object(vgsselecfence04) (13)
CreateObject(987,-1365.22448730,-274.42120361,13.14843750,0.00000000,0.00000000,40.00000000); //object(elecfence_bar) (10)
CreateObject(16088,-1375.64709473,-212.39358521,13.14843750,0.00000000,0.00000000,70.00000000); //object(des_pipestrut01) (1)
CreateObject(16088,-1350.32324219,-221.72656250,13.14396667,0.00000000,0.00000000,69.99938965); //object(des_pipestrut01) (2)
CreateObject(16088,-1362.98144531,-216.92968750,13.14843750,0.00000000,0.00000000,69.99938965); //object(des_pipestrut01) (3)
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/otvori", cmdtext, true, 10) == 0)
{
dole = MoveObject(zatvoreno,-1112.54992676,379.32696533,0.0000000);
    SetTimer("zatvori", 10000, 0);
      SendClientMessage(playerid, COLOR_BLUE, "Otvaras kapiju eventa, bice zatvoreno za 10 sec");
}
if (strcmp("/event", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,-1077.5541,412.0458,14.1484,135.4079);
}
}
public zatvori()
{
    MoveObject(zatvoreno,1539.602,-1627.611,15.156, 2.00);
    MoveObject(dole,1588.490,-1637.927,13.315, 2.00);
    return 1;
}



a wardings:
D:\miso\gta san andreas\GTA San Andreas\samp\filterscripts\Moto_event_by_miki.pwn(96) : warning 202: number of arguments does not match definition
D:\miso\gta san andreas\GTA San Andreas\samp\filterscripts\Moto_event_by_miki.pwn(102) : warning 202: number of arguments does not match definition
D:\miso\gta san andreas\GTA San Andreas\samp\filterscripts\Moto_event_by_miki.pwn(105) : warning 235: public function lacks forward declaration (symbol "zatvori")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Warnings.