Error?
#1

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

Reply
#2

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;
}
Reply
#3

isnt this from mike area 51 checkpoint ?? looks like
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)