ManualVehicleEngineAndLights(); Error
#1

Alright so, I need this to stop my vehciles from turning on when I get inside them, unfortunally when I add it, it gives me this error:

Код:
error 017: undefined symbol "ManualVehicleEngineAndLights"
This is my script, can anyone help?

Код:
//OrbzGaming SA:MP Server Script

//INCLUDES//
#include <a_samp>
#include <zcmd>
#include <sscanf2>
//INCLUDES//

//FILTERSCRIPTS//
#if defined FILTERSCRIPT
//FILTERSCRIPTS//

//DEFINES//
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4
#define PATH "/Users/%s.ini"
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
//DEFINES//

//Y_INI//
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
	INI_Int("Password",PlayerInfo[playerid][pPass]);
	INI_Int("Cash",PlayerInfo[playerid][pCash]);
	INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
	INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
 	return 1;
}
stock UserPath(playerid)
{
	new string[128],playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid,playername,sizeof(playername));
	format(string,sizeof(string),PATH,playername);
	return string;
}
stock udb_hash(buf[]) {
	new length=strlen(buf);
    new s1 = 1;
    new s2 = 0;
    new n;
    for (n=0; n<length; n++)
    {
       s1 = (s1 + buf[n]) % 65521;
       s2 = (s2 + s1)     % 65521;
    }
    return (s2 << 16) + s1;
}
public OnPlayerConnect(playerid)
{
	if(fexist(UserPath(playerid)))
	{
		INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  		ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
	}
	else
	{
 		ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
	}
	return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_Close(File);

                SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
                SpawnPlayer(playerid);
                ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"Great! Your Y_INI system works perfectly. Relog to save your stats!","Ok","");
			}
        }

        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
					ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok","");
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
    }
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
	new INI:File = INI_Open(UserPath(playerid));
	INI_SetTag(File,"data");
	INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
	INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
	INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
	INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
	INI_Close(File);
	return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
	PlayerInfo[killerid][pKills]++;
	PlayerInfo[playerid][pDeaths]++;
	return 1;
}
//Y_INI//
#endif

