SA-MP Forums Archive
dialog naum funfando - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: dialog naum funfando (/showthread.php?tid=361442)



dialog naum funfando - jilead - 21.07.2012

ex: dialog aparesse opзao de armas ak 47 e opзao de m4a1 eu clico nas 2 e nem uma pega ai o codigo
em OnDialogResponse
PHP код:
if(dialogid == akcolt)
{
if(
response)
{
SetPlayerArmour(playerid100.0);
SetPlayerHealth(playerid100.0);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid3199999);
}
else 
//caso ele click no segundo botгo
{
SetPlayerArmour(playerid100.0);
SetPlayerHealth(playerid100.0);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid3099999);
         }
         return 
;
     } 
no comando esta :
PHP код:
ShowPlayerDialog (playerid,akcoltDIALOG_STYLE_MSGBOX"Ak 47 vs M4a1 ""Escolha a arma que voce deseja jogar ","M4A1","AK-47"); 

obrigado


Re: dialog naum funfando - Victor' - 21.07.2012

Tente assim:
pawn Код:
if(dialogid == akcolt)
{
    if(response)
    {
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 31, 99999);
        return 1;
    }
    else if(!response) //caso ele click no segundo botгo
    {
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 30, 99999);
        return 1;
    }
}



Re: dialog naum funfando - Bieeel_Cwb - 21.07.2012

mais um fake seu esse victor?


Re: dialog naum funfando - Victor' - 21.07.2012

Quote:
Originally Posted by bielzera[:
Посмотреть сообщение
mais um fake seu esse victor?


Eu fake? '-'


Re: dialog naum funfando - jilead - 21.07.2012

Quote:
Originally Posted by Victor'
Посмотреть сообщение
Tente assim:
pawn Код:
if(dialogid == akcolt)
{
    if(response)
    {
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 31, 99999);
        return 1;
    }
    else if(!response) //caso ele click no segundo botгo
    {
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 30, 99999);
        return 1;
    }
}
hehe tentei maix funfo nгo em


Re: dialog naum funfando - .FuneraL. - 21.07.2012

Mais simplificado, tenta aн

pawn Код:
if(dialogid == akcolt)
{
    if(!response) return SetPlayerArmour(playerid, 100.0), SetPlayerHealth(playerid, 100.0), ResetPlayerWeapons(playerid), GivePlayerWeapon(30, 99999);
    if(response)
    {
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 31, 99999);
        return 1;
    }
}



Re: dialog naum funfando - Schocc - 21.07.2012

a final qual erro! oque esta acontecendo de erado?


Re: dialog naum funfando - jilead - 21.07.2012

Quote:
Originally Posted by Schocc
Посмотреть сообщение
a final qual erro! oque esta acontecendo de erado?

eu clico no primeiro ou segundo botгo e e msm coisa de ter clicado em um botгo sem funзгo alguma