nexquery / samp-textdraw-streamer

A simple plugin for sa-mp and open.mp to break the limits of textdrawings.
Apache License 2.0
34 stars 7 forks source link

as textdraw ficou bugada. #32

Open Vecprogramador opened 6 months ago

Vecprogramador commented 6 months ago

então amigo vou explicar, eu baixei e instalei o plugin corretamente na gamemode, mais tenho algumas duvidas pois as textdraw funcionou mais ficou bugadas, como por exemplo, alguns botões da textdraw não funciona e alguns até mesmo trocaram de função, e as previl model ficou bugada, agora vai as duvidas, as callbacks que precisa mudar é.

public OnPlayerClickTextDraw(playerid, Text:clickedid), para public OnClickDynamicTextDraw(playerid, Text:textid) e mudar a public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) para public OnClickDynamicPlayerTextDraw(playerid, PlayerText:textid) certo? e tipo como é uma gamemode que ja tem muitos sistemas sé eu mudar o "Text:clickedid e o PlayerText:playertextid para, textid" vai dar algum problema, e sé eu mudar devo fazer isso em todo o sistema que usa Text:clickedid e o PlayerText:playertextid da gamemode?

e com respeito as hooks? eu uso essas mesmas callbacks em hook eu devo fazer as alterações nessas callbakcs também mudando de hook OnPlayerClickTextDraw(playerid, Text:clickedid), para hook OnClickDynamicTextDraw(playerid, Text:textid) e assim por diante?

nexquery commented 6 months ago

Só deve utilizar as chamadas de retorno do plugin. Se tiver ganchos, deve também adaptá-los às chamadas de retorno do plugin.

Vecprogramador commented 6 months ago

então eu devo adaptar todo o sistema da da gamemode com "textid"? e tipo quando for add o plugin da serve.cfg, tem preferencia de add o plugin atraz de algum outro? e quando eu mudo a hook, OnPlayerClickPlayerTD(playerid, PlayerText:playertextid) para OnClickDynamicPlayerTextDraw(playerid, PlayerText:textid) e da uma viso warning 200: symbol "@yH_OnClickDynamicPlayerTextDra" is truncated to 31 characters. isso na hook.

nexquery commented 6 months ago

Utilizar abreviaturas:

DEFINE_HOOK_REPLACEMENT__(Dynamic, Dyn);

hook OnClickDynPlayerTextDraw(playerid, PlayerText:textid)
{
    return 0;
}
Vecprogramador commented 6 months ago

imagem_2024-03-29_174524075

olha ai cara eu abreviei a callbcak, e mesmo assim o sistema de inventario esta bugado, por exemplo quando clico em próximo sai da textdraw mais ela não some da tela e quando clico no X ele não faz nada.

nexquery commented 6 months ago

Tenho dificuldade em traduzir a sua língua, pode explicar em pormenor em inglês?

Vecprogramador commented 6 months ago

Look man, I abbreviated callbcak, and even so the inventory system is bugged, for example when I click on next the textdraw leaves but it doesn't disappear from the screen and when I click on the X it doesn't do anything. That's what I said at the bottom of the image, and not to mention that when I click on the object it shows in the Preview_Model on the right side above the user "VITOLO-PL#0376" Call me on discord if you have it, please I really need to correct it and use your plugin

Vecprogramador commented 6 months ago

Do you already know what the problem could be?

You can write in your own language, I use Google Translate

nexquery commented 6 months ago

I don't quite understand your problem yet. Are the textdraws not showing properly? Or are you having problems with hooking callbacks and forwarded IDs?

Vecprogramador commented 6 months ago

they are not being displayed correctly and it is also not working as it should, in the photo above the inventory before using the plugin worked correctly, now it is not working as it should

nexquery commented 6 months ago

I think there is a problem with the plugin. Most people say it doesn't display properly. Add me on discord and let's solve the bug. Discord: benburakya

Vecprogramador commented 6 months ago

I sent you the friend request I'm veczinho tv with the green profile photo