SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/07/2016, 01:20 PM   #1
majesticz03
Little Clucker
 
Join Date: Jun 2016
Posts: 17
Reputation: 0
Default [HELP]error 017: undefined symbol SOLVED

C:\Users\Nuh\Desktop\hihaa\gamemodes\yerp.pwn(8433 6) : warning 217: loose indentation
C:\Users\Nuh\Desktop\hihaa\gamemodes\yerp.pwn(8433 6) : error 017: undefined symbol "arrVehParams"
C:\Users\Nuh\Desktop\hihaa\gamemodes\yerp.pwn(8433 6) : warning 215: expression has no effect
C:\Users\Nuh\Desktop\hihaa\gamemodes\yerp.pwn(8433 6) : error 001: expected token: ";", but found "]"
C:\Users\Nuh\Desktop\hihaa\gamemodes\yerp.pwn(8433 6) : error 029: invalid expression, assumed zero
C:\Users\Nuh\Desktop\hihaa\gamemodes\yerp.pwn(8433 6) : fatal error 107: too many error messages on one line




Code:
Timer:Serverm[400]()
{
    new
        Float: fExpHealth,
        Float: fCurrentSpeed,
		Float: fVehicleHealth,
		iVehicle,
		arrDamage[4],
		szSpeed[42];
		arrVehParams[7];

	foreach(Player, i)
	{
	    if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
		{
		    iVehicle = GetPlayerVehicleID(i);
		    GetVehicleHealth(iVehicle, fVehicleHealth);
			if(arr_Towing[i] != INVALID_VEHICLE_ID) {
				if(GetVehicleModel(arr_Towing[i]) && IsVehicleStreamedIn(arr_Towing[i], i)) AttachTrailerToVehicle(arr_Towing[i], GetPlayerVehicleID(i));
				else arr_Towing[i] = INVALID_VEHICLE_ID;
			}
            fCurrentSpeed = player_get_speed(i);
            fVehHealth[i] = fVehicleHealth;
            if(fVehicleHealth < 350.0)
			{
 				SetVehicleHealth(iVehicle, 251.0);
    			GetVehicleParamsEx(iVehicle, arrVehParams[0], arrVehParams[1], arrVehParams[2], arrVehParams[3], arrVehParams[4], arrVehParams[5], arrVehParams[6]); <<<<Line 84336
				if(arrVehParams[0] == VEHICLE_PARAMS_ON) SetVehicleParamsEx(iVehicle,VEHICLE_PARAMS_OFF, arrVehParams[1], arrVehParams[2], arrVehParams[3], arrVehParams[4], arrVehParams[5], arrVehParams[6]);
				GameTextForPlayer(i, "~r~Vehicle Engine Wrecked!", 2500, 3);
				arr_Engine{iVehicle} = 0;
			}
			if(PlayerInfo[i][pSpeedo] != 0 && FindTimePoints[i] == 0 && arr_Engine{iVehicle} == 1) {
				format(szSpeed, sizeof(szSpeed),"~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~%.0f MPH", fCurrentSpeed);
				GameTextForPlayer(i, szSpeed, 1500, 3);
			}
  			for(new x = 0; x < sizeof(SpikeStrips); ++x) if(SpikeStrips[x][sX] != 0 && GetVehicleDistanceFromPoint(iVehicle, SpikeStrips[x][sX], SpikeStrips[x][sY], SpikeStrips[x][sZ]) <= 3.5) {
				GetVehicleDamageStatus(iVehicle, arrDamage[0], arrDamage[1], arrDamage[2], arrDamage[3]);
				arrDamage[3] = encode_tires(1, 1, 1, 1);
				UpdateVehicleDamageStatus(iVehicle, arrDamage[0], arrDamage[1], arrDamage[2], arrDamage[3]);
	   		}
		}

Last edited by majesticz03; 04/07/2016 at 05:38 PM.
majesticz03 is offline   Reply With Quote
Old 04/07/2016, 03:32 PM   #2
luke49
Big Clucker
 
Join Date: May 2016
Posts: 133
Reputation: 5
Default Re: [HELP]error 017: undefined symbol "arrVehParams"

PHP Code:
szSpeed[42],
arrVehParams[7]; 
luke49 is offline   Reply With Quote
Old 04/07/2016, 05:37 PM   #3
majesticz03
Little Clucker
 
Join Date: Jun 2016
Posts: 17
Reputation: 0
Default Re: [HELP]error 017: undefined symbol "arrVehParams"

Quote:
Originally Posted by luke49 View Post
PHP Code:
szSpeed[42],
arrVehParams[7]; 
Tnx Worked
majesticz03 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"error 017: undefined symbol "vehicleid"" problem. OMonger Scripting Help 5 31/01/2015 12:55 PM
error 017: undefined symbol "ReadPlayer" and error 017: undefined symbol "WritePlayer" brandypol Scripting Help 8 26/08/2014 06:16 PM
Need help with the error "undefined symbol "INI_Load" Krakuski Scripting Help 2 19/08/2013 02:10 AM
5 Dialog errors - Input line too long, undefined symbol "t","is" and "only" Deal-or-die Scripting Help 6 01/05/2012 12:08 PM


All times are GMT. The time now is 06:20 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.