[AJUDA] Entrar no veiculo e seguir os chekpoints
#9

(215) : error 002: only a single statement (or expression) can follow each "case"
(215 -- 216) : warning 215: expression has no effect
(216) : error 001: expected token: ";", but found "-identifier-"
(231) : error 010: invalid function or declaration

pawn Код:
new Cargas = random(5); //5 numeros de carga;
                    switch(Cargas)
                    {
                        if(Cargas == 1)//215
                            SetPlayerCheckpoint(playerid, 1283.04,-2053.08,58.79, 3.0);//216
                        if(Cargas == 2)
                            SetPlayerCheckpoint(playerid, 1293.24,-2053.25,58.50, 3.0);
                        if(Cargas == 3)
                            SetPlayerCheckpoint(playerid, 1306.72,-2053.48,58.12, 3.0);
                        if(Cargas == 4)
                            SetPlayerCheckpoint(playerid, 1325.89,-2053.80,57.55, 3.0);
                        if(Cargas == 5)
                            SetPlayerCheckpoint(playerid, 1339.70,-2054.03,57.103, 3.0);
                        PegarCarga[playerid] = true;
                    }
                }
            }
        }
    }
    return true;//231
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)