stream 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: stream checkpoint (
/showthread.php?tid=95265)
stream checkpoint -
sggassasin - 03.09.2009
hey i need some help iv got errors on these lines
Код:
public OnPlayerEnterStreamCheckpoint(playerid, checkpointid)
{
switch (checkpointid)
{
case CPID[0]://this one
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 2262.83,-1137.71,1050.63);
}
case CPID[1]://this one
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 190.1520,-1308.1490,70.2603);
}
case CPID[2]://this one
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 190.1520,-1308.1490,70.2603);
}
case CPID[3]://this one
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 190.1520,-1308.1490,70.2603);
}
}
return 1;
}
an i get these errors....
C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\cops&robbers.pwn(1669) : error 008: must be a constant expression; assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\cops&robbers.pwn(1674) : error 008: must be a constant expression; assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\cops&robbers.pwn(1679) : error 008: must be a constant expression; assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\cops&robbers.pwn(1684) : error 008: must be a constant expression; assumed zero
im useing the YCP script .. plz help