Posts: 438
Threads: 54
Joined: Mar 2013
The checkpoint that i created didn't show up.
Here's the code.
pawn Code:
Zone[ALHAMBRA] = CreateZone(1807, -1752.5, 1952, -1608.5);
CreateZoneBorders(Zone[ALHAMBRA]);
CP[ALHAMBRA] = CreateDynamicCP(-1835.8862,-1682.5370,13.3710, 3, 0,0,-1,100.0);
Posts: 93
Threads: 25
Joined: Jan 2016
Reputation:
0
Put these codes you wrote about on OnGameModeInit
And you will have to put the lines i give you below in your OnPlayerConnect
GangZoneShowForPlayer(playerid, Zone[ALHAMBRA], CP[ALHAMBRA]);
that will show the player the gang zone you made while he is connecting the server
Posts: 438
Threads: 54
Joined: Mar 2013
No.
CP[ALHAMBRA] is a Dyanmic Checkpoint that i created for capturing turf.
But, it's not created at all in game.
Posts: 438
Threads: 54
Joined: Mar 2013
Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
Can you test with a pickup instead of a checkpoint?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Use Streamer_Update if you create it on the fly in front of a player otherwise it won't show up until the player leaves and then re-enters the area.
Posts: 1,506
Threads: 13
Joined: Jun 2015
Did you compile and replace the script? Try printing out something beneath the creation of the dynamic CP. Try creating another checkpoint without defining it to a variable. This can help you in identifying your problem.
Posts: 438
Threads: 54
Joined: Mar 2013
Still, it's not working.
Is there anything wrong with the code?
Posts: 156
Threads: 0
Joined: Jun 2016
Make sure, you don't have any other checkpoint already created, if else destroy it. And also importantly make sure, the player interior ID, world IDs are equal to the checkpoint.
Posts: 156
Threads: 0
Joined: Jun 2016
As a last resort you may need to try creating a pickup instead of CP. And do you mind posting a partial top and bottom lines of those code. Not sure if any conflicts with other codes.