Help on creating a checkpoint - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help on creating a checkpoint (
/showthread.php?tid=293091)
Help on creating a checkpoint -
Super_Panda - 26.10.2011
set the checkpoint here
pawn Код:
1365.3500,-1279.0601,13.5469
when the player is inside, dont disable it, and respawn player.
Re: Help on creating a checkpoint -
jaydon - 26.10.2011
pawn Код:
public OnPlayerSpawn(playerid)
{ //3.0 is the size of the checkpoint
SetPlayerCheckpoint(playerid, 1365.3500,-1279.0601,13.5469 , 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
SpawnPlayer(playerid);
return 1;
}
Respuesta: Help on creating a checkpoint -
Super_Panda - 26.10.2011
pawn Код:
C:\Users\Alex\Documents\GTA San Andreas User Files\SAMP\SAMP\Alex\trunk(DONT EDIT)\gamemodes\NewOps.pwn(465) : error 001: expected token: ")", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
SetPlayerCheckpoint(playerid, 1365.3500,-1279.0601,13.5469,3.0);
Re: Help on creating a checkpoint -
CyNiC - 27.10.2011
Post your OnPlayerSpawn or the line prior to 465.
This symbol ';' is missing on the end of the function.