//CAR SPAWNS//
public OnGameModeInit()
{
    ManualVehicleEngineAndLights();
	SetGameModeText("OrbzGaming LightRP");
	AddPlayerClass(165,-1421.8270,-287.2401,14.1484,150.1535,0,0,0,0,0,0);
    AddStaticVehicle(507,-1961.2831,1339.6487,6.9812,206.9296,0,0); //
    AddStaticVehicle(507,-1945.5159,1339.0120,7.0121,147.4160,0,0); //
    AddStaticVehicle(559,-1656.9678,454.4189,6.8266,225.8164,6,0); //
    AddStaticVehicle(535,-1706.0708,406.1824,6.9136,227.5521,55,1); //
    AddStaticVehicle(566,-1699.6498,413.3166,6.9761,225.9984,84,8); //
    AddStaticVehicle(466,-1763.6812,948.5830,24.4841,271.0938,78,76); //
    AddStaticVehicle(545,-1750.2876,948.8535,24.6076,271.0609,47,1); //
    AddStaticVehicle(413,-1735.2789,1049.3479,17.6585,90.8813,88,1); //
    AddStaticVehicle(574,-1720.4548,1015.6420,17.3111,88.2069,26,26); //
    AddStaticVehicle(574,-1720.1385,1020.0734,17.3111,94.2959,26,26); //
    AddStaticVehicle(560,-1587.9504,-1846.5280,75.7817,121.3242,1,29); //
    AddStaticVehicle(585,-1687.7942,987.1858,17.2204,269.1499,42,42); //
    AddStaticVehicle(549,-1702.3386,1004.0133,17.2829,90.4381,72,39); //
    AddStaticVehicle(546,-1703.6456,1028.5342,17.3104,90.7219,78,38); //
    AddStaticVehicle(546,-1693.9900,1059.1444,17.3103,359.6220,0,0); //
    AddStaticVehicle(561,-1736.2745,1008.3485,17.3994,91.6291,8,17); //
    AddStaticVehicle(497,-1680.0165,706.0964,30.7782,90.4319,0,1); //
    AddStaticVehicle(533,-2073.6975,968.0374,61.6336,12.2912,75,1); //
    AddStaticVehicle(421,-2510.1282,1139.0929,55.5997,177.1017,30,1); //
    AddStaticVehicle(579,-2636.6277,932.9221,71.7419,195.2941,42,42); //
    AddStaticVehicle(554,-2722.6489,915.8687,67.6814,90.2973,65,32); //
    AddStaticVehicle(527,-2592.3743,645.2054,27.5310,89.6340,53,1); //
    AddStaticVehicle(551,-2563.1392,625.7888,27.6088,359.9005,7,0); //
    AddStaticVehicle(405,-2591.5808,666.0721,27.6875,89.2955,18,0); //
    AddStaticVehicle(416,-2674.7529,629.8232,14.6024,90.6910,1,3); //
    AddStaticVehicle(416,-2588.0754,653.5234,14.6030,271.0553,1,3); //
    AddStaticVehicle(416,-2589.8396,658.1975,14.6027,271.6384,1,3); //
    AddStaticVehicle(566,-2547.0613,647.4545,14.2404,268.5971,83,1); //
    AddStaticVehicle(518,-2572.4792,627.5349,14.1137,89.5682,9,39); //
    AddStaticVehicle(562,-2572.4861,632.7147,14.1188,90.0121,67,0); //
    AddStaticVehicle(507,-2753.1187,381.7529,3.9579,180.1222,0,0); //
    AddStaticVehicle(409,-2753.1152,373.4622,3.9432,179.3698,36,0); //
    AddStaticVehicle(409,-2558.0938,184.3135,5.2257,0.0810,5,1); //
    AddStaticVehicle(467,-2678.3210,268.2394,4.0761,181.8818,60,1); //
    AddStaticVehicle(445,-2508.4253,371.4350,34.9871,61.7268,37,37); //
    AddStaticVehicle(518,-2527.8633,322.1414,34.7881,70.9031,17,1); //
    AddStaticVehicle(401,-2515.6631,309.6224,34.9000,70.1316,47,47); //
    AddStaticVehicle(426,-2527.9316,321.9206,34.8603,68.4554,42,42); //
    AddStaticVehicle(426,-2498.5146,370.8176,27.5035,238.7703,1,0); //
    AddStaticVehicle(550,-2493.1240,427.8868,27.5981,316.6879,53,53); //
    AddStaticVehicle(489,-2480.2244,393.3396,27.9227,321.6817,14,123); //
    AddStaticVehicle(491,-2499.7964,365.8879,27.5219,242.8230,1,0); //
    AddStaticVehicle(529,-2519.0066,319.9394,27.4002,251.8859,42,42); //
    AddStaticVehicle(428,-2443.5657,522.9944,30.0682,359.3327,4,75); //
    AddStaticVehicle(551,-1932.2621,585.2930,34.9226,359.9594,91,1); //
    AddStaticVehicle(547,-1953.4591,585.7752,34.8511,178.9893,123,1); //
    AddStaticVehicle(442,-2057.8953,1108.4733,53.1434,272.1801,36,0); //
    AddStaticVehicle(526,-2429.9194,741.5828,34.7823,357.9499,6,0); //
    AddStaticVehicle(421,-2451.4297,741.6859,34.8998,178.9552,36,1); //
    AddStaticVehicle(542,-2416.5342,740.6115,34.7593,358.9466,0,0); //
    AddStaticVehicle(540,-2473.3972,741.7297,34.8784,359.8324,53,53); //
    AddStaticVehicle(414,-2461.1499,780.0235,35.2664,89.1396,1,0); //
    AddStaticVehicle(482,-2444.1543,1030.8981,50.5168,319.7848,52,52); //
    AddStaticVehicle(576,-1780.1013,1291.3773,22.1765,357.3319,74,8); //
    AddStaticVehicle(412,-1836.7229,1286.5002,22.4005,23.1712,11,1); //
    AddStaticVehicle(419,-1811.0551,1292.8221,31.6503,185.3804,47,76); //
    AddStaticVehicle(540,-1836.6010,1307.4591,31.7135,200.1923,62,62); //
    AddStaticVehicle(507,-1836.7715,1307.5745,40.9479,19.3174,37,37); //
    AddStaticVehicle(517,-1816.9575,1292.5240,50.3004,182.7450,36,36); //
    AddPlayerClass(165,-1421.8270,-287.2401,14.1484,150.1535,0,0,0,0,0,0); //
    AddStaticVehicle(523,-1628.6841,651.2446,6.7531,360.0000,0,0); //
    AddStaticVehicle(523,-1634.3983,651.4564,6.7486,0.0000,0,0); //
    AddStaticVehicle(599,-1616.5913,732.3228,-5.0554,359.8790,0,1); //
    AddStaticVehicle(599,-1612.4097,732.5314,-5.0501,359.0013,0,1); //
    AddStaticVehicle(484,-1897.7371,1400.8870,0.2019,88.7209,50,32); //
    AddStaticVehicle(409,-1498.8438,932.0814,6.9875,359.0845,0,0); //
    AddStaticVehicle(409,-1499.2184,908.7103,6.9874,359.0846,0,0); //
    AddStaticVehicle(428,-1594.1511,912.0474,7.6208,89.8368,0,0); //
    AddStaticVehicle(526,-1655.7504,1314.4447,6.8057,314.7885,9,0); //
    AddStaticVehicle(496,-1637.9939,1296.9856,6.7519,133.7763,66,72); //
    AddStaticVehicle(419,-1631.0656,1289.8093,6.8362,313.5464,47,76); //
    AddStaticVehicle(562,-1842.3298,1305.2004,31.5099,18.8147,11,1); //
    AddStaticVehicle(576,-1830.0398,1289.5037,31.4716,21.6990,68,96); //
    AddStaticVehicle(551,-1816.6403,1311.3402,31.6331,185.1523,75,1); //
    AddStaticVehicle(420,-1799.5431,1293.4805,40.9257,178.3518,6,1); //
    AddStaticVehicle(559,-1817.8634,1293.4086,40.8048,8.3402,58,8); //
    AddStaticVehicle(554,-1830.5575,1309.4885,41.2240,22.0684,15,32); //
    AddStaticVehicle(419,-1836.6776,1306.8469,50.2419,13.8541,13,76); //
    AddStaticVehicle(419,-1810.8240,1310.8662,50.2425,187.9256,13,76); //
    AddStaticVehicle(400,-1798.7632,1294.2173,50.5378,173.8748,75,1); //
    AddStaticVehicle(463,-1836.4780,1307.1892,59.2731,21.4393,11,11); //
    AddStaticVehicle(521,-1818.3989,1293.8768,59.3047,185.3241,118,118); //
    AddStaticVehicle(565,-1834.9785,1286.9188,59.3578,19.6149,53,53); //
    AddStaticVehicle(420,-1993.9852,173.9429,27.3162,178.5895,6,1); //
    AddStaticVehicle(420,-1994.0897,167.2391,27.3170,179.9724,6,1); //
    AddStaticVehicle(420,-1994.0925,160.1057,27.3172,179.9716,6,1); //
    AddStaticVehicle(420,-1994.0945,152.3935,27.3175,179.9715,6,1); //
    AddStaticVehicle(420,-1994.0988,143.2183,27.3159,179.9713,6,1); //
    AddStaticVehicle(420,-1994.1029,134.9410,27.3180,179.9712,6,1); //
    AddStaticVehicle(420,-1994.1069,126.3633,27.3185,179.9711,6,1); //
    AddStaticVehicle(420,-1994.1084,120.1670,27.3184,179.9710,6,1); //
    AddStaticVehicle(431,-1970.0142,104.9865,27.7878,91.3425,92,72); //
    AddStaticVehicle(431,-1967.8268,93.7347,27.7889,87.5684,92,72); //
    AddStaticVehicle(431,-1965.9325,80.7768,27.7943,88.7538,92,72); //
    AddStaticVehicle(527,-2490.5867,740.6007,34.7313,359.5035,53,1); //
    AddStaticVehicle(442,-2477.7400,740.9944,34.8869,180.2623,11,105); //
    AddStaticVehicle(533,-2451.4897,740.6172,34.7599,359.3139,74,1); //
    AddStaticVehicle(546,-2416.8704,740.9793,34.7194,358.0265,9,0); //
    AddStaticVehicle(416,-2632.8220,628.2343,14.6022,88.0753,1,3); //
    AddStaticVehicle(416,-2675.6191,629.5436,14.6017,88.3623,1,3); //
    AddStaticVehicle(416,-2678.1433,591.0787,14.6022,182.3714,1,3); //
    AddStaticVehicle(416,-2654.9111,591.1965,14.6021,180.7585,1,3); //
    AddStaticVehicle(401,-2546.1736,627.0665,14.2323,270.0223,47,47); //
    AddStaticVehicle(492,-2545.8467,653.4535,14.2450,90.5829,77,26); //
    AddStaticVehicle(536,-2588.8186,637.8892,14.1908,89.3080,37,1); //
    AddStaticVehicle(527,-2579.0313,625.9368,27.5281,180.2480,66,1); //
    AddStaticVehicle(410,-2545.7712,643.2911,27.4641,270.6863,9,1); //
    AddStaticVehicle(404,-2545.1226,659.1423,27.5440,88.4578,119,50); //
    AddStaticVehicle(431,-2636.3628,701.0225,28.0396,90.5583,55,83); //
    AddStaticVehicle(504,-2502.0227,410.7433,27.5730,144.2056,57,38); //
    AddStaticVehicle(445,-2496.5630,430.4102,27.6492,317.9887,37,37); //
    AddStaticVehicle(410,-2477.1721,413.1068,27.4356,136.7082,10,1); //
    AddStaticVehicle(575,-2500.7402,366.3426,27.3744,61.8277,31,64); //
    AddStaticVehicle(526,-2510.4785,343.4210,27.3024,244.2330,21,1); //
    AddStaticVehicle(587,-2523.9490,334.2809,34.8429,251.4482,53,1); //
    AddStaticVehicle(412,-2518.2317,306.2414,34.9455,70.1292,10,8); //
    //REMOVE THESE!!!!
    AddStaticVehicle(411,-1419.9149,-297.4815,13.7989,47.7547,1,0); //
	return 1;
}
//CAR SPAWNS//

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 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 OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		// Do something here
		return 1;
	}
	return 0;
}

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 OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
	return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
	return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
	return 1;
}

