Case error and a warning
#1

Hi!

I got some error when I tierd to make a turf war system with
"case" Well I don't know how to explain, but you will understand
when you see the code below.


pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == GolfTurf)
    {
        switch(gTeam [playerid])
    {
    case 0: SetTimer("GolfTurfT", 5000,false); //If the Clowns tries to take turf.
    case 1: SendClientMessage(playerid, Clown, "Test lol");
    return 1;
    }

Код:
D:\Davids\Scripting\Server Las Venturas TDM\LVgZone.pwn(1165) : error 002: only a single statement (or expression) can follow each "case"
D:\Davids\Scripting\Server Las Venturas TDM\LVgZone.pwn(1165) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
Case error and a warning - by davve95 - 28.03.2013, 20:18
Re: Case error and a warning - by Vince - 28.03.2013, 20:21
Re: Case error and a warning - by Konstantinos - 28.03.2013, 20:26
Re: Case error and a warning - by davve95 - 28.03.2013, 20:27
Re: Case error and a warning - by Omirrow - 28.03.2013, 20:30
Re: Case error and a warning - by davve95 - 28.03.2013, 20:41

Forum Jump:


Users browsing this thread: 1 Guest(s)