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


Messages In This Thread
Error? - by ruarai - 20.05.2009, 02:23
Re: Error? - by Joe Staff - 20.05.2009, 03:32
Re: Error? - by gpclan - 20.05.2009, 03:51
Re: Error? - by ruarai - 20.05.2009, 22:18

Forum Jump:


Users browsing this thread: 1 Guest(s)