Jump to content
  • 0

[Bug] CreateDynamic3DTextLabel


Rayan

Question

Salut, cand un jucator moare, i se creaza un Dynamic3DTextLabel

new Text3D:DeadScris[MAX_PLAYERS],
OnPlayerDeath :

DeadScris[playerid] = CreateDynamic3DTextLabel("{337BF0}[dead]", COLOR_WHITE, 0, 0, -20, 20, playerid);
        Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, DeadScris[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.31);

Ii ramane acel mesaj deasupra capului cu [dead] pana se executa OnPlayerSpawn , daca jucatorul e afk nu se exeuta si ramane cu [dead] la nume, e ok, insa, chiar daca nu e  afk , si se executa OnPlayerSpawn nu i se sterge acel text acel dynamic3dtexttabel, habar nu am de ce.

OnPlayerSpawn:

DestroyDynamic3DTextLabel(DeadScris[playerid]);
Edited by Rayan
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Acum 1 oră, Rayan a spus:

Salut, cand un jucator moare, i se creaza un Dynamic3DTextLabel


new Text3D:DeadScris[MAX_PLAYERS],

OnPlayerDeath :

DeadScris[playerid] = CreateDynamic3DTextLabel("{337BF0}[dead]", COLOR_WHITE, 0, 0, -20, 20, playerid);
        Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, DeadScris[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.31);

Ii ramane acel mesaj deasupra capului cu [dead] pana se executa OnPlayerSpawn , daca jucatorul e afk nu se exeuta si ramane cu [dead] la nume, e ok, insa, chiar daca nu e  afk , si se executa OnPlayerSpawn nu i se sterge acel text acel dynamic3dtexttabel, habar nu am de ce.

OnPlayerSpawn:


DestroyDynamic3DTextLabel(DeadScris[playerid]);

In primul rand, nu exista Destroy3DTextLabel

ci functia corecta nativa samp este: http://wiki.sa-mp.com/wiki/Delete3DTextLabel

 

Insa, daca tu creezi 3d Text labels cu streamerul atunci foloseste functiile lui ca sa le stergi, respectiv DestroyDynamic3DTextLabel(DeadScris[playerid]);

DeletePlayer3DTextLabel(playerid, DeadScris);

 

Edited by Geani

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0

Imi da warning


warning 213: tag mismatch
 warning 202: number of arguments does not match definition

concluzie nu merge, faza e ca am mai cautat in GM si e practic ok scrisa functia, insa nu ii sterge numele..

Edited by Rayan
Link to comment
Share on other sites

  • 0
Acum 5 minute, Rayan a spus:

Imi da warning


warning 213: tag mismatch
 warning 202: number of arguments does not match definition

concluzie nu merge, faza e ca am mai cautat in GM si e practic ok scrisa functia, insa nu ii sterge numele..

incearca asa 


 
new PlayerText3D:DeadScris = CreatePlayer3DTextLabel(...);
vezi si tu poate reusesti
Edited by Geani

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.