checkpointid problem. - 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: checkpointid problem. (
/showthread.php?tid=307664)
checkpointid problem. -
the.et - 31.12.2011
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.
Re: checkpointid problem. -
Ash. - 31.12.2011
You need ", checkpointid" after the "playerid" variable in your OnPlayerEnterDynamicCP callback header.
Re: checkpointid problem. -
Stigg - 31.12.2011
pawn Код:
public OnPlayerEnterDynamicRaceCP(playerid)
Should be:
pawn Код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
Edit: to slow.
Re: checkpointid problem. -
the.et - 31.12.2011
oh thankss