Streamer Checkpoint Issues
#1

Hello guys, I've been trying to solve this problem, it seems I can't solve it and I don't know what's the solution. for some reason the checkpoint won't show up.


Global Variable
pawn Код:
eCheckpoints[13]
Callback OnGameModeInit
pawn Код:
public OnGameModeInit()
{
    LoadDynamicCheckpoints();
    return 1;
}
Loading All Dynamic Checkpoints
pawn Код:
stock LoadDynamicCheckpoints()
{
    eCheckpoints[0] = CreateDynamicCP(2316.6204,-9.9606,26.7422, 2.5, -1, -1, -1, 5.0);//Bank (Robbery)
    eCheckpoints[1] = CreateDynamicCP(371.4173,-6.5080,1001.8589, 2.5, -1, -1, -1, 5.0);//Cluckin Bell (Robbery)
    eCheckpoints[2] = CreateDynamicCP(288.1011,-109.1613,1001.5156, 2.5, -1, -1, -1, 5.0);//Ammunation (Robbery)
    eCheckpoints[3] = CreateDynamicCP(379.0900,-59.5578,1001.5078, 2.5, -1, -1, -1, 25.0);//BurgerShot (Robbery)
    eCheckpoints[4] = CreateDynamicCP(1751.157226,-1943.755493,13.569130, 2.5, -1, -1, -1, 5.0);//Train Station (Robbery)
    eCheckpoints[5] = CreateDynamicCP(-27.9365,-89.8221,1003.5469, 2.5, -1, -1, -1, 5.0);//24/7 (Robbery)
    eCheckpoints[6] = CreateDynamicCP(207.6706,-100.4456,1005.2578, 2.5, -1, -1, -1, 5.0);//Binco (Robbery)
    eCheckpoints[7] = CreateDynamicCP(-201.9816,-6.7806,1002.2734, 2.5, -1, -1, -1, 5.0);//Tatto (Robbery)
    eCheckpoints[8] = CreateDynamicCP(421.7499,-77.9992,1001.8047, 2.5, -1, -1, -1, 5.0);//Barbers (Robbery)
    eCheckpoints[9] = CreateDynamicCP(768.1869,-36.7178,1000.6865 , 2.5, -1, -1, -1, 5.0);//GYM (Robbery)
    eCheckpoints[10] = CreateDynamicCP(376.1315,-114.9049,1001.4922, 2.5, -1, -1, -1, 5.0);//Well stack pizza (Robbery)
    eCheckpoints[11] = CreateDynamicCP(1964.1036,-350.3213,1097.197, 2.5, -1, -1, -1, 5.0);//Church (Robbery)
    new
        string[ 43 ]
    ;
    format(string, sizeof(string), "Number of Dynamic Checkpoint Loaded: %i", CountDynamicCPs());
    print(string);
}
Reply
#2

That's very strange, I just threw it into my script there and it works.

Does the string get printed out in the server window?
Reply
#3

The Checkpoint works, it shows the red square marker on the minimap but you can't see the red circle bit so it notify the player where the checkpoint is, I know this is very strange and this is the first time happened to me

EDIT: Yes, ofcourse the string gets printed
Reply
#4

So you can see the mini-map icon but you can't see the actual in-game checkpoint?

EDIT: Just tested it again and it works perfectly for me :S

EDIT2: I have to head out but if you don't get this fixed, I'll try help later.
Reply
#5

Quote:
Originally Posted by EiresJason
Посмотреть сообщение
So you can see the mini-map icon but you can't see the actual in-game checkpoint?
Yes, that's what I meant. I don't have any default checkpoint or SetPlayerShopName, I only have one checkpoint inside that interior.

EDIT: I removed the callback OnPlayerEnterCheckpoint and OnPlayerLeaveCheckpoint which I didn't know it is needed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)