SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 19/07/2019, 09:37 PM   #21
PedroH
Huge Clucker
 
Join Date: Jul 2017
Posts: 337
Reputation: 5
Default Re: usando varias condições com if

INVALID_TEXT_DRAW serve apenas para CallBack OnPlayerClickTextDraw então deixe la mesmo.

novamente:

PHP Code:
public OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(
_:clickedid == INVALID_TEXT_DRAW){ 

        if(
GetPVarInt(playerid"Inventario")){ 

            
InventarioHide(playerid); 
        } 
      }
   return 
1

PedroH is offline   Reply With Quote
Old 19/07/2019, 09:45 PM   #22
Hatiro
Huge Clucker
 
Hatiro's Avatar
 
Join Date: Mar 2019
Posts: 384
Reputation: 10
Default Re: usando varias condições com if

Code:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) 
{ 
    if(playertextid == TDEditor_PTD[playerid][2]) 
    { 
		 PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][10]); 
         SelectTextDraw(playerid, 0xAAAAAAFF);
         return 1;
    }
   if(_:playertextid == INVALID_TEXT_DRAW){ 

        if(GetPVarInt(playerid, "Inventario")){ 

            InventarioHide(playerid); 
        } 
      } 
   if(playertextid == TDEditor_PTD[playerid][10])
       {
       	 PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][10]);
         SelectTextDraw(playerid, 0xAAAAAAFF);
         return 1;
     }
    return 1;   
}
eu aperto esc so deseleciona mais não executa
Code:
InventarioHide(playerid);
edit:blz vo coloca la
Hatiro is offline   Reply With Quote
Old 19/07/2019, 09:50 PM   #23
Hatiro
Huge Clucker
 
Hatiro's Avatar
 
Join Date: Mar 2019
Posts: 384
Reputation: 10
Default Re: usando varias condições com if

aeeew vlw ae NWDMadara e PedroH e todos que ajudaro
Hatiro is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] várias condições ao mesmo tempo Saidmrn Português/Portuguese 1 09/11/2012 08:11 PM
[DUV] Varias Câmeras Vanderson Português/Portuguese 10 29/11/2010 12:23 PM
[Ajuda] Varias *-* Baddark2131 Português/Portuguese 4 25/09/2010 02:15 AM


All times are GMT. The time now is 03:33 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.