SA-MP Forums Archive
Need Help with these errors. - 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)
+--- Thread: Need Help with these errors. (/showthread.php?tid=286507)



Need Help with these errors. - DriftboyZ - 29.09.2011

Not sure why this comming, can someone help me?

Код:
C:\Users\DriftboyZ\Desktop\Scripts\Village Reallife Roleplay\pawno\include\erpPickupStreamer.inc(3) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")
C:\Users\DriftboyZ\Desktop\Scripts\Village Reallife Roleplay\pawno\VR-RP.pwn(23298) : warning 213: tag mismatch
C:\Users\DriftboyZ\Desktop\Scripts\Village Reallife Roleplay\pawno\VR-RP.pwn(23305) : warning 213: tag mismatch
C:\Users\DriftboyZ\Desktop\Scripts\Village Reallife Roleplay\pawno\VR-RP.pwn(41516) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Because of this my script is not running i guess, Its giving some runtime error in script and the Mode on samp its showing " Unknown ". I compiled this script after long time and received this..


Thanks in advance..


Re: Need Help with these errors. - aRoach - 29.09.2011

1. Search in your Gamemode #define MAX_PICKUPS and delete it because you have two of this...
2. Add this at the top of Your Script: #pragma tabsize 0

And for the Others give us the Lines


Re: Need Help with these errors. - [MWR]Blood - 29.09.2011

Quote:
2. Add this at the top of Your Script: #pragma tabsize 0
Better indent your code...
http://forum.sa-mp.com/showthread.ph...ht=indent+code


Re: Need Help with these errors. - DriftboyZ - 29.09.2011

Still the same problem can someone help me please..


Re: Need Help with these errors. - =WoR=Varth - 29.09.2011

Code?


Re: Need Help with these errors. - DriftboyZ - 29.09.2011

I guess i found a fix let me give a try.. but need to ask one thing.

error 017: undefined symbol "OnPlayerPickUpStreamPickup"

Why is this coming up? Even though i checked everything seems fine. This might be the problem.


Re: Need Help with these errors. - [MWR]Blood - 29.09.2011

Dude, stop pasting just the errors, give us the piece of code that causes the error(s)!


Re: Need Help with these errors. - DriftboyZ - 29.09.2011

Well okay, I managed to fix those errors. But the problem i am facing is. That the checkpoints arn't coming for job

Код:
case CHECKPOINT_GARBAGE:
        {
            if(newcar >= 96 && newcar <= 101)
            {
            	if(GarbageRoute[playerid] > 0)
            	{
		        	gPlayerCheckpointStatus[playerid] = CHECKPOINT_GARBAGE;
		        	GarbageRoute[playerid] += 1;
		        	if(GarbageRoute[playerid] != 11)
		        	{
		        	    DestroyPlayerObject(playerid,TrashObject[playerid]);
		        	    SetTimerEx("NextGarbage", 5000, false, "i", playerid);
					    TogglePlayerControllable(playerid,false);
		        	    SendClientMessage(playerid,COLOR_WHITE,"Picking trash up...");
		        	}
		        	if(GarbageRoute[playerid] == 2) { SetPlayerTrash(playerid,-2091.1165,-2348.4888,30.6250,187.187,5.0); }
		        	else if(GarbageRoute[playerid] == 3) { SetPlayerTrash(playerid,-2107.2170,-2420.1682,30.3521,169.9073,5.0); } // garbage job, 3
		        	else if(GarbageRoute[playerid] == 4) { SetPlayerTrash(playerid,-2106.1995,-2453.8779,30.3523,169.4444,5.0); } // garbage job, 4
		        	else if(GarbageRoute[playerid] == 5) { SetPlayerTrash(playerid,-2101.6055,-2479.4348,30.6250,118.3983,5.0); } // garbage job, 5
		        	else if(GarbageRoute[playerid] == 6) { SetPlayerTrash(playerid,-2087.2285,-2505.5369,30.3555,79.7682,5.0); } // garbage job, 6
		        	else if(GarbageRoute[playerid] == 7) { SetPlayerTrash(playerid,-2143.3745,-2463.6733,30.3520,76.5191,5.0); } // garbage job, 7
		        	else if(GarbageRoute[playerid] == 8) { SetPlayerTrash(playerid,-2201.3821,-2430.7922,30.3556,91.0389,5.0); } // garbage job, 8
		        	else if(GarbageRoute[playerid] == 9) { SetPlayerTrash(playerid,-2134.7563,-2259.9565,30.3593,115.9750,5.0); } // garbage job, 9
		        	else if(GarbageRoute[playerid] == 10) { SetPlayerTrash(playerid,-1851.0509,-1678.6790,21.4835,357.3505,5.0); } // garbage job, 10
		        	else if(GarbageRoute[playerid] == 11)
		        	{
		            	SendClientMessage(playerid,COLOR_BLUE,"[INFO]: You have completed Your Garbage Route.");
                        new cashearned;
						cashearned = PlayerInfo[playerid][pLevel]*1100;
						if (FamilyInfo[3][FamilyMoney] <= cashearned){ cashearned = FamilyInfo[3][FamilyMoney];}
		                FamilyInfo[3][FamilyMoney] -= cashearned;
		                if(cashearned == 0){SendClientMessage(playerid, COLOR_LIGHTBLUE, "The government has no money to pay you for your job");}
						GivePlayerPCash(playerid,cashearned);
		            	GarbageRoute[playerid] = 0;
		            	DisablePlayerCheckpoint(playerid);
		            	gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
		            	new string[256];
		            	format(string, sizeof(string), "You earned $%d", cashearned);
						SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
		            	SetVehicleToRespawn(GetPlayerVehicleID(playerid));
		            	JobDelay[playerid] = 150;
		            	GameDrawForPlayer(playerid,"~w~Mission ~g~Passed",2000);
		        	}
            	}
            }
            else
			{
				SendClientMessage(playerid,COLOR_YELLOW,"You are not in a Garbage Truck.");
			}
        }
This is code for garbage job. When i sit in the checpoint should come but its not. I don't know why nothing happens.


Re: Need Help with these errors. - DriftboyZ - 02.10.2011

Nvm, I fixed all those...