[Ajuda] Abrir dialog com textdraw
#7

Quote:
Originally Posted by Cycle
Посмотреть сообщение
Um simples exemplo de como se fazer, й da forma abaixo que desenvolvi.
PHP код:
new Text:str;
public 
OnGameModeInit(){
    
str TextDrawCreate(00"0");
    
TextDrawSetSelectable(strtrue);
    return 
true;
}
public 
OnPlayerConnect(playerid){
    
TextDrawShowForPlayer(playeridstr);
    return 
true;
}
public 
OnPlayerClickTextDraw(playeridText:clickedid){
    if(
clickedid == str){
        
ShowPlayerDialog(playerid1001DIALOG_STYLE_MSGBOX"Insert""Insert""Ok""Exit");
    }
    return 
true;

Lembrando, isso foi desenvolvido para ser exposto globalmente. (All players)
deu os seguintes erros na OnPlayerClickTextDraw

Код:
Linha 3005: if(clickedid == textdraw_1){
Linha 3008: 	return true;
toda a Public
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid){
	if(clickedid == Text:INVALID_TEXT_DRAW){

		if(GetPVarInt(playerid, "vMochila") && !GetPVarInt(playerid, "guardando")){

			HideMochila(playerid);
		}
		if(GetPVarInt(playerid, "vportamala") && !GetPVarInt(playerid, "guardando")){

			HidePortaMala(playerid);
		}
	}

	if(GetPVarInt(playerid, "skinc_active") == 0) return 0;

	// Handle: They cancelled (with ESC)
	if(clickedid == Text:INVALID_TEXT_DRAW) {
		DestroySelectionMenu(playerid);
		SetPVarInt(playerid, "skinc_active", 0);
		PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
		return 1;
	}
	return 1;

}

if(clickedid == textdraw_1){
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Insert", "Insert", "Ok", "Exit");
	}
	return true;
}
(3005) : error 010: invalid function or declaration
(300 : error 010: invalid function or declaration
Reply


Messages In This Thread
Abrir dialog com textdraw - by Japis - 29.03.2018, 05:28
Re: Abrir dialog com textdraw - by SpikeCompiler - 29.03.2018, 11:25
Re: Abrir dialog com textdraw - by Japis - 29.03.2018, 14:40
Re: Abrir dialog com textdraw - by FerrariL - 29.03.2018, 17:43
Re: Abrir dialog com textdraw - by Locky_ - 29.03.2018, 18:07
Re: Abrir dialog com textdraw - by Japis - 29.03.2018, 18:07
Re: Abrir dialog com textdraw - by Japis - 30.03.2018, 03:20
Re: Abrir dialog com textdraw - by FerrariL - 30.03.2018, 03:23
Re: Abrir dialog com textdraw - by Japis - 30.03.2018, 03:26

Forum Jump:


Users browsing this thread: 1 Guest(s)