CreateDynamicCP
#1

Hi !!

pawn Код:
CPTEST = CreateDynamicCP(1182.5090,-1303.7557,-32.3814, 1, -1, -1, -1, 2);


forward OnPlayerEnterDynamicCheckpoint(playerid, streamid);
public OnPlayerEnterDynamicCheckpoint(playerid, streamid)
{
    if(streamid == CPTEST)
    {
        SendClientMessage(playerid, 0,"It's work");
    }
    return 1;
}
But in game no send any message !

Reply
#2

That isn't the callback for streamer! The correct callback is:
pawn Код:
public OnPlayerEnterDynamicCP(playerid, cpid)
The parameters could be wrong, but look up the list of callbacks in the streamer TOPIC.
Reply
#3

Hm from what I see I think you f7 x 2, otherwise, change the streamer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)