CreateDynamicCP
#1

why CreateDynamicCP doesn't work fine with me?!
Quote:

CreateDynamicCP(215.4474,1822.8730,6.4141, 5, -1, -1, -1, 100);

when i join i cant find the checkpoint...
Reply
#2

You have to toggle the checkpoint using
Code:
native TogglePlayerDynamicCP(playerid, STREAMER_TAG_CP checkpointid, toggle);
Streamer topic with reference
Reply
#3

i've put it at the end of the gm and i got error that it is already defineded
Quote:

symbol already defined: "TogglePlayerDynamicCP"

Reply
#4

You shouldn't copy paste the actual code I put there, it was to show which function you should use. If you want to show the CP when you spawn, you should use the function under OnPlayerSpawn.
Reply
#5

Quote:

CP[Area51] = CreateDynamicCP(215.4474,1822.8730,6.4141, 5, -1, -1, -1, 100);
TogglePlayerDynamicCP(playerid, Area51, 1);

like this?!! nope,not working
Reply
#6

bump
Reply
#7

Use OnPlayerEnterDynamicCP and SetPlayerCheckpoint, as SetPlayerCheckpoint still has to be used.
Reply
#8

i wanna use CreateDynamicCP not setplayercheckpoint
Reply
#9

Code:
CreateDynamicCP(215.4474,1822.8730,6.4141, 5, 0, -1, playerid, 100);
place this under OnPlayerConnect
Reply
#10

Look at the checkpointID you gave to the toggle function. It is not the same as the one you created above it. The one you created is
Code:
CP[Area51]
And yet you use

Code:
Area51
inside the toggle function. Should be like this
Code:
CP[Area51] = CreateDynamicCP(215.4474,1822.8730,6.4141, 5, -1, -1, -1, 100);
TogglePlayerDynamicCP(playerid, CP[Area51], 1);
Always be sure to double check these things.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)