30.03.2018, 03:20
Quote:
Um simples exemplo de como se fazer, й da forma abaixo que desenvolvi.
PHP код:
|
Код:
Linha 3005: if(clickedid == textdraw_1){ Linha 3008: return true;
Код:
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; }
(300 : error 010: invalid function or declaration