PARTNERI:
-UPOZORENJE-

Samo registrovani članovi mogu da vide/koriste forum u celini.
Prijavite se ili registrujte nalog na Balkan SA-MP forumu.


Autor Tema: [Rešeno] Promenispawn  (Pročitano 162 puta)

0 članova i 1 gost pregledaju ovu temu.

Van mreže saizer

  • Newbie
  • *
  • Poruke: 4
Promenispawn
« poslato: Decembar 27, 2021, 14:54:11 posle podne »
Problem(error/warning):Eh ovako, napravio sam g chat i sve oke, ali najme kad pise neki Vip 1-6 izbaci ovako https://imgur.com/a/c3Mcnw7, moze li se to fixati i kako novi sam?
Deo skripte:
Pawno Code: [Izaberi]
CMD:g(playerid, params[])
{
    if(PlayerInfo[playerid][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes da koristis ovu komandu dok si u zatvoru." );
    if(PlayerInfo[playerid][ xMaraton ] > 0 ) return GRESKA( playerid, "Ne mozete to kod ste na maratonu !");
if(PlayerInfo[playerid][ xMute ] != 0) return GRESKA( playerid, "Ne mozete pricati, usutkani ste.");
new text[ 128 ], string1[180];
    if( sscanf( params, "s[128]", text ) ) return KORISCENJE( playerid, "/g(chat) [Text]" );
    if( ToggedG == false ) return GRESKA( playerid, "G chat je trenutno iskljucen od strane Admina." );
if( PlayerInfo[playerid][ xHelper ] >= 1 || PlayerInfo[playerid][xAdmin] >= 1 || PlayerInfo[playerid][ xVip ] >= 1 ||PlayerInfo[playerid][ xRPE ] >= 1 || PlayerInfo[playerid][ xYouTuber ] >= 1
    || PlayerInfo[playerid][xTestAAG]) {
        if( PlayerInfo[playerid][ xSkriptaRank ] == 1 ) {
format( string1, sizeof( string1 ), ""ZELENA""ZELENA"G | Developer %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][ xSkriptaRank ] == 2 ) {
format( string1, sizeof( string1 ), ""ZELENA"G | Developer %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][ xSkriptaRank ] == 3 ) {
format( string1, sizeof( string1 ), ""ZELENA"G | Mapper %s: "BELA"%s", ImeIgraca( playerid ), text );
}
    else if( PlayerInfo[playerid][xAdmin] == 7 ) {
format( string1, sizeof(string1), ""ZELENA"G | Vlasnik %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][ xSkriptaRank ] == 6 ) {
format( string1, sizeof( string1 ), ""ZELENA"G | Co-Owner %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][ xSkriptaRank ] == 7 ) {
format( string1, sizeof( string1 ), ""ZELENA"G | Head Mapper %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][ xSkriptaRank ] == 8 ) {
format( string1, sizeof( string1 ), ""ZELENA"G | Predsednik %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][xAdmin] == 6 ) {
format( string1, sizeof(string1), ""ZELENA"G | Direktor %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][xAdmin] == 5 ) {
format( string1, sizeof(string1), ""ZELENA"G | Head Admin %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][xAdmin] == 4 ) {
format( string1, sizeof( string1 ), ""ZELENA"G | Admin Level 4 %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][xAdmin] == 3 ) {
format( string1, sizeof( string1 ), ""ZELENA"G | Admin Level 3 %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][xAdmin] == 2 ) {
format( string1, sizeof( string1 ), ""ZELENA"G | Admin Level 2 %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][xAdmin] == 1 ) {
format( string1, sizeof( string1 ), ""ZELENA"G | Admin Level 1 %s: "BELA"%s", ImeIgraca( playerid ), text );
}
else if( PlayerInfo[playerid][ xHelper ] == 3 ) {
  format( string1, sizeof(string1), ""ZELENA"G | V. Helpera %s [ID:%d]: "BELA"%s", ImeIgraca( playerid ), playerid, text );
        }
else if( PlayerInfo[playerid][ xHelper ] >= 1 && PlayerInfo[playerid][ xHelper ] <= 2 ) {
            format( string1, sizeof(string1), ""ZELENA"G | Helper %d %s: "BELA"%s", PlayerInfo[playerid][ xHelper ], ImeIgraca( playerid ), text );
        }
        else if( PlayerInfo[playerid][ xVip ] >= 1 ) {
            format( string1, sizeof(string1), ""ZELENA"G | Vip Level %s [ID:%d]: "BELA"%s", PlayerInfo[playerid][ xVip ], ImeIgraca( playerid ), playerid, text );
        }
        else if( PlayerInfo[playerid][ xRPE ] >= 1 ) {
            format( string1, sizeof(string1), ""ZELENA"G | RPE (%d) %s: "BELA"%s", PlayerInfo[playerid][ xRPE ], ImeIgraca( playerid ), text );
        }
        else if( PlayerInfo[playerid][ xYouTuber ] >= 1 ) {
            format( string1, sizeof(string1), ""ZELENA"G | YouTuber %s [ID:%d]: "BELA"%s", ImeIgraca( playerid ), playerid, text );
        }
        else if( PlayerInfo[playerid][ xTestAAG ]) {
            format( string1, sizeof(string1), ""ZELENA"G | Test AAG %s [ID:%d]: "BELA"%s", ImeIgraca( playerid ), playerid, text );
        }
PROMChat( GREENCOLOR_1, string1 );
}
else return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
return true;
}
« Poslednja izmena: Decembar 28, 2021, 18:46:44 posle podne 'xza »
 

Van mreže _audi

Odg: Promenispawn
« Odgovor #1 poslato: Decembar 27, 2021, 15:07:48 posle podne »
Pawno Code: [Izaberi]
        else if( PlayerInfo[ playerid ][ xVIP ] >= 1 ) {
            format( string1, sizeof(string1), "G | Vip (%d) %s: "col_white"%s", PlayerInfo[ playerid ][ xVIP ], ImeIgraca( playerid ), text );
        }

Probaj nesto ovako
« Poslednja izmena: Decembar 27, 2021, 15:12:55 posle podne audi100 »
 
Korisnici koji su se zahvalili: DzaBu

Van mreže 'xza

  • Ne treba vjerovati ljudima s kojima smo se tek sprijateljili, a koji pokazuju da smo im draži od njihovih starih prijatelja – tako će se ponaÅ¡ati i s nama kada steknu nove prijatelje.
  • Godfather
  • *
  • Poruke: 10666
  • Broj zahvalnica: 1237
  • Pol: Muškarac
Odg: Promenispawn
« Odgovor #2 poslato: Decembar 27, 2021, 15:08:03 posle podne »
Pawno Code: [Izaberi]
else if( PlayerInfo[playerid][ xVip ] >= 1 ) {
            format( string1, sizeof(string1), ""ZELENA"G | Vip Level %d %s [ID:%d]: "BELA"%s", PlayerInfo[playerid][ xVip ], ImeIgraca( playerid ), playerid, text );
        }