[HELP]i get 26errors when compile
#1

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
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)