public OnPlayerUpdate(playerid)
{
	return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
	return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
	return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}

//THIS FILE IS COPYWRITE OF ORBZGAMING. NOTHING IN HERE CAN AND WILL NOT BE CHANGED BY A THIRD PARTY. IF DONE SO THE SCRIPT HAS THE RIGHT TO BE REVOKED, REMOVING THIS MESSAGE WILL CAUSE THIS SCRIPT ANYTHING THAT IS CHANGED WILL BE REVERTED. FALURE TO DO SO WILL RESULT IN SCRIPT REVOLCTION.
Reply
#2

This feature has bein added since 0.3c the only way u will get bet error is if you compiling with an older version.
Reply
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
This feature has bein added since 0.3c the only way u will get bet error is if you compiling with an older version.
I have 0.3e
Reply
#4

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
This feature has bein added since 0.3c the only way u will get bet error is if you compiling with an older version.
Can you tell me another way then?
Reply
#5

check your a_samp include, or add after all includes in your script this line:
pawn Код:
native  ManualVehicleEngineAndLights();
Reply
#6

Quote:
Originally Posted by CoaPsyFactor
Посмотреть сообщение
check your a_samp include, or add after all includes in your script this line:
pawn Код:
native  ManualVehicleEngineAndLights();
The 'native Manual baldjfldsafjasf' didn't work.
Reply
#7

I have to agree with park4bmx, because you're using the code correctly and the compiler states that the function is undefined. This would mean that you have a version below SA-MP 0.3c or when you run your default pawno application it's executing older includes.

Refer to: https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights

The easiest solution is to download the latest 0.3e pawo/Include/ files and replace your current include files with the latest ones.

Just in case, you may want to download the whole 0.3e server files again, place it into a new folder, and run the pawno application in the pawno/ folder.
Reply
#8

make sure u updated to the lastest version or samp pawno information, because everytime the .exe app updates the pawno files update
Reply
#9

I guess you don't have the 0.3e includes.
Download the server from http://sa-mp.com/download.php and paste your custom files(gm,fs,includes, plugins, scriptfiles, etc) into the new downloaded server. Be sure Not to copy the default includes from your old server directory (a_samp.inc , etc.) Otherwise you'll have the same issue again.
Reply
#10

OMG IT WORKS NOW THANK YOU!

-Jason
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)