[POMOC]Error 26

Započeo TRAXX, Februar 17, 2017, 19:59:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: moj neki edit athlone
Detaljan opis problema:Pa radio sam ne zavrseni posao i izbaci mi erore 26 a to znaci da sam negde izostavio zagradu { ili ( a nzm gde trazio sam 20 puta
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
[pawn]case 14: {
             if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER && IsPlayerInAnyVehicle( playerid ) && GetVehicleModel( GetPlayerVehicleID( playerid ) ) == 431 ) {
                 new Float:rot;
               GetVehicleZAngle( GetPlayerVehicleID( playerid ), rot );
               if( rot > 155 && rot < 196 ) {
                  if( BusLinija[ playerid ] < 3 ) { //12
                  Traxx_DisablePlayerCheckpoint( playerid );
                  BusLinija[ playerid ]++;
                     CheckpointStatus[ playerid ] = 14;
                  }
                  if( BusLinija[ playerid ] == 2 ) Traxx_SetPlayerCheckpoint( playerid, 1686.3721, 1802.8622, 10.9301, 5.0 ); //else if
                  else if( BusLinija[ playerid ] == 3 ) {
                   new time = gettime( );
                    new ostatak = ( NovoVreme[ playerid ] - ( time - StaroVreme[ playerid ] ) );
                    if( ( time - StaroVreme[ playerid ] ) < NovoVreme[ playerid ] ) {
                      GRESKA( playerid, "Dosli ste ranije na marker nego sto je predvidjeno. " );
                      GRESKA( playerid, "Sacekajte jos %d sekundi i udjite ponovo u marker.", ostatak );
                      format( globalstring, sizeof( globalstring ), "|| IG:AC || %s[ID: %d] je stigao na marker pre vremena( za %d od %d sekundi ).", ImeIgraca( playerid ), playerid, (NovoVreme[ playerid ]-ostatak), NovoVreme[ playerid ] );
                       AdminPoruka( ANTICHEAT, globalstring );
                     return 1;
                   }

                   Traxx_DisablePlayerCheckpoint( playerid );
                   GameTextForPlayer( playerid, "~y~Pricekajte, putnici izlaze iz autobusa...", 5000, 1);
                   TogglePlayerControllable( playerid, false );
                   CheckpointStatus[ playerid ] = 0;
                   BusLinija[ playerid ] = 0; //mozda delete za test 2
                   new bonus = random( 500 );
                  SendJobMessage( playerid, "Uspesno ste zavrsili medunarodnu liniju i zaradili $%d.", JobInfo[ BusVozacPlata ]+bonus );
                  format( globalstring, sizeof( globalstring ), ""col_job"Uspesno ste zavrsili bus liniju!\n\n"col_white"Plata: "col_job"2000$\n"col_white"Bonus: "col_job"%d$", bonus );
                  SPD( playerid, 0, DSMSG, D_NASLOV, globalstring, D_OK, "" );

                  PlayerInfo[ playerid ][ xPlatniRacun ] += (JobInfo[ BusVozacPlata ]+bonus);
                  SavePlayer( playerid );
                  UpdatePlataTD( playerid );

                  StaroVreme[ playerid ] = 0;
                   NovoVreme[ playerid ] = 0;
                   BussinesJobMoney( POSAO_BUSVOZAC, ((JobInfo[ BusVozacPlata ]+bonus)/10) );
                   return 1;
               }
            }
         }[/pawn]
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript


case 14:
    if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER && IsPlayerInAnyVehicle( playerid ) && GetVehicleModel( GetPlayerVehicleID( playerid ) ) == 431 ) {
        new Float:rot;
GetVehicleZAngle( GetPlayerVehicleID( playerid ), rot );
if( rot > 155 && rot < 196 ) {
if( BusLinija[ playerid ] < 3 ) { //12
Traxx_DisablePlayerCheckpoint( playerid );
BusLinija[ playerid ]++;
      CheckpointStatus[ playerid ] = 14;
}
if( BusLinija[ playerid ] == 2 ) Traxx_SetPlayerCheckpoint( playerid, 1686.3721, 1802.8622, 10.9301, 5.0 ); //else if
else if( BusLinija[ playerid ] == 3 ) {
    new time = gettime( );
        new ostatak = ( NovoVreme[ playerid ] - ( time - StaroVreme[ playerid ] ) );
        if( ( time - StaroVreme[ playerid ] ) < NovoVreme[ playerid ] ) {
    GRESKA( playerid, "Dosli ste ranije na marker nego sto je predvidjeno. " );
    GRESKA( playerid, "Sacekajte jos %d sekundi i udjite ponovo u marker.", ostatak );
    format( globalstring, sizeof( globalstring ), "|| IG:AC || %s[ID: %d] je stigao na marker pre vremena( za %d od %d sekundi ).", ImeIgraca( playerid ), playerid, (NovoVreme[ playerid ]-ostatak), NovoVreme[ playerid ] );
        AdminPoruka( ANTICHEAT, globalstring );
return 1;
    }

    Traxx_DisablePlayerCheckpoint( playerid );
    GameTextForPlayer( playerid, "~y~Pricekajte, putnici izlaze iz autobusa...", 5000, 1);
    TogglePlayerControllable( playerid, false );
    CheckpointStatus[ playerid ] = 0;
    BusLinija[ playerid ] = 0; //mozda delete za test 2
    new bonus = random( 500 );
SendJobMessage( playerid, "Uspesno ste zavrsili medunarodnu liniju i zaradili $%d.", JobInfo[ BusVozacPlata ]+bonus );
format( globalstring, sizeof( globalstring ), ""col_job"Uspesno ste zavrsili bus liniju!\n\n"col_white"Plata: "col_job"2000$\n"col_white"Bonus: "col_job"%d$", bonus );
SPD( playerid, 0, DSMSG, D_NASLOV, globalstring, D_OK, "" );

PlayerInfo[ playerid ][ xPlatniRacun ] += (JobInfo[ BusVozacPlata ]+bonus);
SavePlayer( playerid );
UpdatePlataTD( playerid );

StaroVreme[ playerid ] = 0;
    NovoVreme[ playerid ] = 0;
    BussinesJobMoney( POSAO_BUSVOZAC, ((JobInfo[ BusVozacPlata ]+bonus)/10) );
    return 1;
}
}
}

Fixao sam Hvala Laky moze Lock  :P  ;D
  
TRAXX
SAMP Professional Scripter
                  FB: https://www.facebook.com/traxxscript