SA-MP Forums Archive
[Ajuda] Ajuda com KEY_YES - 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: [Ajuda] Ajuda com KEY_YES (/showthread.php?tid=603984)



Ajuda com KEY_YES - Italoigt - 30.03.2016

Resolvido



Re: Ajuda com KEY_YES - F1N4L - 30.03.2016

Vc postou o cуdigo incompleto, poste a public inteira errada ou n.

PHP код:
if(newkeys == KEY_YES)
    {
        if(
PlayerToPoint1.1playerid1125.32300, -1605.3305719.99608)
        {
            
SendClientMessage(playeridVermelho,"| AVISO | бrea de risco");
        }
    else if(
newkeys == KEY_YES)
    {
        if(
PlayerToPoint1.1playerid1125.32300, -1605.3305719.99608)
        {
            
SendClientMessage(playeridVermelho,"| AVISO | бrea de risco");
        }
    else if(
newkeys == KEY_YES)
    {
        if(
PlayerToPoint1.1playerid1125.32300, -1605.3305719.99608)
        {
            
SendClientMessage(playeridVermelho,"| AVISO | бrea de risco");
        }
return 
1



Re: Ajuda com KEY_YES - Italoigt - 30.03.2016

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Vc postou o cуdigo incompleto, poste a public inteira.
isso e um exemplo '-' que tem 3


Re: Ajuda com KEY_YES - F1N4L - 30.03.2016

Quote:
Originally Posted by Italoigt
Посмотреть сообщение
isso e um exemplo '-' que tem 3
Vocк disse q pega sуmente uma vez, isso quer dizer q vc tem o cуdigo pronto na callback estando errado ou n. Й isso q eu quero, n exemplos...


Re: Ajuda com KEY_YES - Italoigt - 30.03.2016

Resolvido



Re: Ajuda com KEY_YES - Dayvison_ - 30.03.2016

Retira os returns.

@Dica, newkeys, e oldkeys recebem valores binбrios, entгo para verificar se й igual aconselho vocк usar algo como
PHP код:
if((newkeys KEY_YES) == KEY_YES



Re: Ajuda com KEY_YES - Italoigt - 30.03.2016

Quote:
Originally Posted by Day_
Посмотреть сообщение
Retira os returns.

@Dica, newkeys, e oldkeys recebem valores binбrios, entгo para verificar se й igual aconselho vocк usar algo como
PHP код:
if((newkeys KEY_YES) == KEY_YES
obg resolveu meu problema +rep