SA-MP Forums Archive
[HELP]i get 26errors when compile - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]i get 26errors when compile (/showthread.php?tid=128017)



[HELP]i get 26errors when compile - Lilcuete - 15.02.2010

Do i need to add another bracket or something if yes how much and where because i get 26 errors here it is
http://pastebin.com/m55a50765


Re: [HELP]i get 26errors when compile - mansonh - 16.02.2010

Your switch was messed up.
When you do a switch its
switch(..)
{
case 1:
{
}
case 2:
{
}
}
you had multiple switch statements in the same one
pawn Код:
else
{
        switch (gPlayerCheckpointStatus[playerid])
        {
            case CHECKPOINT_HOME:
          {
                PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
                DisablePlayerCheckpoint(playerid);
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
                GameTextForPlayer(playerid, "~w~You are~n~~y~Home", 5000, 1);
               
          }
          switch (gPlayerCheckpointStatus[playerid])
        {
case CHECKPOINT_CAR:
                {
    PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
                DisablePlayerCheckpoint(playerid);
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
                }
      switch (gPlayerCheckpointStatus[playerid])
        {
            case CHECKPOINT_HOUSE:
          {
                PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
                DisablePlayerCheckpoint(playerid);
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
                return 1;

        }
 }
http://pastebin.com/m1071c2cf