[POMOC]Error 26

Započeo TRAXX
17. Feb. 2017. Zaključano
348
pregleda
3
postova
Trajce
4
Made Man
17. Feb. 2017.
Skripta koju koristim: moj neki edit athlone
Detaljan opis problema😛a 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)://
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;
}
}
}
Serano
4
Enforcer
17. Feb. 2017.
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;
}
}
}
Trajce
4
Made Man
17. Feb. 2017.
Fixao sam Hvala Laky moze Lock  😛  😁

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha