SA-MP Forums Archive
I got problem when compiling - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I got problem when compiling (/showthread.php?tid=196423)



delete - alish1558 - 05.12.2010

Delete PLease


Re: I got problem when compiling - fangoth1 - 05.12.2010

this should do it
pawn Код:
/*
Credits goes to:
[SAP]Sidhu, for his awesome idea and programming!
[SAP]Sidhu Made this!
    DO NOT REMOVE THE STUFF ABOVE, ANY ATTEMP TO DO SO WILL RESULT IN YOU PAYING THE CONSEQUENCES IF CAUGHT
*/

//===============================Include Files==================================

#include <a_samp>

#define FILTERSCRIPT
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW 0xFFFF00AA

#if defined FILTERSCRIPT

new gate1;
new car1;
new car2;
new car3;
new heli1;
new heli2;
new heli3;
new plane1;
new plane2;
new plane3;
new mount1;

#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define LIGHT_BLUE 0x33CCFFAA
#define COLOR_WHITE 0xFFFFFFAA

main()
{
}

public OnFilterScriptInit()
{


    print("\n--------------------------------------");
    print("   HeLMaX's Zone!   ");
    print("--------------------------------------\n");
    CreateObject(986, 1906.9942626953, -2401.41796875, 12.539115905762, 0, 0, 181.35131835938);
    CreateObject(986, 1887.8076171875, -2437.9743652344, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.7479248047, -2453.4958496094, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.8402099609, -2445.7319335938, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.732421875, -2430.072265625, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.20703125, -2422.1640625, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.3916015625, -2414.12109375, 12.539116859436, 0, 0, 270.67565917969);
    CreateObject(986, 1887.0087890625, -2405.9990234375, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1890.8173828125, -2402.0224609375, 12.53911781311, 0, 0, 181.35131835938);
    CreateObject(986, 1898.84765625, -2401.7431640625, 12.53911781311, 0, 0, 181.35131835938);
    CreateObject(986, 1923.0162353516, -2400.892578125, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1915.3361816406, -2401.2770996094, 12.539119720459, 0, 0, 181.35131835938);
    CreateObject(986, 1939.0616455078, -2400.66796875, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1931.12890625, -2400.6806640625, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1947.1256103516, -2400.4499511719, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1963.1044921875, -2400.0703125, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1955.1259765625, -2400.1396484375, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1970.7604980469, -2399.8935546875, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1974.8763427734, -2403.771484375, 12.546876907349, 0, 0, 90.041625976563);
    CreateObject(986, 1974.8677978516, -2411.7939453125, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.7666015625, -2419.7556152344, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.7806396484, -2427.7551269531, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.6456298828, -2435.6787109375, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.6418457031, -2443.705078125, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.6225585938, -2451.7258300781, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.6147460938, -2459.7973632813, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1970.5571289063, -2471.662109375, 12.53911781311, 0, 0, 0.7138671875);
    CreateObject(986, 1974.6416015625, -2467.8359375, 12.539115905762, 0, 0, 90.038452148438);
    CreateObject(986, 1962.6118164063, -2471.7937011719, 12.53911781311, 0, 0, 0.7086181640625);
    CreateObject(986, 1954.7017822266, -2471.8447265625, 12.53911781311, 0, 0, 0.7086181640625);
    CreateObject(986, 1946.6911621094, -2471.9143066406, 12.539115905762, 0, 0, 0.7086181640625);
    CreateObject(986, 1938.6099853516, -2471.9577636719, 12.539116859436, 0, 0, 0.7086181640625);
    CreateObject(986, 1887.7429199219, -2461.4914550781, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1890.7987060547, -2467.9270019531, 12.539118766785, 0, 0, 316.33032226563);
    CreateObject(986, 1930.6782226563, -2472.0021972656, 12.539118766785, 0, 0, 0.7086181640625);
    CreateObject(986, 1922.7023925781, -2471.96484375, 12.53911781311, 0, 0, 0.7086181640625);
    CreateObject(986, 1914.7563476563, -2472.212890625, 12.53911781311, 0, 0, 0.7086181640625);
    CreateObject(986, 1906.6953125, -2472.462890625, 12.539119720459, 0, 0, 0.7086181640625);
    gate1 = CreateObject(971, 1897.9050292969, -2471.2961425781, 15.859035491943, 0, 0, 348.09008789063);
    CreateObject(4874, 1929.1873779297, -2423.9052734375, 16.403356552124, 0, 0, 0);
    CreateObject(8947, 1941.5729980469, -2429.4609375, 15.591897964478, 0, 0, 0);
    CreateObject(16122, 1986.8680419922, -2453.6247558594, 6.0391178131104, 0, 0, 23.81982421875);
    CreateObject(16122, 1956.7021484375, -2381.3049316406, 4.4560546875, 0, 0, 117.11126708984);
    mount1 = CreateObject(16122, 1866.2567138672, -2465.443359375, 3.554012298584, 0, 0, 252.08386230469);
    CreateObject(16122, 1924.8276367188, -2494.7214355469, 4.2891178131104, 0, 0, 296.47900390625);
    CreateObject(16122, 1876.6298828125, -2402.443359375, 4.0374870300293, 0, 0, 172.68310546875);

    car1 = CreateVehicle(506,1945.8948974609,-2424.7626953125,13.338988304138,0,0,179.36627197266,86400);
    SetVehicleNumberPlate (car3, "  ADMIN");
    ChangeVehicleColor(car1,0,0);

    car2 = CreateVehicle(506,1937.3232421875,-2424.4462890625,13.331231117249,0,0,179.36273193359,86400);
    SetVehicleNumberPlate (car2, "  ADMIN");
    ChangeVehicleColor(car2,1,1);

    car3 = CreateVehicle(432,1941.8763427734,-2429.4973144531,13.638454437256,0,0,177.38122558594,86400);
    SetVehicleNumberPlate (car3, "  ADMIN");
    ChangeVehicleColor(car3,3,3);

    heli1 = CreateVehicle(425,1912.3000488281,-2427.4167480469,17.722253799438,0,0,181.35131835938,86400);
    ChangeVehicleColor(heli1,43,0);
   
    heli2 = CreateVehicle(497,1925.8533935547,-2435.9255371094,17.136253356934,0,0,320.30029296875,86400);
    ChangeVehicleColor(heli2,43,0);
   
    heli3 = CreateVehicle(487,1898.8859863281,-2416.7563476563,17.136253356934,0,0,342.13513183594,86400);
    ChangeVehicleColor(heli3,43,0);

    plane1 = CreateVehicle(520,1966.0557861328,-2462.1586914063,14.458693504333,0,0,0,86400);
    ChangeVehicleColor(plane1,3,1);
   
    plane2 = CreateVehicle(520,1954.2856445313,-2462.0759277344,14.458693504333,0,0,0,86400);
    ChangeVehicleColor(plane2,3,1);
   
    plane3 = CreateVehicle(520,1942.9952392578,-2462.0129394531,14.458693504333,0,0,0,86400);
    ChangeVehicleColor(plane3,3,1);
    return 1;
}
#endif

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
    {
    if(vehicleid == car1)
        {
            if(IsPlayerAdmin(playerid))
           {
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }

    if(vehicleid == car2)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }

   if(vehicleid == car3)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       

     if(vehicleid == heli1)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       
        if(vehicleid == heli2)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       
        if(vehicleid == heli3)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }

        if(vehicleid == plane1)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       
         if(vehicleid == plane2)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       
        if(vehicleid == plane3)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
  }
    return 1;
    }

