Jump to content
  • 0

PROBLEMA FILTERSCRIPT!


Buga.

Question

Salut,am acest sistem de porti pentru PD LS&LV insa cand in compilezi filterscriptul primesc 2 errori,care nu pot sa imi dau seama de ce :|

Aici aveti warningurile:

[pawn]C:\Users\X\Desktop\X\filterscripts\lspd.pwn(134) : error 055: start of function body without function header

C:\Users\X\Desktop\X\filterscripts\lspd.pwn(135) : error 010: invalid function or declaration

C:\Users\X\Desktop\X\filterscripts\lspd.pwn(214) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

[/pawn]

aici filterscriptu

[pawn]//----== Los Santos Police Department Gates, Created by : Toniu_ >aKa< Tom_Johnson ==--------------------

//----== Very simple but usefull stuff , Cmds : /olspd1 , /olspd2 , /clspd1 , /clspd2 , /olvpd1 , /olvpd2 ,==----

//----== Credits : All credits go to : Toniu_ ==----

//----== You can edit it in any way you like, but don't forget to leave me some credits :)) --_Enjoy_--

#include <a_samp>

#define FILTERSCRIPT

// Colors

#define COLOR_BLUE 0x0042F6AA

#define COLOR_DBLUE 0x00008DAA

#define COLOR_DRED 0xA50000AA

#define COLOR_WHITE 0xF6F6F6AA

#define COLOR_YELLOW 0xF6F600AA

#define COLOR_GREEN 0x00B900AA

#pragma tabsize 0

new lspd1;

new lspd2;

new lvpd1;

new lvpd2;

new lvpd3;

#if defined FILTERSCRIPT

public OnFilterScriptInit()

{

    print("\n--------------------------------------");

    print("-Toniu_ LS&LV PD Gates-®-");

    print("--------------------------------------\n");

    //---== Los Santos Police Department ==---

    lspd2 = CreateObject(971,1542.237,-1627.777,15.953,0.0,0.0,-90.000); // LSPD Outer Gate

    lspd1 = CreateObject(971,1588.038,-1637.873,15.280,0.0,0.0,0.0); // LSPD Garage Gate

    CreateObject(987,1607.366,-1625.857,12.535,0.0,0.0,-90.000); // LSPD Gates

    CreateObject(987,1607.376,-1614.016,12.491,0.0,0.0,-90.000);

    CreateObject(987,1607.387,-1602.724,12.493,0.0,0.0,-90.000);

    CreateObject(987,1607.325,-1637.659,12.569,0.0,0.859,-180.000);

    CreateObject(987,1595.472,-1602.927,12.516,0.0,0.0,0.0);

    CreateObject(987,1583.490,-1602.937,12.501,0.0,0.0,0.0);

    CreateObject(987,1571.587,-1602.912,12.508,0.0,0.0,0.0);

    CreateObject(987,1559.662,-1602.937,12.514,0.0,0.0,0.0);

    CreateObject(987,1547.741,-1602.974,12.483,0.0,0.0,0.0);

    CreateObject(987,1539.938,-1602.905,12.408,0.0,0.0,0.0);

    CreateObject(987,1540.150,-1614.923,12.408,0.0,0.0,90.000);

    CreateObject(987,1540.151,-1617.418,12.383,0.0,0.0,90.000);

    CreateObject(3749,1541.656,-1627.648,17.591,0.0,0.0,-90.000);

    CreateObject(3279,1544.516,-1607.077,11.908,0.0,0.0,0.0);

    CreateObject(1778,1538.166,-1618.983,22.172,0.0,0.0,90.000);

    //---== Las Venturas Police Department (I made it in a 20-30min so its not so good lol) ==---

    lvpd1 = CreateObject(969,2237.421,2449.144,9.838,0.0,0.0,90.000); // LVPD Outer Gate

    lvpd2 = CreateObject(971,2293.847,2498.374,5.768,0.0,0.0,-90.000); // LVPD Garage Gate #1

    lvpd3 = CreateObject(971,2335.227,2443.460,8.261,0.0,0.0,59.688); // LVPD Garage Gate #2

    CreateObject(1495,2293.849,2494.456,2.255,0.0,0.0,-90.859);

    return 1;

}

public OnFilterScriptExit()

{

    return 1;

}

#else

main()

{

    print("\n-----------------------------------------------");

    print(" --== LSPD & LVPD Gates ==-- By : Toniu_ ®-");

    print("-------------------------------------------------n");

}

#endif

public OnGameModeExit()

{

    return 1;

}

public OnPlayerRequestClass(playerid, classid)

{

    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);

    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);

    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);

    return 1;

}

public OnPlayerRequestSpawn(playerid)

{

    return 1;

}

public OnPlayerConnect(playerid)

{

    return 1;

}

public OnPlayerDisconnect(playerid, reason)

{

    return 1;

}

public OnPlayerSpawn(playerid)

{

    return 1;

}

public OnPlayerDeath(playerid, killerid, reason)

{

    return 1;

}

public OnVehicleSpawn(vehicleid)

{

    return 1;

}

