Need Help with these errors.
#8

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.
Reply


Messages In This Thread
Need Help with these errors. - by DriftboyZ - 29.09.2011, 09:00
Re: Need Help with these errors. - by aRoach - 29.09.2011, 09:03
Re: Need Help with these errors. - by [MWR]Blood - 29.09.2011, 10:08
Re: Need Help with these errors. - by DriftboyZ - 29.09.2011, 17:41
Re: Need Help with these errors. - by =WoR=Varth - 29.09.2011, 18:09
Re: Need Help with these errors. - by DriftboyZ - 29.09.2011, 18:13
Re: Need Help with these errors. - by [MWR]Blood - 29.09.2011, 18:27
Re: Need Help with these errors. - by DriftboyZ - 29.09.2011, 18:45
Re: Need Help with these errors. - by DriftboyZ - 02.10.2011, 10:20

Forum Jump:


Users browsing this thread: 1 Guest(s)