28.03.2013, 20:18
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.
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.