public OnPlayerCommandText(playerid, cmdtext[])
{
    if( !strcmp(cmdtext,"/hztele",true ))
    {
        if(IsPlayerAdmin(playerid))
        {
            SetPlayerPos(playerid,-5247.3433,-195.4889,1.9601);
            SetPlayerFacingAngle(playerid,268.8916);
            SendClientMessage (playerid, COLOR_GREEN, "Welcome to the HeLMaX's Zone!");
            SetPlayerSkin( playerid, 217 );
            }
            else
            {
            SendClientMessage(playerid, COLOR_RED, "This commands is for rcon administrators only!");
            }
        return 1;
        }
    if (strcmp(cmdtext, "/hzgateopen", true)==0)
       {
      MoveObject (gate1,1897.904296875, -2471.2958984375, 5.6090354919434, 0, 0, 348.08532714844);
      SendClientMessage(playerid, COLOR_RED, "WARNING:The Gate Is Open!");
      return 1;
       }
       if (strcmp(cmdtext, "/hzgateclose", true)==0)
    {
       MoveObject (gate1,1897.9050292969, -2471.2961425781, 15.859035491943, 0, 0, 348.09008789063);
       SendClientMessage(playerid, COLOR_GREEN, "The Gate Is Closed!");
       return 1;
     }
       if (strcmp(cmdtext, "/hzmountopen", true)==0)
       {
      MoveObject (mount1,1866.255859375, -2465.443359375, -17.845863342285, 0, 0, 252.08129882813);
      SendClientMessage(playerid, COLOR_RED, "WARNING:The Mount Is Open!");
      return 1;
       }
       if (strcmp(cmdtext, "/hzmountclose", true)==0)
    {
       MoveObject (mount1,1866.2567138672, -2465.443359375, 3.554012298584, 0, 0, 252.08386230469);
       SendClientMessage(playerid, COLOR_GREEN, "The Mount Is Closed!");
       return 1;
       }
    return 0;
}



