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"} };
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; }
Okay so I'm not sure will this fix anything, but try to replace all "float" with "Float". It might be an issue with tags, I'm not sure but try it anyways.
This happened to me once and the problem was too low Z coordinate from the actual position so try to increase it also. |