Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ poslato Februar 12, 2020, 12:13:41 POSLE PODNE

Naslov: Errori!
Poruka od: ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ poslato Februar 12, 2020, 12:13:41 POSLE PODNE
Problem(error/warning): Neki errorcici su mi se javili dok sam pravio ovu CMD?
Dio skripte: https://imgur.com/a/whZTS6f
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //
Naslov: Odg: Errori!
Poruka od: Shaw Salcedo poslato Februar 12, 2020, 12:14:32 POSLE PODNE
Posalji ceo kod pola je iskeceno na kraju, i sa oznacenim linijama koje prave probleme
Naslov: Odg: Errori!
Poruka od: ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ poslato Februar 12, 2020, 12:23:14 POSLE PODNE
Citat: Kriso poslato Februar 12, 2020, 12:14:32 POSLE PODNE
Posalji ceo kod pola je iskeceno na kraju, i sa oznacenim linijama koje prave probleme

[pawn]else if( dialogid == dialog_ADMINI ) {
       if( !response ) return true;
       if( response ) {
           switch( listitem ) {
               case 0: {
                   new stringgh[ 2048 ];
               format( stringgh, sizeof( stringgh ), "" );
                 foreach( Player, i ) {
                    if( PlayerInfo[ i ][ xAdmin ] >= 1 ) {
                     new string[ 512 ];
                  format( string, sizeof( string ), ""col_white"[%d] "col_yelow"%s "col_white"| "col_yelow"Admin Level: "col_white"%d "BELA"| "col_yelow"DUTY: ", i, ImeIgraca( i ), PlayerInfo[ i ][ xAdmin ] );
                  strcat( stringgh, string );
                     if( AdminDuty[ i ] ) {
                        strcat( stringgh, "{33AA33}ON" );
                     }
                     else {
                         strcat( stringgh, "{FF0000}OFF" );
                     }
                     strcat( stringgh, "\n" );
                  }
               }
               if( strlen( stringgh ) == 0 ) return GRESKA( playerid, "Trenutno nema online admina." );
                strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
               SPD( playerid, dialog_OSTALO, DSMSG, "Lista Online Admina", stringgh, D_OK, "" );
            }
         }
      }
   }
[/pawn]
To sto je crveno na tu liniju jedino pravi problem
Naslov: Odg: Errori!
Poruka od: // impact poslato Februar 12, 2020, 12:32:15 POSLE PODNE
BELA zameni sa col_white posto ti je verovatno definisana kao 0xFFFFFFFF a koristis je u stringu.
Naslov: Odg: Errori!
Poruka od: malitoni in da hood poslato Februar 12, 2020, 13:08:32 POSLE PODNE
[pawn]else if( dialogid == dialog_ADMINI ) {
       if( !response ) return true;
       if( response ) {
           switch( listitem ) {
               case 0: {
                   new stringgh[ 2048 ];
               format( stringgh, sizeof( stringgh ), "" );
                 foreach( Player, i ) {
                    if( PlayerInfo[ i ][ xAdmin ] >= 1 ) {
                     new string[ 512 ];
                  format( string, sizeof( string ), ""col_white"[%d] "col_yelow"%s "col_white"| "col_yelow"Admin Level: "col_white"%d "col_white"| "col_yelow"DUTY: ", i, ImeIgraca( i ), PlayerInfo[ i ][ xAdmin ] );
                  strcat( stringgh, string );
                     if( AdminDuty[ i ] ) {
                        strcat( stringgh, "{33AA33}ON" );
                     }
                     else {
                         strcat( stringgh, "{FF0000}OFF" );
                     }
                     strcat( stringgh, "\n" );
                  }
               }
               if( strlen( stringgh ) == 0 ) return GRESKA( playerid, "Trenutno nema online admina." );
                strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
               SPD( playerid, dialog_OSTALO, DSMSG, "Lista Online Admina", stringgh, D_OK, "" );
            }
         }
      }
   }[/pawn]
Naslov: Odg: Errori!
Poruka od: ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ poslato Februar 12, 2020, 13:24:06 POSLE PODNE
Sad mi izasla nekoliko errora: "undefined simbol playerid"
Ja definisem tu u taj dialog sa new playerid; , onda gore #define playerid , ali onda jos vise errora iskacu
Naslov: Odg: Errori!
Poruka od: malitoni in da hood poslato Februar 12, 2020, 13:25:41 POSLE PODNE
Citat: Buster poslato Februar 12, 2020, 13:24:06 POSLE PODNE
Sad mi izasla nekoliko errora: "undefined simbol playerid"
Ja definisem tu u taj dialog sa new playerid; , onda gore #define playerid , ali onda jos vise errora iskacu
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???

Daj liniju na kojoj ti baca to :-[
Naslov: Odg: Errori!
Poruka od: ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ poslato Februar 12, 2020, 14:30:06 POSLE PODNE
Citat: malitoni in da hood poslato Februar 12, 2020, 13:25:41 POSLE PODNE
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???

Daj liniju na kojoj ti baca to :-[
Sad sam tek skonto da to dolazi iz pwna sa mapama... Ali to se sad pojavilo ranije nije.. zna neko kako da fixam? "undefined simbol "playerid""