diverses Checkpoints
#7

haha thx, is there something u dont know

well as i said, im really a noob at scripting yet, so please dont be angry about all the questions.
mhh, maybe ive got another question

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
   

switch(CheckPoint[playerid])
{

case 0: {//checkpoint1

    if(team[playerid] == 1) // If the player is part of Team 1
    {
       SetTimer("Bombspawnpolice",15000,false);
    }
    if(team[playerid] == 2) // If the player is part of Team 2
    {
        SetTimer("Bombspawnterrorists",15000,false);
    }

 }

case 1: { //checkpoint2 in police base
 

    if(team[playerid] == 1) // If the player is part of Team 1
    {
      DisablePlayerCheckpoint(playerid);
      new name[ 24 ], string[ 64 ];
      GetPlayerName( playerid, name, 24 );
      format( string, sizeof(string), "~g~%s has aborted the countdown!!", name );
      GameTextForAll( string, 5000, 5 );
      SendClientMessage(playerid, 0x7CFC00AA, "Well done! Countdown aborted!! ( +2000$ )");
    }
    if(team[playerid] == 2) // If the player is part of Team 2
    {
        //here would be the actions for team 2 but for sure u know that better than me:p
    }

 }


   
    return 1; // in this line i get an error:  error 002: only a single statement (or expression) can follow each "case"
}
What am i doing wrong?

Regards.

P.s: no errors in case 0. (theres everything right in case0, its just for u to see the whole construction)

//edit: And is there a possibility that only a certain team is able to see a certain cp?
Reply


Messages In This Thread
diverses Checkpoints - by BlackWolf120 - 26.11.2010, 14:35
Re: diverses Checkpoints - by JamesC - 26.11.2010, 14:50
Re: diverses Checkpoints - by BlackWolf120 - 26.11.2010, 15:54
Re: diverses Checkpoints - by JamesC - 26.11.2010, 16:23
Re: diverses Checkpoints - by BlackWolf120 - 26.11.2010, 17:00
Re: diverses Checkpoints - by JamesC - 26.11.2010, 17:54
Re: diverses Checkpoints - by BlackWolf120 - 26.11.2010, 18:12
Re: diverses Checkpoints - by JamesC - 26.11.2010, 18:40
Re: diverses Checkpoints - by BlackWolf120 - 26.11.2010, 18:42
Re: diverses Checkpoints - by BlackWolf120 - 26.11.2010, 22:33

Forum Jump:


Users browsing this thread: 2 Guest(s)