Checkpoint sizes do not "update"
#1

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

Check the range you are sending.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)