?!?!?! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ?!?!?! (
/showthread.php?tid=224791)
?!?!?! -
omer5198 - 12.02.2011
how?!?!?!?!?
pawn Код:
error 017: undefined symbol "playerid"
lines:
pawn Код:
public OnGameModeInit()
{
new Checkpoint1 = SetPlayerCheckpoint(playerid, 2154.0220,1645.2579,9932.2305, 3.0);
return 1;
}
AW: ?!?!?! -
Nero_3D - 12.02.2011
You cant set a checkpoint for a player in a callback which doesnt handle playerid
What was your intent ?
Re: ?!?!?! -
Calgon - 12.02.2011
pawn Код:
new
Checkpoint1[MAX_PLAYERS];
public OnPlayerSpawn(playerid) {
Checkpoint1[playerid] = SetPlayerCheckpoint(playerid, 2154.0220,1645.2579,9932.2305, 3.0);
return 1;
}
This code will create a checkpoint when a player spawns.
Re: ?!?!?! -
BlackWolf120 - 12.02.2011
playerid is not defined in OnGameModeInit.
You dont use playerid under OnGameModeInit.
pawn Код:
public OnGameModeInit()//<== no playerid between this brackets
Re: ?!?!?! -
omer5198 - 12.02.2011
i just want to make a checkpoint that if i will stand on it then... (it doesn't metter to you but - bank)...
Re: ?!?!?! -
BlackWolf120 - 12.02.2011
then you have to use a checkpoint streamer cause u can only create only one checkpoint at the same time.