Checkpoint not showing
#1

Hello i have scripted a trucking mission everything works fine a truck and a trialer will be created i also get message that the mission is started:

PHP код:
stock TruckingMission(playerid)
{
    
MissionStatus[playerid] = 1;
    new 
MisRand random(sizeof(MisLocations));
    new 
LoadText[128], Float:xFloat:yFloat:z;
    
MisLocations[MisRand][LoadX];
    
MisLocations[MisRand][LoadY];
    
MisLocations[MisRand][LoadZ];
    
unx[playerid] = MisLocations[MisRand][UnloadX];
    
uny[playerid] = MisLocations[MisRand][UnloadY];
    
unz[playerid] = MisLocations[MisRand][UnloadZ];
    
iPay[playerid] = MisLocations[MisRand][Pay];
    
MissionCP[playerid] = CreateDynamicCP(xyz3.0, -1, -1playerid100.0);
    
DestroyVehicle(MissionVehicle[playerid]);
    
MissionVehicle[playerid] = CreateVehicle(4031524.0280,14.6346,24.1406,90.2859, -1, -1, -1);
    
PutPlayerInVehicle(playeridMissionVehicle[playerid], 0);
    
DestroyVehicle(MissionTrailer[playerid]);
    
MissionTrailer[playerid] = CreateVehicle(4501524.0280,14.6346,24.1406,92.8547, -1, -1, -1);
    
AttachTrailerToVehicle(MissionTrailer[playerid], MissionVehicle[playerid]);
    
format(LoadText128"%s",MisLocations[MisRand][LoadName]);
    
SendClientMessage(playerid, -1"Mission:");
    
SendClientMessage(playerid, -1"_____________________");
    
SendClientMessage(playerid, -1"");
    
SendClientMessage(playerid0xFFFFFFFFLoadText);
    
SendClientMessage(playerid, -1"_____________________");

The problem is checkpoint is not creating

btw i followed this tutorial:
http://forum.sa-mp.com/showthread.ph...hlight=Mission

PS. i only replaced ID into MisID

Quote:
Originally Posted by Jack_Rocker
Посмотреть сообщение
- Step 4:
Now we will create an enumerator. This is where you create an array.
pawn Код:
enum MisLocationsEnum
{
    ID,
    LoadName[128],
    Float:LoadX,
    Float:LoadY,
    Float:LoadZ,
    Float:UnloadX,
    Float:UnloadY,
    Float:UnloadZ,
    Pay
}
Reply
#2

Try SetPlayerCheckpoint??
Reply
#3

i tried its the same

is that possible that these cords not working?


Код:
    x = MisLocations[MisRand][LoadX];
    y = MisLocations[MisRand][LoadY];
    z = MisLocations[MisRand][LoadZ];
Reply
#4

i found the problem i have one more question how can i set checkpoint distance to unlimited so that i can see the checkpoint as far as i can
Reply
#5

Set drawdistance to 2000 - 3000.
Try this though, should work.
PHP код:
stock TruckingMission(playerid)
{
    
MissionStatus[playerid] = 1;
    new 
MisRand random(sizeof(MisLocations));
    new 
LoadText[128];
    
unx[playerid] = MisLocations[MisRand][UnloadX];
    
uny[playerid] = MisLocations[MisRand][UnloadY];
    
unz[playerid] = MisLocations[MisRand][UnloadZ];
    
iPay[playerid] = MisLocations[MisRand][Pay]
    
MissionCP[playerid] = CreateDynamicCP(MisLocations[MisRand][LoadX], MisLocations[MisRand][LoadY], MisLocations[MisRand][LoadZ], 3.0,  -1, -1playerid4000.0);
    
DestroyVehicle(MissionVehicle[playerid]);
    
MissionVehicle[playerid] = CreateVehicle(4031524.0280,14.6346,24.1406,90.2859, -1, -1, -1);
    
PutPlayerInVehicle(playeridMissionVehicle[playerid], 0);
    
DestroyVehicle(MissionTrailer[playerid]);
    
MissionTrailer[playerid] = CreateVehicle(4501524.0280,14.6346,24.1406,92.8547, -1, -1, -1);
    
AttachTrailerToVehicle(MissionTrailer[playerid], MissionVehicle[playerid]);
    
format(LoadText128"%s",MisLocations[MisRand][LoadName]);
    
SendClientMessage(playerid, -1"Mission:");
    
SendClientMessage(playerid, -1"_____________________");
    
SendClientMessage(playerid, -1"");
    
SendClientMessage(playerid0xFFFFFFFFLoadText);
    
SendClientMessage(playerid, -1"_____________________");

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)