public OnVehicleDeath(vehicleid, killerid)

{

    return 1;

}

public OnPlayerText(playerid, text[])

{

    return 1;

}

//public OnPlayerPrivmsg(playerid, recieverid, text[])

{

    return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

    if (strcmp("/gatehelp", cmdtext, true) == 0)

    {

        SendClientMessage(playerid, COLOR_GREEN, "|_______________Gatehelp LS/LVPD________________|!");

        SendClientMessage(playerid, COLOR_YELLOW, "---=== Los Santos ===---!");

        SendClientMessage(playerid, COLOR_WHITE, "/olspd1 , /olspd2 , /clspd1 , /clspd2 !");

        SendClientMessage(playerid, COLOR_YELLOW, "---=== Las Venturas ===---!");

        SendClientMessage(playerid, COLOR_WHITE, "/olvpd1 , /olvpd2 , /olvpd3 , /clvpd1 , /clvpd2 , /clvpd3!");

        SendClientMessage(playerid, COLOR_GREEN, "|_______________Gatehelp LS/LVPD________________|!");

        return 1;

    }

    if (strcmp("/olspd2", cmdtext, true) == 0)

    {

        MoveObject(lspd2, 1542.237,-1627.777,20.378, 5);  //-- LS --

        SendClientMessage(playerid, COLOR_BLUE, "LSPD Gate Opened !");

        return 1;

    }

    if (strcmp("/clspd2", cmdtext, true) == 0)

    {

        MoveObject(lspd2, 1542.237,-1627.777,15.953, 5);

        SendClientMessage(playerid, COLOR_DBLUE, "LSPD Gate Closed !");

        return 1;

    }

    if (strcmp("/clspd1", cmdtext, true) == 0)

    {

        MoveObject(lspd1, 1588.038,-1637.873,15.280, 5);

        SendClientMessage(playerid, COLOR_DBLUE, "LSPD Gate Closed !");

        return 1;

    }

    if (strcmp("/olspd1", cmdtext, true) == 0)

    {

        MoveObject(lspd1, 1596.794,-1637.898,15.280, 5);

        SendClientMessage(playerid, COLOR_BLUE, "LSPD Gate Opened !");

        return 1;

    }

    if (strcmp("/olvpd1", cmdtext, true) == 0)

    {

        MoveObject(lvpd1, 2237.414,2457.107,9.840, 5); //-- LV --

        SendClientMessage(playerid, COLOR_BLUE, "LVPD Gate Opened !");

        return 1;

    }

    if (strcmp("/clvpd1", cmdtext, true) == 0)

    {

        MoveObject(lvpd1, 2237.421,2449.144,9.838, 5);

        SendClientMessage(playerid, COLOR_DBLUE, "LVPD Gate Closed !");

        return 1;

    }

    if (strcmp("/olvpd2", cmdtext, true) == 0)

    {

        MoveObject(lvpd2, 2293.847,2498.354,10.518, 5);

        SendClientMessage(playerid, COLOR_BLUE, "LVPD Gate Opened !");

        return 1;

    }

    if (strcmp("/clvpd2", cmdtext, true) == 0)

    {

        MoveObject(lvpd2, 2293.847,2498.374,5.768, 5);

        SendClientMessage(playerid, COLOR_DBLUE, "LVPD Gate Closed !");

        return 1;

    }

  if (strcmp("/olvpd3", cmdtext, true) == 0)

    {

        MoveObject(lvpd3, 2335.170,2443.313,1.311, 5);

        SendClientMessage(playerid, COLOR_BLUE, "LVPD Gate Opened !");

        return 1;

    }

  if (strcmp("/clvpd3", cmdtext, true) == 0)

    {

        MoveObject(lvpd3, 2335.227,2443.460,8.261, 5);

        SendClientMessage(playerid, COLOR_DBLUE, "LVPD Gate Closed !");

        return 1;

    }

    return 0;

}

public OnPlayerInfoChange(playerid)

{

    return 1;

}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

{

    return 1;

}

public OnPlayerExitVehicle(playerid, vehicleid)

{

    return 1;

}

public OnPlayerStateChange(playerid, newstate, oldstate)

{

    return 1;

}

public OnPlayerEnterCheckpoint(playerid)

{

    return 1;

}

public OnPlayerLeaveCheckpoint(playerid)

{

    return 1;

}

public OnPlayerEnterRaceCheckpoint(playerid)

{

    return 1;

}

public OnPlayerLeaveRaceCheckpoint(playerid)

{

    return 1;

}

public OnRconCommand(cmd[])

{

    return 1;

}

public OnObjectMoved(objectid)

{

    return 1;

}

public OnPlayerObjectMoved(playerid, objectid)

{

    return 1;

}

public OnPlayerPickUpPickup(playerid, pickupid)

{

    return 1;

}

public OnPlayerSelectedMenuRow(playerid, row)

{

    return 1;

}

public OnPlayerExitedMenu(playerid)

{

    return 1;

}

[/pawn]

Puteti sa imi spuneti,ce are?Multumesc anticipat.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.