stream checkpoint
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)