SA-MP Forums Archive
Checkpoint sizes do not "update" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Checkpoint sizes do not "update" (/showthread.php?tid=628253)



Checkpoint sizes do not "update" - Kla - 08.02.2017

Hi, I have recently come by a problem. I was creating a job for my RPG gamemode, and I have to use checkpoints.

What happens:
I create at first a checkpoint with size 3.5, and in OnPlayerEnterCheckpoint, I create one with size 1.0. The second checkpoint always keeps the size of the first (ONLY THE CILINDER, ONPLAYERENTERCHECKPOINT IS CALLED FOR THE CORRECT SIZE).

Some code:
Код HTML:
SetPlayerCheckpointEx(playerid, dumpsterInfo[JobObject[playerid]][dumpster_X2], dumpsterInfo[JobObject[playerid]][dumpster_Y2], dumpsterInfo[JobObject[playerid]][dumpster_Z2], 1.0);
Код HTML:
public SetPlayerCheckpointEx(playerid, Float: cpx, Float: cpy, Float: cpz, Float: range)
{
	DisablePlayerCheckpoint(playerid);
	CPX[playerid] = cpx;
	CPY[playerid] = cpy;
	CPZ[playerid] = cpz;
	SetPlayerCheckpoint(playerid, cpx, cpy, cpz, range);
	CPH[playerid] = 1;
	return 1;
}



Respuesta: Checkpoint sizes do not "update" - HidroDF - 10.02.2017

Check the range you are sending.