Help on creating a checkpoint
#1

set the checkpoint here
pawn Код:
1365.3500,-1279.0601,13.5469
when the player is inside, dont disable it, and respawn player.
Reply
#2

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

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);
Reply
#4

Post your OnPlayerSpawn or the line prior to 465.

This symbol ';' is missing on the end of the function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)