CreateDynamicCP Help
#1

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);
Reply
#2

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
Reply
#3

No.
CP[ALHAMBRA] is a Dyanmic Checkpoint that i created for capturing turf.
But, it's not created at all in game.
Reply
#4

Anyone?
Reply
#5

Can you test with a pickup instead of a checkpoint?
Reply
#6

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.
Reply
#7

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.
Reply
#8

Still, it's not working.
Is there anything wrong with the code?
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)