Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-04-16, 18:37


staleczka12







Wiek: 29
Na forum: 6296 dni
Posty: 29

Piwa: 287

Respekt: 53

Ostrzeżeń: 40%
Witam wiecie mo?e jak zrobi?, gdy otwieram pierwsze okno wybieram np. 1 opcje otwiera mi nastepne gui i 1 buttonem wracam do poprzedniego gui ?

Pawn

if(response)// They pressed the first button.
    {
    switch(dialogid == 0)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
        {
        case 1:// Our dialog!
            {
               switch(listitem)// Checking which listitem was selected
            {
                case 0:// The first item listed
                {
                    ShowPlayerDialog(playerid2DIALOG_STYLE_LIST"{ADFF2F}K{FFFFFF}omendy {ADFF2F}S{FFFFFF}erwerowe. -> {ADFF2F}C{FFFFFF}md.""{FFFFFF}>>  {ADFF2F}/100hp - Uzdrawiasz si? za $3000.\n{ADFF2F}/v - Respawn pojazd?w.\n""Akceptuje""Wyjscie");
                }
                case 1// The second item listed
                {
                    GameTextForPlayer(playerid"Bumcyfksz!"50001);
                }
                case 2// The third item listed
                {
                    GameTextForPlayer(playerid"Bumcyfksz!"50001);
                }
                case 3:// The first item listed
                {
                    GameTextForPlayer(playerid"Bumcyfksz!"50001);
                }
                case 4// The second item listed
                {
                    GameTextForPlayer(playerid"Bumcyfksz!"50001);
                }
                case 5// The third item listed
                {
                    GameTextForPlayer(playerid"Bumcyfksz!"50001);
                }
                case 6:// The first item listed
                {
                    GameTextForPlayer(playerid"Bumcyfksz!"50001);
                }
                case 7// The second item listed
                {
                    GameTextForPlayer(playerid"Bumcyfksz!"50001);
                }
                case 8// The third item listed
                {
                    GameTextForPlayer(playerid"Bumcyfksz!"50001);
                }
                case 9// The third item listed
                {
                    GameTextForPlayer(playerid"Bumcyfksz!"50001);
                }
                
                
                
                
            }
            }
    }
    
    switch(dialogid == 2)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
        {
        case 1:// Our dialog!
            {
               switch(listitem)// Checking which listitem was selected
            {
                case 0:// The first item listed
                {
                
                }
                case 1// The second item listed
                {
                    if(GetPlayerMoney(playerid) < 2) return SendClientMessage(playerid0xFFFFFF"You don't have enough cash.");
                    GivePlayerMoney(playerid, -2);
                    SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_BEER);
                }
                
            }
            }
    }
    }


btw. cz?sto pokazuje mi si? error ze linijka jest za dluga, jak wypisze all cmd w gui tez sie pokaze wiece jak mozna ominac to ? ;>

Ostatnio zmieniony przez staleczka12 2012-04-16, 19:19, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-16, 19:04


BraYaN_







Wiek: 34
Na forum: 6602 dni
Posty: 276
Nick w MP: BraYaN_

Piwa: 1614

Respekt: 63

[nt]

Postaw piwo autorowi tego posta
 

 
Tagi: pomoc :: przy :: gui
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Pomoc przy gui Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku