Oko Logina

Započeo Hamza01
23. Jun 2018. Zaključano
1,197
pregleda
19
postova
Hamza01
3
Hustler
23. Jun 2018.
Problem(error/warning): Ovako ubacivao sam fDialog i SendClientMessageEx za /pitaj /lp i /pogledajodgovor i sad kad udjem na srw i ukucam sifru i stisnem login ono nece samo stoji prihvati sifru ako ne ne spawna
Dio skripte: ako treba nesto javite
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/7XdP5oz
Luka Tomasevic
5
Godfather
23. Jun 2018.
jesi pokusavao da kliknes ovo dole "spawn" ?
Hamza01
3
Hustler
24. Jun 2018.
Jesam,ali me kikuje i pise da se moram prvo loginovat
Hamza01
3
Hustler
24. Jun 2018.
Sad sam vidio da cim includujem fdialog odma mi se to desava,samo ako includujem.HITNO POMOC
musa123
5
Kingpin
24. Jun 2018.
moraš sve dialoge metnit pod fdialog ne samo određene
Hamza01
3
Hustler
24. Jun 2018.
I mislio sam da je do taga pa sam izbacio fdialog i one sto su bili u fdialogu stavio na obicne i sad kad idem compile nece : https://imgur.com/uQi5UGw
musa123
5
Kingpin
24. Jun 2018.
vidi negdje da nisi zaboravio
{
}
i mozda imas previse errora pa ne moze da se kompajluje
posalji dio toga gdje si mjenjao dijaloge
Hamza01
3
Hustler
24. Jun 2018.
Isao sam u zBracket Finder i nema tu problem evo slike sta sam dodao : https://imgur.com/a/Ww5Jlrd
Hamza01
3
Hustler
24. Jun 2018.
Evo kod sta sam dodavao : https://pastebin.com/2cncQ0Vf. Pomoc hitno mi je
musa123
5
Kingpin
25. Jun 2018.
jesi li definisao Dialoge ?
Hamza01
3
Hustler
25. Jun 2018.
Jesam, ali je ovo u fdialogu treba obicni moze li nekk to da mi uradi samo ovo sto je u fdialogu da bude obicni
musa123
5
Kingpin
25. Jun 2018.
to gdje imas

if(dialogid == 3131)

Stavi

case DIALOG_(ovdje ide dialog koji si definisao npr) case DIALOG_ASKQ

i sve tako zamjeni sa dijalozima

