CreateDynamicCP Problem
#1

Alright, so, I'll cut straight to the issue here. I've been making a /work system for my GM, and this is what I have for it thus far:

Code:
new tfCPs[][] = {
	{float:1727.6549, float:976.9305, float:11.8384, "Las Venturas Freight Depot"},
	{float:1663.4675, float:1045.9678, float:11.8445, "Las Venturas Freight Depot"},
	{float:2200.9333, float:-2234.3250, float:14.5604, "Los Santos Freight Depot"},
	{float:2169.7854, float:-2283.0378, float:14.4975, "Los Santos Freight Depot"},
	{float:-1843.5630, float:117.4490, float:16.1308, "San Fierro Freight Depot"},
	{float:-499.6371, float:-533.8455, float:26.5370, "Fallen Tree Freight Depot"},
	{float:65.4865, float:-279.0269, float:2.5962, "Blueberry Freight Depot"},
	{float:2811.5369, float:968.3643, float:11.7686, "Rockshore East Freight Depot"},
	{float:2850.6057, float:929.6235, float:11.7607, "Rockshore East Freight Depot"},
	{float:-2262.2161, float:2301.7561, float:5.8391, "Bayside Marina Freight Depot"},
	{float:-2093.3074, float:-2241.3704, float:31.8672, "Angel Pine Freight Depot"}
};
And

Code:
CMD:work(playerid,params[])
{
	if(!IsPlayerInAnyVehicle(playerid)) return Error(playerid, "You must be in some sort of vehicle to use this command!");
	new vMod;
	vMod = GetVehicleModel(GetPlayerVehicleID(playerid));
	switch(vMod) {
		case 578, 455, 403, 433, 514, 515, 407, 544, 427: {
			format(pMissionType[playerid], 30, "Trucking");
			new rNum = random(sizeof(tfCPs));
			WorkCP[playerid] = CreateDynamicCP(tfCPs[rNum][0], tfCPs[rNum][1], tfCPs[rNum][2], 10, -1, -1, playerid, 99999999);
			pLastCP[playerid] = rNum;
			SCFM(playerid, SCM_C_YELLOW, "Collect freight at %s!", tfCPs[rNum][3]);
		} default: return Error(playerid, "Your vehicle is not applicable to working in!");
	} return 1;
}
There's more, but this is what's applicable to my problem.

This script works fine, up until it creates the checkpoint. The checkpoint refuses to show up on my map ingame, and I know it's not an issue with the streamer plugin, because if I put a checkpoint in there to go to 0, 0, 0 as coordinates, that one displays fine, so I'm a bit lost now...

What's causing this checkpoint in particular to refuse to show, and how can I fix it?

Thanks, Zon.
Reply


Messages In This Thread
CreateDynamicCP Problem - by Zonoya - 03.08.2015, 12:46
Re: CreateDynamicCP Problem - by dominik523 - 03.08.2015, 12:48
Re: CreateDynamicCP Problem - by Zonoya - 03.08.2015, 12:52
Re: CreateDynamicCP Problem - by Zonoya - 03.08.2015, 17:01

Forum Jump:


Users browsing this thread: 3 Guest(s)