Re: I got problem when compiling - alish1558 - 05.12.2010

Quote:
Originally Posted by fangoth1
Посмотреть сообщение
this should do it
pawn Код:
/*
Credits goes to:
[SAP]Sidhu, for his awesome idea and programming!
[SAP]Sidhu Made this!
    DO NOT REMOVE THE STUFF ABOVE, ANY ATTEMP TO DO SO WILL RESULT IN YOU PAYING THE CONSEQUENCES IF CAUGHT
*/

//===============================Include Files==================================

#include <a_samp>

#define FILTERSCRIPT
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW 0xFFFF00AA

#if defined FILTERSCRIPT

new gate1;
new car1;
new car2;
new car3;
new heli1;
new heli2;
new heli3;
new plane1;
new plane2;
new plane3;
new mount1;

#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define LIGHT_BLUE 0x33CCFFAA
#define COLOR_WHITE 0xFFFFFFAA

main()
{
}

public OnFilterScriptInit()
{


    print("\n--------------------------------------");
    print("   HeLMaX's Zone!   ");
    print("--------------------------------------\n");
    CreateObject(986, 1906.9942626953, -2401.41796875, 12.539115905762, 0, 0, 181.35131835938);
    CreateObject(986, 1887.8076171875, -2437.9743652344, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.7479248047, -2453.4958496094, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.8402099609, -2445.7319335938, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.732421875, -2430.072265625, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.20703125, -2422.1640625, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1887.3916015625, -2414.12109375, 12.539116859436, 0, 0, 270.67565917969);
    CreateObject(986, 1887.0087890625, -2405.9990234375, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1890.8173828125, -2402.0224609375, 12.53911781311, 0, 0, 181.35131835938);
    CreateObject(986, 1898.84765625, -2401.7431640625, 12.53911781311, 0, 0, 181.35131835938);
    CreateObject(986, 1923.0162353516, -2400.892578125, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1915.3361816406, -2401.2770996094, 12.539119720459, 0, 0, 181.35131835938);
    CreateObject(986, 1939.0616455078, -2400.66796875, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1931.12890625, -2400.6806640625, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1947.1256103516, -2400.4499511719, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1963.1044921875, -2400.0703125, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1955.1259765625, -2400.1396484375, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1970.7604980469, -2399.8935546875, 12.546875, 0, 0, 181.35131835938);
    CreateObject(986, 1974.8763427734, -2403.771484375, 12.546876907349, 0, 0, 90.041625976563);
    CreateObject(986, 1974.8677978516, -2411.7939453125, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.7666015625, -2419.7556152344, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.7806396484, -2427.7551269531, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.6456298828, -2435.6787109375, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.6418457031, -2443.705078125, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.6225585938, -2451.7258300781, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1974.6147460938, -2459.7973632813, 12.546875, 0, 0, 90.038452148438);
    CreateObject(986, 1970.5571289063, -2471.662109375, 12.53911781311, 0, 0, 0.7138671875);
    CreateObject(986, 1974.6416015625, -2467.8359375, 12.539115905762, 0, 0, 90.038452148438);
    CreateObject(986, 1962.6118164063, -2471.7937011719, 12.53911781311, 0, 0, 0.7086181640625);
    CreateObject(986, 1954.7017822266, -2471.8447265625, 12.53911781311, 0, 0, 0.7086181640625);
    CreateObject(986, 1946.6911621094, -2471.9143066406, 12.539115905762, 0, 0, 0.7086181640625);
    CreateObject(986, 1938.6099853516, -2471.9577636719, 12.539116859436, 0, 0, 0.7086181640625);
    CreateObject(986, 1887.7429199219, -2461.4914550781, 12.53911781311, 0, 0, 270.67565917969);
    CreateObject(986, 1890.7987060547, -2467.9270019531, 12.539118766785, 0, 0, 316.33032226563);
    CreateObject(986, 1930.6782226563, -2472.0021972656, 12.539118766785, 0, 0, 0.7086181640625);
    CreateObject(986, 1922.7023925781, -2471.96484375, 12.53911781311, 0, 0, 0.7086181640625);
    CreateObject(986, 1914.7563476563, -2472.212890625, 12.53911781311, 0, 0, 0.7086181640625);
    CreateObject(986, 1906.6953125, -2472.462890625, 12.539119720459, 0, 0, 0.7086181640625);
    gate1 = CreateObject(971, 1897.9050292969, -2471.2961425781, 15.859035491943, 0, 0, 348.09008789063);
    CreateObject(4874, 1929.1873779297, -2423.9052734375, 16.403356552124, 0, 0, 0);
    CreateObject(8947, 1941.5729980469, -2429.4609375, 15.591897964478, 0, 0, 0);
    CreateObject(16122, 1986.8680419922, -2453.6247558594, 6.0391178131104, 0, 0, 23.81982421875);
    CreateObject(16122, 1956.7021484375, -2381.3049316406, 4.4560546875, 0, 0, 117.11126708984);
    mount1 = CreateObject(16122, 1866.2567138672, -2465.443359375, 3.554012298584, 0, 0, 252.08386230469);
    CreateObject(16122, 1924.8276367188, -2494.7214355469, 4.2891178131104, 0, 0, 296.47900390625);
    CreateObject(16122, 1876.6298828125, -2402.443359375, 4.0374870300293, 0, 0, 172.68310546875);

    car1 = CreateVehicle(506,1945.8948974609,-2424.7626953125,13.338988304138,0,0,179.36627197266,86400);
    SetVehicleNumberPlate (car3, "  ADMIN");
    ChangeVehicleColor(car1,0,0);

    car2 = CreateVehicle(506,1937.3232421875,-2424.4462890625,13.331231117249,0,0,179.36273193359,86400);
    SetVehicleNumberPlate (car2, "  ADMIN");
    ChangeVehicleColor(car2,1,1);

    car3 = CreateVehicle(432,1941.8763427734,-2429.4973144531,13.638454437256,0,0,177.38122558594,86400);
    SetVehicleNumberPlate (car3, "  ADMIN");
    ChangeVehicleColor(car3,3,3);

    heli1 = CreateVehicle(425,1912.3000488281,-2427.4167480469,17.722253799438,0,0,181.35131835938,86400);
    ChangeVehicleColor(heli1,43,0);
   
    heli2 = CreateVehicle(497,1925.8533935547,-2435.9255371094,17.136253356934,0,0,320.30029296875,86400);
    ChangeVehicleColor(heli2,43,0);
   
    heli3 = CreateVehicle(487,1898.8859863281,-2416.7563476563,17.136253356934,0,0,342.13513183594,86400);
    ChangeVehicleColor(heli3,43,0);

    plane1 = CreateVehicle(520,1966.0557861328,-2462.1586914063,14.458693504333,0,0,0,86400);
    ChangeVehicleColor(plane1,3,1);
   
    plane2 = CreateVehicle(520,1954.2856445313,-2462.0759277344,14.458693504333,0,0,0,86400);
    ChangeVehicleColor(plane2,3,1);
   
    plane3 = CreateVehicle(520,1942.9952392578,-2462.0129394531,14.458693504333,0,0,0,86400);
    ChangeVehicleColor(plane3,3,1);
    return 1;
}
#endif

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
    {
    if(vehicleid == car1)
        {
            if(IsPlayerAdmin(playerid))
           {
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }

    if(vehicleid == car2)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }

   if(vehicleid == car3)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       

     if(vehicleid == heli1)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       
        if(vehicleid == heli2)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       
        if(vehicleid == heli3)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }

        if(vehicleid == plane1)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       
         if(vehicleid == plane2)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
       
        if(vehicleid == plane3)
        {
            if(IsPlayerAdmin(playerid)){
            SendClientMessage(playerid, LIGHT_BLUE, "Welcome to the admin vehicle!");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "Admins only!");
            }
        }
  }
    return 1;
    }

