Tunesetup Problem
#1

Hey guys i getting 6 errors on this fs ..

Код:
C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(35) : error 029: invalid expression, assumed zero
C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(42) : warning 217: loose indentation
C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(42) : error 017: undefined symbol "car"
C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(43) : error 017: undefined symbol "CarInfo"
C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(43) : error 017: undefined symbol "car"
C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(43) : error 029: invalid expression, assumed zero
C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(43) : fatal error 107: too many error messages on one line
and here is a lines ..

Код:
if(dialogid == DIALOG_PAINTJOB)
                {
                    if(response)
                    {
                                if(listitem == 0)
                                {
                                new Parray[] = {0,1,2};
                                        ChangeVehiclePaintjob(car, Parray[listitem]);
                                        CarInfo[car][cComponent14] = Parray[listitem];
                                        PlayerInfo[playerid][pPaintJob1] = Parray[listitem];
                                        ZacuvanPaintJob1(car);
                                        SendClientMessage(playerid, COLOR_WHITE, "{6EF83C}INFO:{FFFFFF}Uspesno ja zacuvavte Komponentata PaintJob, Broj: 1");
                                }
Reply
#2

Can You Show Us The "car" and "CarInfo" Defines that you have If you have them?
Reply
#3

Hello,

In the line 42 and 43 : You forget a variable "car" and "CarInfo".
For error identitation, Your code is decaller.
For fatal Error 107 : You have too many parameters in your code, which gives the compiliateur an error.
Reply
#4

and how to fix the first error ?
Reply
#5

Ignore loose indentation warn.
Reply
#6

C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(42) : error 017: undefined symbol "car"
C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(43) : error 017: undefined symbol "CarInfo"
C:\Documents and Settings\BLABLA\Desktop\Vtune.pwn(43) : error 017: undefined symbol "car"

this errors how to fix ?
Reply
#7

At the top of your script, you put the missing variables and your enum.
Reply
#8

Код:
C:\Documents and Settings\GORAN\Desktop\Miki\DreamCity\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(432) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(762) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(768) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(785) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(791) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(808) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(814) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(831) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(837) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(854) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(860) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(877) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(883) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(900) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(906) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(923) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(929) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(946) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(952) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(969) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(975) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(992) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(998) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(1015) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(1021) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(1038) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GORAN\Desktop\Vtune.pwn(1044) : error 079: inconsistent return types (array & non-array)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
LINES :

Код:
		if(dialogid == 1301)
		{
			if(response)
			{
			    new car = GetPlayerVehicleID(playerid);
			    if(listitem == 0)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 0);
           			new component = CarInfo[car][cComponent0];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent0] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Spoiler");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already an spoiler, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have an Spoiler to Save!");
						return 1;
					}
				}
				if(listitem == 1)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 1);
           			new component = CarInfo[car][cComponent1];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent1] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Hood");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already a hood, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have a hood to Save!");
						return 1;
					}
				}
				if(listitem == 2)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 2);
           			new component = CarInfo[car][cComponent2];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent2] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Roof");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already a roof, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have a Roof to Save!");
						return 1;
					}
				}
				if(listitem == 3)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 3);
           			new component = CarInfo[car][cComponent3];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent0] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Sideskirt");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already an Sideskirt, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have a Sideskirt to Save!");
						return 1;
					}
				}
				if(listitem == 4)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 4);
           			new component = CarInfo[car][cComponent4];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent4] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Lamps");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already Lamps, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have Lamps to Save!");
						return 1;
					}
				}
				if(listitem == 5)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 5);
           			new component = CarInfo[car][cComponent5];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent5] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Nitro");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already a Nitro, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have Nitro to Save!");
						return 1;
					}
				}
				if(listitem == 6)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 6);
           			new component = CarInfo[car][cComponent6];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent6] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Exhausts");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already an exhausts, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have Exhausts to Save!");
						return 1;
					}
				}
				if(listitem == 7)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 7);
           			new component = CarInfo[car][cComponent7];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent7] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Wheels");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already Wheels, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have Wheels to Save!");
						return 1;
					}
				}
				if(listitem == 8)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 8);
           			new component = CarInfo[car][cComponent8];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent8] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Stereo");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already an Stereo, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have a Stereo to Save!");
						return 1;
					}
				}
				if(listitem == 9)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 9);
           			new component = CarInfo[car][cComponent9];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent9] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Hydraulics");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already Hydraulics, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have Hydraulics to Save!");
						return 1;
					}
				}
				if(listitem == 10)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 10);
           			new component = CarInfo[car][cComponent10];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent10] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Front Bumper");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already a Front Bumper, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have a Front Bumper to Save!");
						return 1;
					}
				}
				if(listitem == 11)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 11);
           			new component = CarInfo[car][cComponent11];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent11] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Rear Bumper");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already a Rear Bumper, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have a Rear Bumper to Save!");
						return 1;
					}
				}
				if(listitem == 12)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 12);
           			new component = CarInfo[car][cComponent12];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent12] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Right Vent");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already a Right Vent, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have a Right Vent to Save!");
						return 1;
					}
				}
				if(listitem == 13)
			    {
           			new component2 = GetVehicleComponentInSlot(car, 13);
           			new component = CarInfo[car][cComponent13];
           			if(component2 != 0)
           			{
				        if(component == 0)
				        {
				            CarInfo[car][cComponent13] = component2;
				            SendClientMessage(playerid, 0xFFFFFF96,"* You have Saved your Left vent");
						}
						else
						{
						    SendClientMessage(playerid, 0xFFFFFF96,"* You have already a Left Vent, use the Clear option first!");
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, 0xFFFFFF96,"* You don't have a Left Vent to Save!");
						return 1;
					}
				}
			}
		}
Reply
#9

Quote:

C:\Documents and Settings\GORAN\Desktop\Miki\DreamCity\pawno\includ e\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level

Your include has been broken.
Reply
#10

can u give me link to download new ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)