ATH MOD

Započeo <sel1m>, Novembar 16, 2017, 13:17:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Pitanje: Problem sa dinamicnim organizacijama
Komentar: Trazim vec 2 dana u cemu je problem ali nikako da nadjem u skripti.Problem je u tome setam sebi lidera za drzavnu organizaciju PD/Zandarmerija itd.. A kada setam za bande i ostalo pise mi da nisam lider/clan organizacije. Pa zna li neko u cemu je frka?
/\

daj sve pod linije "CMD:orghelp"

i am king!

Citat: â˜... Pɪɴᴋɪ â˜... poslato Novembar 16, 2017, 13:19:42 POSLE PODNE
daj sve pod linije "CMD:orghelp"
[pawn]CMD:orghelp( playerid, params[] ) {

   strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
   if( GetFactionType( playerid ) == ORG_TIP_PD ) {
      strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/duty /r /f /d /alcotest /computer /arrest /cuff /uncuff /pu /cctv /ugasikamere\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/tazer /m /wanted /su /rb /rrb /rrball /bk /bkc /govrepair /undercover /pdslap\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/srusivrata /frisk /take /ticket /orgstats /siren /gov /pokaziznacku /clear /suspend\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/mandescription /removearm /equipment  /vuci /pusti /proveripojas /carsign\n" );
      strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/narcotest /narcoresults /unistidrogu /destroygun /ram /namestibvrata\n" );
      strcat( DialogStrgEx, ""col_pinki"Lider | "col_white"/lider" );
   if( GetFactionType( playerid ) == ORG_TIP_PD ) {
       strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/orghelp /prisonhelp /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MD ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /d /mduty /medicine /recover /muniform /dajinekciju /nadji /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_CNN ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /vesti /live /newsstats /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_ELEK ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /electric /clanovi /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_TAXI ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /taxi /clanovi /togfr\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MAFIJA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /clanovi /togfr /zauzmifirmu\n" ); }
   else if( PlayerInfo[ playerid ][ xLider ] != 0 ) {
       strcat( DialogStrgEx, ""col_pinki"LEADER | "col_white"/lider(sve opcije lidera)\n" ); }
      SPD( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, "Ok", "" );
       strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
   }else return GRESKA( playerid, ""col_chating"Nisi clan nijedne organizacije!" );
   return 1;
}[/pawn]
/\

Evo ti primer pa ti sastavljaj dalje, cist primer proveri ovako ti na cmd:orghelp nisi povezao sve kao sto je vec definisano

[pawn]#define ORG_TIP_PD        1
#define ORG_TIP_BANDA    2
#define ORG_TIP_MAFIJA  3
#define ORG_TIP_MC       4
#define ORG_TIP_SR       5
#define ORG_TIP_MD       6
#define ORG_TIP_CNN    7
#define ORG_TIP_HITM    8
#define ORG_TIP_ELEK     9
#define ORG_TIP_TAXI    10
#define ORG_TIP_PS        11[/pawn]

U CMD:orghelp imas svega samo
ORG_TIP_PD
ORG_TIP_MD
ORG_TIP_CNN
ORG_TIP_ELEK
ORG_TIP_TAXI
ORG_TIP_MAFIJA
Tebi ovo je ubaceno za orghelp da fukcionise, dakle fali ti onoliko koliko ti je gore navedeno, nedostaje
ORG_TIP_BANDA
ORG_TIP_PS
ORG_TIP_HITM
ORG_TIP_MC
ORG_TIP_SR
Nadam se da si razumeo :D

i am king!

Citat: â˜... Pɪɴᴋɪ â˜... poslato Novembar 16, 2017, 13:30:11 POSLE PODNE
Evo ti primer pa ti sastavljaj dalje, cist primer proveri ovako ti na cmd:orghelp nisi povezao sve kao sto je vec definisano

[pawn]#define ORG_TIP_PD        1
#define ORG_TIP_BANDA    2
#define ORG_TIP_MAFIJA  3
#define ORG_TIP_MC       4
#define ORG_TIP_SR       5
#define ORG_TIP_MD       6
#define ORG_TIP_CNN    7
#define ORG_TIP_HITM    8
#define ORG_TIP_ELEK     9
#define ORG_TIP_TAXI    10
#define ORG_TIP_PS        11[/pawn]

U CMD:orghelp imas svega samo
ORG_TIP_PD
ORG_TIP_MD
ORG_TIP_CNN
ORG_TIP_ELEK
ORG_TIP_TAXI
ORG_TIP_MAFIJA
Tebi ovo je ubaceno za orghelp da fukcionise, dakle fali ti onoliko koliko ti je gore navedeno, nedostaje
ORG_TIP_BANDA
ORG_TIP_PS
ORG_TIP_HITM
ORG_TIP_MC
ORG_TIP_SR
Nadam se da si razumeo :D
vec je definisano to
/\

PS: evo ti pa proveri

[pawn]CMD:orghelp( playerid, params[] ) {

   strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
   if( GetFactionType( playerid ) == ORG_TIP_PD ) {
      strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/duty /r /f /d /alcotest /computer /arrest /cuff /uncuff /pu /cctv /ugasikamere\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/tazer /m /wanted /su /rb /rrb /rrball /bk /bkc /govrepair /undercover /pdslap\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/srusivrata /frisk /take /ticket /orgstats /siren /gov /pokaziznacku /clear /suspend\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/mandescription /removearm /equipment  /vuci /pusti /proveripojas /carsign\n" );
      strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/narcotest /narcoresults /unistidrogu /destroygun /ram /namestibvrata\n" );
      strcat( DialogStrgEx, ""col_pinki"Lider | "col_white"/lider" );
   if( GetFactionType( playerid ) == ORG_TIP_PD ) {
       strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/orghelp /prisonhelp /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MD ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /d /mduty /medicine /recover /muniform /dajinekciju /nadji /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_CNN ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /vesti /live /newsstats /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_ELEK ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /electric /clanovi /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_TAXI ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /taxi /clanovi /togfr\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MAFIJA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /clanovi /togfr /zauzmifirmu\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_BANDA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_HITM ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MC ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_SR ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_PS ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
   else if( PlayerInfo[ playerid ][ xLider ] != 0 ) {
       strcat( DialogStrgEx, ""col_pinki"LEADER | "col_white"/lider(sve opcije lidera)\n" ); }
      SPD( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, "Ok", "" );
       strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
   }else return GRESKA( playerid, ""col_chating"Nisi clan nijedne organizacije!" );
   return 1;
}[/pawn]

i am king!

Citat: â˜... Pɪɴᴋɪ â˜... poslato Novembar 16, 2017, 13:33:23 POSLE PODNE
PS: evo ti pa proveri

[pawn]CMD:orghelp( playerid, params[] ) {

   strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
   if( GetFactionType( playerid ) == ORG_TIP_PD ) {
      strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/duty /r /f /d /alcotest /computer /arrest /cuff /uncuff /pu /cctv /ugasikamere\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/tazer /m /wanted /su /rb /rrb /rrball /bk /bkc /govrepair /undercover /pdslap\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/srusivrata /frisk /take /ticket /orgstats /siren /gov /pokaziznacku /clear /suspend\n" );
        strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/mandescription /removearm /equipment  /vuci /pusti /proveripojas /carsign\n" );
      strcat( DialogStrgEx, ""col_pinki"Clan | "col_white"/narcotest /narcoresults /unistidrogu /destroygun /ram /namestibvrata\n" );
      strcat( DialogStrgEx, ""col_pinki"Lider | "col_white"/lider" );
   if( GetFactionType( playerid ) == ORG_TIP_PD ) {
       strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/orghelp /prisonhelp /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MD ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /d /mduty /medicine /recover /muniform /dajinekciju /nadji /togfr /togd\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_CNN ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /vesti /live /newsstats /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_ELEK ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /electric /clanovi /togfr \n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_TAXI ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /taxi /clanovi /togfr\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MAFIJA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"/f /clanovi /togfr /zauzmifirmu\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_BANDA ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_HITM ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_MC ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_SR ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
    else if( GetFactionType( playerid ) == ORG_TIP_PS ) {
        strcat( DialogStrgEx, ""col_pinki"ORGA | "col_white"U Izradi\n" ); }
   else if( PlayerInfo[ playerid ][ xLider ] != 0 ) {
       strcat( DialogStrgEx, ""col_pinki"LEADER | "col_white"/lider(sve opcije lidera)\n" ); }
      SPD( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, "Ok", "" );
       strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
   }else return GRESKA( playerid, ""col_chating"Nisi clan nijedne organizacije!" );
   return 1;
}[/pawn]
ISTO IDALJE
/\

Tako ti je to kad ne citas text.. Nista treba se sredit jer nije uradjeno LOL XD
/\