Dynamic CP
#1

Hey,

Probably a very nub mistake here but
Код:
PlaneCheck[playerid][0] = CreateDynamicCP(-180.1399,-2571.9312,36.1735, 2, 0, 0, -1, 300, 100, 0);
Doesn't seem to set a checkpoint.

Thnx in advance
Reply
#2

Код:
native STREAMER_TAG_CP CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_CP_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
=========
Reply
#3

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Код:
native STREAMER_TAG_CP CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_CP_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
see that, you fucked up the parameters, change the 2 to -1 unless if you only want it to show in virtual world 2, the 0 after that is the interior id so its only gonna be at interior 0, change the 0 after it to -1 unless if you only want it to show for playerid 0 , change the -1 to the stream distance probably you meant that to be 300? then read the rest of the params and debate on it the 300 and 100 and the 0 (priority).
The 2 = Float: size :/
Reply
#4

Haven't really worked with checkpoints a lot.
But pretty sure this is the issue -

Код:
PlaneCheck[playerid][0] = CreateDynamicCP(-180.1399,-2571.9312,36.1735, 2, 0, 0, -1, 300, 100, 0);
your -1 is the playerid arguement. I think you need to change it to playerid
Reply
#5

Quote:
Originally Posted by Ritzy
Посмотреть сообщение
Haven't really worked with checkpoints a lot.
But pretty sure this is the issue -

Код:
PlaneCheck[playerid][0] = CreateDynamicCP(-180.1399,-2571.9312,36.1735, 2, 0, 0, -1, 300, 100, 0);
your -1 is the playerid arguement. I think you need to change it to playerid
Already thought that might be it but to no avail
Reply
#6

Owh. Weird. >.> Are you sure those coordinates are fine? Try at some other coords with same setting >.>
Reply
#7

Tried it on a flat surface like a road in ls but nothing :/
Reply
#8

Owh shit i didn't notice that lol mb, well... are you sure that you're at world id 0 when you're at the checkpoint? and interior id 0 too?
Reply
#9

The areaid parameter is set to 100.

This will enable the checkpoint only for players that are in area ID 100, which is probably wrong in this case.
Set it to -1 or leave it away completely (the next parameter can also be left out as it's optional and not required here).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)