Errori!

Započeo ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ, Februar 12, 2020, 12:13:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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): //
Founder of
Digression Community

Posalji ceo kod pola je iskeceno na kraju, i sa oznacenim linijama koje prave probleme
Poslednja Izmena: Februar 12, 2020, 12:15:40 POSLE PODNE od Kriso
GAD SAM JA

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
Founder of
Digression Community

BELA zameni sa col_white posto ti je verovatno definisana kao 0xFFFFFFFF a koristis je u stringu.

[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]

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
Founder of
Digression Community

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 :-[

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""
Founder of
Digression Community