public OnPlayerCommandText(playerid, cmdtext[])
{
    if( !strcmp(cmdtext,"/hztele",true ))
    {
        if(IsPlayerAdmin(playerid))
        {
            SetPlayerPos(playerid,-5247.3433,-195.4889,1.9601);
            SetPlayerFacingAngle(playerid,268.8916);
            SendClientMessage (playerid, COLOR_GREEN, "Welcome to the HeLMaX's Zone!");
            SetPlayerSkin( playerid, 217 );
            }
            else
            {
            SendClientMessage(playerid, COLOR_RED, "This commands is for rcon administrators only!");
            }
        return 1;
        }
    if (strcmp(cmdtext, "/hzgateopen", true)==0)
       {
      MoveObject (gate1,1897.904296875, -2471.2958984375, 5.6090354919434, 0, 0, 348.08532714844);
      SendClientMessage(playerid, COLOR_RED, "WARNING:The Gate Is Open!");
      return 1;
       }
       if (strcmp(cmdtext, "/hzgateclose", true)==0)
    {
       MoveObject (gate1,1897.9050292969, -2471.2961425781, 15.859035491943, 0, 0, 348.09008789063);
       SendClientMessage(playerid, COLOR_GREEN, "The Gate Is Closed!");
       return 1;
     }
       if (strcmp(cmdtext, "/hzmountopen", true)==0)
       {
      MoveObject (mount1,1866.255859375, -2465.443359375, -17.845863342285, 0, 0, 252.08129882813);
      SendClientMessage(playerid, COLOR_RED, "WARNING:The Mount Is Open!");
      return 1;
       }
       if (strcmp(cmdtext, "/hzmountclose", true)==0)
    {
       MoveObject (mount1,1866.2567138672, -2465.443359375, 3.554012298584, 0, 0, 252.08386230469);
       SendClientMessage(playerid, COLOR_GREEN, "The Mount Is Closed!");
       return 1;
       }
    return 0;
}
I am still getting warnings
Код:
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(92) : warning 213: tag mismatch
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(96) : warning 213: tag mismatch
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(100) : warning 213: tag mismatch
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(104) : warning 213: tag mismatch
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(107) : warning 213: tag mismatch
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(110) : warning 213: tag mismatch
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(155) : warning 217: loose indentation
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(168) : warning 217: loose indentation
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(180) : warning 217: loose indentation
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(216) : warning 217: loose indentation
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(228) : warning 217: loose indentation
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(262) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(262) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(266) : warning 217: loose indentation
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(268) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(268) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(274) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(274) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(280) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(280) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Okan\Desktop\pawno\hzone.pwn(284) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


21 Warnings.
(Tested on my other pc with windows xp os)


Re: I got problem when compiling - scottyishere - 05.12.2010

Put this after includes:
pawn Код:
#pragma tabsize 0
This should fix a few warnings.


Re: I got problem when compiling - alish1558 - 05.12.2010

Quote:
Originally Posted by scottyishere
Посмотреть сообщение
Put this after includes:
pawn Код:
#pragma tabsize 0
This should fix a few warnings.
Thanks but as I know this code can make the server laggy maby crash..
Anyway some warnings fixed but what about the others?
I have tested the script the commands are working but nothing appears when I am typing.
The moving is not working(moving of the mountain and the gate),I can't open and close them.