staleczka12
Wiek: 29 Na forum: 6296 dni Posty: 29
Piwa : 287
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 ( playerid , 2 , DIALOG_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!" , 5000 , 1 );
}
case 2 : // The third item listed
{
GameTextForPlayer ( playerid , "Bumcyfksz!" , 5000 , 1 );
}
case 3 : // The first item listed
{
GameTextForPlayer ( playerid , "Bumcyfksz!" , 5000 , 1 );
}
case 4 : // The second item listed
{
GameTextForPlayer ( playerid , "Bumcyfksz!" , 5000 , 1 );
}
case 5 : // The third item listed
{
GameTextForPlayer ( playerid , "Bumcyfksz!" , 5000 , 1 );
}
case 6 : // The first item listed
{
GameTextForPlayer ( playerid , "Bumcyfksz!" , 5000 , 1 );
}
case 7 : // The second item listed
{
GameTextForPlayer ( playerid , "Bumcyfksz!" , 5000 , 1 );
}
case 8 : // The third item listed
{
GameTextForPlayer ( playerid , "Bumcyfksz!" , 5000 , 1 );
}
case 9 : // The third item listed
{
GameTextForPlayer ( playerid , "Bumcyfksz!" , 5000 , 1 );
}
}
}
}
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 ( playerid , 0xFFFFFF , "You don't have enough cash." );
GivePlayerMoney ( playerid , - 2 );
SetPlayerSpecialAction ( playerid , SPECIAL_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