SA-MP Forums Archive
Error? - 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: Error? (/showthread.php?tid=78435)



Error? - ruarai - 20.05.2009

Quote:

public OnPlayerEnterCheckpoint(playerid)
{
switch(gClass[playerid])
{
case 2:
{
// If the player's class is 0 then set it to Orange
SendRconCommand("gmx");
}
SendClientMessage(playerid, 0xDEEE20FF, "Entered Checkpoint");
return 1;
}

comes up with
C:\Users\garry\Downloads\samp - breakin!69\gamemodes\thebest.pwn(187) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\garry\Downloads\samp - breakin!69\gamemodes\thebest.pwn(187) : warning 215: expression has no effect




Re: Error? - Joe Staff - 20.05.2009

Didn't close off switch()

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
switch(gClass[playerid])
  {
    case 2:
    {
      // If the player's class is 0 then set it to Orange
      SendRconCommand("gmx");
    }
  }
  SendClientMessage(playerid, 0xDEEE20FF, "Entered Checkpoint");
  return 1;
}



Re: Error? - gpclan - 20.05.2009

isnt this from mike area 51 checkpoint ?? looks like


Re: Error? - ruarai - 20.05.2009

Quote:
Originally Posted by [DNK
ivKing ]
isnt this from mike area 51 checkpoint ?? looks like
it is
PS im who_am_i off your server