ali moras da definises te dialoge gore npr #define DIALOG_ASKQ 1010
Hamza01
3
Hustler
25. Jun 2018.
Hvala, sad cu ti pokisat da uradim
Hamza01
3
Hustler
25. Jun 2018.
Mozes li da mi ti do zamijenis ,jer ja to ne umijem nisam dobro skontao
musa123
5
Kingpin
25. Jun 2018.
@Hamza01 eto
#define DIALOG_PROPOS 1010
#define DIALOG_PROPOA 1011
#define DIALOG_PROPOM 1012
#define DIALOG_PROPOP 1013
#define DIALOG_PROPOU 1014
#define DIALOG_PROPON 1015
//// TO GORE STAVI GDJE SU TI DIALOZI
case DIALOG_PROPOS;
    if(response)
    {
    SPD(playerid, 254, DIALOG_STYLE_INPUT, "Napisi pitanje:MORA BITI U VALIDNOM FORMATU I KONKTRETNO", "Pitanje:MORA BITI U VALIDNOM FORMATU I KONKTRETNO", "Uredu", "");
    }
    if(!response)
    {
    SPD(playerid, 254, DIALOG_STYLE_INPUT, "Napisi pitanje:MORA BITI U VALIDNOM FORMATU I KONKTRETNO", "Pitanje:MORA BITI U VALIDNOM FORMATU I KONKTRETNO", "Uredu", "");
    }
    return 1;
}
case DIALOG_PROPOA
{
    if(!response) return 1;
    if( response )
    {
        new askQ = -1;

        for( new id = 1; id < MAX_ASKQS; id++ )
        {
            if( adMaskqList[ id ][ askqSend ] == false )
            {
                askQ = id;
                break;
            }
        }

        if( askQ == -1 ) return SCM( playerid, -1, "Vec ima maksimalan broj poslatih pitanja." );

        adMaskqList[ askQ ][ askqSend ] = true;
        adMaskqList[ askQ ][ askqID ] = playerid;

        askqInfo[ playerid ][ askqSended ] = true;
        askqInfo[ playerid ][ askqAnswered ] = false;

        strmid( adMaskqList[ askQ ][ askqOwner ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
        strmid( adMaskqList[ askQ ][ askqQuestion ], inputtext, 0, strlen( inputtext ), 128 );

        SCM( playerid, -1, "Poslao si pitanje administratorima." );

        format( globalstring, sizeof( globalstring ), ""CRVENA"[Pitanje za ADMINA] %s je poslao pitanje.( /lp )", GetName( playerid ) );
        AdminGameMaster ( -1, globalstring );
    }
    return 1;
}
case DIALOG_PROPOM
{
    if(!response) return 1;
    if( response ) {
        new askQ = -1;

        for( new id = 1; id < MAX_ASKQS; id++ ) {
            if( GMaskqList[ id ][ askqSendA ] == false ) {
                askQ = id;
                break;
            }
        }

        if( askQ == -1 ) return SCM( playerid, -1, "Vec ima maksimalan broj poslatih pitanja." );

        GMaskqList[ askQ ][ askqSendA ] = true;
        GMaskqList[ askQ ][ askqIDA ] = playerid;

        askqInfo[ playerid ][ askqSended ] = true;
        askqInfo[ playerid ][ askqAnswered ] = false;

        strmid( GMaskqList[ askQ ][ askqOwnerA ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
        strmid( GMaskqList[ askQ ][ askqQuestionA ], inputtext, 0, strlen( inputtext ), 128 );

        SCM( playerid, -1, "Poslao si pitanje gamemasterima." );

        format( globalstring, sizeof( globalstring ), ""CRVENA"[Pitanje za GM] %s je poslao pitanje.( /lp )", GetName( playerid ) );
        AdminGameMaster( -1, globalstring );
    }
    return 1;
}
case DIALOG_PROPOP
{
    if( !response ) return true;
    if( response ) {
            listitem++;
            new string[ 256 ];
            if( adMaskqList[ listitem ][ askqSend ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );

            IzabraniAskQ[ playerid ] = listitem;

            format( string, sizeof( string ), "Igrac %s je poslao pitanje.\n\nPitanje: %s", adMaskqList[ listitem ][ askqOwner ], adMaskqList[ listitem ][ askqQuestion ] );

            SPD( playerid, 425, DSI, "Pitanje", string, "Odgovori", "Odustani" );
    }
    return 1;
}
case DIALOG_PROPOU
{
    if( !response ) return true;
    if( response ) {
            new text[ 1280 ],srt1[ 1280 ],srt2[ 1280 ],srt3[ 1280 ];
            if( sscanf( inputtext, "s", text ) ) return 1;

            new askid = IzabraniAskQ[ playerid ];

            if( adMaskqList[ askid ][ askqSend ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );

            adMaskqList[ askid ][ askqSend ] = false;

            new id = adMaskqList[ askid ][ askqID ];
            IzabraniAskQ[ playerid ] = -1;

            if( strcmp( GetName( id ), adMaskqList[ askid ][ askqOwner ], true ) == 0 ) {

                askqInfo[ id ][ askqAnswered ] = true;
                strmid( askqInfo[ id ][ askqAdmin ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
                strmid( askqInfo[ id ][ askqAnswer ], text, 0, strlen( text ), 128 );
                format(srt1, sizeof(srt1), ""CRVENA"[BG:RPG] "SIVA"Administrator "CRVENA"%s (ID:%d)"SIVA" je odgovorio na pitanje "CRVENA"(Pitanje ID:%d).", GetName(playerid), playerid,askid);
                SendAdminMessage(-1,srt1);
                format(srt2, sizeof(srt2), ""BELA"Poslali ste odgovor igracu (Pitanje ID:%d).", askid );
                SendClientMessage(playerid, -1,srt2);
                format(srt3, sizeof(srt3), ""BELA"Vas odgovor glasi: %s.", text);
                SendClientMessage(playerid, -1,srt3);

                SendClientMessage( id, -1, "Admin/GameMaster je odgovorio na tvoje pitanje." );
                SendClientMessage( id, -1, "Da pogledate odgovor ukucajte "SIVA"'/pogledajodgovor'." );

                strmid( adMaskqList[ askid ][ askqOwner ], "None", 0, strlen( "None" ), 32 );
                adMaskqList[ askid ][ askqID ] = -1;
            }
            else {

                if( id != IPI ) {
                    askqInfo[ id ][ askqSended ] = false;
                    askqInfo[ id ][ askqAnswered ] = false;
                    strmid( askqInfo[ id ][ askqAdmin ], "None", 0, strlen( "None" ), 32 );
                    strmid( askqInfo[ id ][ askqAnswer ], "None", 0, strlen( "None" ), 128 );
                }

                strmid( adMaskqList[ askid ][ askqOwner ], "None", 0, strlen( "None" ), 32 );
                adMaskqList[ askid ][ askqID ] = -1;
                SCM( playerid, -1, "Taj igrac nije online." );
                return 1;
            }
    }
    return 1;
}
case DIALOG_PROPON;
{
    if( !response ) return true;
    if( response ) {
            listitem++;
            new string[ 256 ];
            if( GMaskqList[ listitem ][ askqSendA ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );

            IzabraniAskQ[ playerid ] = listitem;

            format( string, sizeof( string ), "Igrac %s je poslao pitanje.\n\nPitanje: %s", GMaskqList[ listitem ][ askqOwnerA ], GMaskqList[ listitem ][ askqQuestionA ] );

            SPD( playerid, 8373, DSI, "Pitanje", string, "Odgovori", "Odustani" );
    }
    return 1;
}
if(dialogid == 8372)
{
    if( !response ) return true;
    if( response ) {
            new text[ 128 ];
            if( sscanf( inputtext, "s", text ) ) return 1;

            new askid = IzabraniAskQ[ playerid ];

            if( GMaskqList[ askid ][ askqSendA ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );

            GMaskqList[ askid ][ askqSendA ] = false;

            new id = GMaskqList[ askid ][ askqIDA ];
            IzabraniAskQ[ playerid ] = -1;

            if( strcmp( GetName( id ), GMaskqList[ askid ][ askqOwnerA ], true ) == 0 ) {

                askqInfo[ id ][ askqAnswered ] = true;
                strmid( askqInfo[ id ][ askqAdmin ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
                strmid( askqInfo[ id ][ askqAnswer ], text, 0, strlen( text ), 128 );

                SendClientMessageEx( playerid, -1, "Poslali ste odgovor igracu %s.", GMaskqList[ askid ][ askqOwnerA ] );
                SendClientMessageEx( playerid, -1, "Vas odgovor glasi: %s.", text );

                SendClientMessage( id, -1, "Admin/GM je odgovorio na tvoje pitanje." );
                SendClientMessage( id, -1, "Da pogledate odgovor ukucajte "SIVA"'/pogledajodgovor'." );

                strmid( GMaskqList[ askid ][ askqOwnerA ], "None", 0, strlen( "None" ), 32 );
                GMaskqList[ askid ][ askqIDA ] = -1;
            }
            else {

                if( id != IPI ) {
                    askqInfo[ id ][ askqSended ] = false;
                    askqInfo[ id ][ askqAnswered ] = false;
                    strmid( askqInfo[ id ][ askqAdmin ], "None", 0, strlen( "None" ), 32 );
                    strmid( askqInfo[ id ][ askqAnswer ], "None", 0, strlen( "None" ), 128 );
                }

                strmid( GMaskqList[ askid ][ askqOwnerA ], "None", 0, strlen( "None" ), 32 );
                GMaskqList[ askid ][ askqIDA ] = -1;
                SCM( playerid, -1, "Taj igrac nije online." );
                return 1;
            }
    }
    return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha