checkpointid problem.
#1

i am following the tutorial here: https://sampforum.blast.hk/showthread.php?tid=194471

I want to make a enter building check point here's my script:

Код:
new LVPD_enter;


public OnGameModeInit()
{
    LVPD_enter = CreateDynamicCP(2290.0059,2431.4236,10.8203, 4.0 , -1, -1, -1, 100);
	return 1;
}

public OnPlayerEnterDynamicCP(playerid)
{
  if(checkpointid == LVPD_enter){
    if(!IsPlayerInVehicle(playerid))
        {
             RemovePlayerFromVehicle(playerid);
             SetPlayerInterior(playerid, 3);
        }
     return 1;
  }
  return 1;
}
I kept on getting this error:
error 017: undefined symbol "checkpointid"

Please , anyone where's my problem .

P/S i included streamer by Incognito Streamer
#include <streamer> on top of my script.
Reply
#2

You need ", checkpointid" after the "playerid" variable in your OnPlayerEnterDynamicCP callback header.
Reply
#3

pawn Код:
public OnPlayerEnterDynamicRaceCP(playerid)
Should be:
pawn Код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
Edit: to slow.
Reply
#4

oh thankss
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)