Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Dzonny-GT:RP poslato Februar 24, 2018, 15:00:59 POSLE PODNE

Naslov: Errori ima dosta pomoc hitno
Poruka od: Dzonny-GT:RP poslato Februar 24, 2018, 15:00:59 POSLE PODNE
EGRPG.pwn(8385) : error 001: expected token: "-string end-", but found "-identifier-"
EGRPG.pwn(8385) : error 017: undefined symbol "col_Gaming"
EGRPG.pwn(8385) : warning 215: expression has no effect
EGRPG.pwn(8385) : error 001: expected token: ";", but found "-identifier-"
EGRPG.pwn(8385) : fatal error 107: too many error messages on one line

Evo i kodovi jos


[pawn][/pawn]          switch( garageInfo[ id ][ garageType ] ) {
             case 0: {
               vrsta = "Mala garaza";
            }
            case 1: {
               vrsta = "Srednja garaza";
            }
            case 2: {
               vrsta = "Velika garaza";
            }
         }

          if( !garageInfo[ id ][ garageOwned ] ) {
             format( string, sizeof( string ), ""col_extreme"Garaza na prodaju"col_white"[ID %d]\n"col_extreme"Tip garaze: "col_white"%s\n"col_Gaming"Cena garaze: "col_white"%d\n"col_Gaming"Potreban level: "col_white"%d\n"col_Gaming"Za kupovinu kucajte "col_white"/kupigarazu", id, vrsta, garageInfo[ id ][ garagePrice ], garageInfo[ id ][ garageLevel ] );
         }
         else if( garageInfo[ id ][ garageOwned ] ) {
             format( string, sizeof( string ), ""col_white"[ID %d]"col_extreme"Vlasnik: "col_white"%s\n"col_Gaming"Tip garaze: "col_white"%s\n"col_extreme"Potreban level: "col_white"%d\n"col_Gaming"Za ulaz koristite "col_white"/genter", id, garageInfo[ id ][ garageOwner ], vrsta, garageInfo[ id ][ garageLevel ] );
         }
         garageInfo[ id ][ garage3D ] = CreateDynamic3DTextLabel( string, BELA, garageInfo[ id ][ garagePos ][ 0 ], garageInfo[ id ][ garagePos ][ 1 ], garageInfo[ id ][ garagePos ][ 2 ], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 0 );
         garageInfo[ id ][ garagePickup ] = CreateDynamicPickup( 19130, 1, garageInfo[ id ][ garagePos ][ 0 ], garageInfo[ id ][ garagePos ][ 1 ], garageInfo[ id ][ garagePos ][ 2 ], 0, 0 );

      }
   }
}
[pawn][/pawn]
Naslov: Odg: Errori ima dosta pomoc hitno
Poruka od: Lukiii poslato Februar 24, 2018, 15:11:07 POSLE PODNE
Uff brt probaj da uradis ovako nesto
[pawn] switch( garageInfo[ id ][ garageType ] ) {
             case 1: {
               vrsta = "Mala garaza";
            }
            case 2: {
               vrsta = "Srednja garaza";
            }
            case 3: {
               vrsta = "Velika garaza";
            }
         }

          if( !garageInfo[id][garageOwned] ) {
             format( string, sizeof( string ), ""PLAVA"Garaza na prodaju"BELA"[ID %d]\n"col_extreme"Tip garaze: "BELA"%s\n"col_Gaming"Cena garaze: "BELA"%d\n"col_Gaming"Potreban level: "col_white"%d\n"col_Gaming"Za kupovinu kucajte "col_white"/kupigarazu", id, vrsta, garageInfo[ id ][ garagePrice ], garageInfo[ id ][ garageLevel ] );[/pawn]
I samo nastavi sa bojamma nece biti errora ja msl
Naslov: Odg: Errori ima dosta pomoc hitno
Poruka od: Sinner.man poslato Februar 24, 2018, 15:11:56 POSLE PODNE
Jel citas pravila
Naslov: Odg: Errori ima dosta pomoc hitno
Poruka od: Lukiii poslato Februar 24, 2018, 15:21:31 POSLE PODNE
Ovi errori su povezani sacu ti to srediti
[pawn]EGRPG.pwn(8385) : error 001: expected token: "-string end-", but found "-identifier-"
EGRPG.pwn(8385) : error 017: undefined symbol "col_Gaming"
EGRPG.pwn(8385) : warning 215: expression has no effect
EGRPG.pwn(8385) : error 001: expected token: ";", but found "-identifier-"
EGRPG.pwn(8385) : fatal error 107: too many error messages on one line[/pawn]
Evo ovako nekako
[pawn]if( !garageInfo[ id ][ garageOwned ] ) {
             format( string, sizeof( string ), ""PLAVA"Garaza na prodaju"BELA"[ID %d]\n"BELA"Tip garaze: "BELA"%s\n"Ime tvog srvera"Cena garaze: "BELA"%d\n"Ime tvog servera brt"Potreban level: "BELA"%d\n"Ime srw batice"Za kupovinu kucajte "BELA"/kupigarazu", id, vrsta, garageInfo[ id ][ garagePrice ], garageInfo[ id ][ garageLevel ] );
         }
         else if( garageInfo[ id ][ garageOwned ] ) {
             format( string, sizeof( string ), ""BELA"[ID %d]"PLAVA"Vlasnik: "BELA"%s\n"Ime srwa"Tip garaze: "BELA"%s\n"PLAVA"Potreban level: "BELA"%d\n"Ime srwa"Za ulaz koristite "BELA"/kako oces cmd", id, garageInfo[ id ][ garageOwner ], vrsta, garageInfo[ id ][ garageLevel ] );
         }
         garageInfo[ id ][ garage3D ] = CreateDynamic3DTextLabel( string, BELA, garageInfo[ id ][ garagePos ][ 0 ], garageInfo[ id ][ garagePos ][ 1 ], garageInfo[ id ][ garagePos ][ 2 ], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 0 );
         garageInfo[ id ][ garagePickup ] = CreateDynamicPickup( 19130, 1, garageInfo[ id ][ garagePos ][ 0 ], garageInfo[ id ][ garagePos ][ 1 ], garageInfo[ id ][ garagePos ][ 2 ], 0, 0 );

      }
   }[/pawn]
Naslov: Odg: Errori ima dosta pomoc hitno
Poruka od: Łuk@ poslato Februar 24, 2018, 17:20:56 POSLE PODNE
pravila