CP error
#1

SEE LAST COMMENT


[22:49:12] *** CreateDynamicCP: Expecting 8 parameter(s), but found 9 (ITS THE DM ONE)

Код:
	Checkpoint[81] = CreateDynamicCP(246.4451,107.2963,1003.2188,2,-1,10,-1,100);//Alcatraz Exit
	Checkpoint[82] = CreateDynamicCP(1537.7087,-1639.0579,13.5469,3,-1,-1,-1,100);//Detained players drop off
	Checkpoint[83] = CreateDynamicCP(2499.9570,2773.2375,10.8203,90.0445);//DM Out
	SexShop[2] = CreateDynamicCP(-106.2691,-10.6185,1000.7188,3,0,3,-1,100);//Sex Shops Robbery CP
Код:
      if(checkpointid == Checkpoint[83])//DM Out
   {
      SetPlayerWantedLevel(playerid, 0);
	  SetPlayerPos(playerid,2458.4380,2770.2036,10.6719,136.5085);
	  SetCameraBehindPlayer(playerid);
	  return 1;
   }
streamer plugin and include is the newest one
Reply
#2

You haven't filled it out correctly, you got X,Y,Z and facing angle for some reason inside CreateDynamicCP.
pawn Код:
2499.9570, 2773.2375, 10.8203, 90.0445
How to use dynamic CPs:
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
A wild guess is that your checkpoint should look like this:
pawn Код:
Checkpoint[83] = CreateDynamicCP(2499.9570,2773.2375,10.8203, 2, -1, -1, -1, 100);//DM Out
//CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Also change your bottom code to this:
pawn Код:
if(checkpointid == Checkpoint[83])//DM Out
   {
      SetPlayerWantedLevel(playerid, 0);
      SetPlayerPos(playerid,2458.4380,2770.2036,10.6719); // X,Y,Z, (facingangle is then used below)
SetPlayerFacingAngle(playerid, 136.5085); //<---
      SetCameraBehindPlayer(playerid);
      return 1;
   }
Reply
#3

Well i got it to work now ingame my 24/7 menu pops up how to fix that :P
Reply
#4

Quote:
Originally Posted by Thoma
Посмотреть сообщение
Well i got it to work now ingame my 24/7 menu pops up how to fix that :P
Does it pop up everytime you enter a checkpoint or is it just random?
Reply
#5

just that new checkpoint i added and the new 24/7 cps menu popup but the robbery select wont work now for the new 24/7 cps i added
Reply
#6

-removed
Reply
#7

You're only allowed to bump once every 24 hours.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)