Nestaje textdraw za ime

Započeo Luka_Deen, Februar 22, 2019, 14:29:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Citat: PazzOnee poslato Februar 22, 2019, 17:04:06 POSLE PODNE
Dodaj kod onplayerdisconnect return 1;
Buraz sve radi ljepo evo testao sam dakle upalim stats jos radi normalno cim ugasim /stats nestane to

Citat: Luka_Deen poslato Februar 22, 2019, 17:05:15 POSLE PODNE
Buraz sve radi ljepo evo testao sam dakle upalim stats jos radi normalno cim ugasim /stats nestane to
Pa stavi kada drugi put ukuca stats znaci tamo gdje mu Hide Textdrawove dodaj,[pawn]PlayerTextDrawShow(playerid,Igracevnick[playerid]);
UpdateImeTD[playerid];[/pawn]

Citat: á´ á´‡á´...ʀᴀɴ.ᴀᴍx poslato Februar 22, 2019, 21:26:18 POSLE PODNE
Pa stavi kada drugi put ukuca stats znaci tamo gdje mu Hide Textdrawove dodaj,[pawn]PlayerTextDrawShow(playerid,Igracevnick[playerid]);
UpdateImeTD[playerid];[/pawn]
Ma nece brate sve zivo sam probao negdje se ocigledno mjesaju, stavljeno je to u fs i mjesa se negdje sa tim textdrawom nezz ni di da stavim taj kod bas u skrpti ne u Fs.
Ako moze neko neka mi pojasni jos malo pa da jos neki drugi nacin probam ako je ostao koji :D nezz sta da dalje radim jbg...

ljudi ja sam napravio ovako i sada mi radi ali...oce se za svakog igraca pokazivat samo njegovo ime posto je globaltd ali neznam jel znaci ista ovo [playerid] evo pogledajte
[pawn]#define FILTERSCRIPT
//-------Include-----------//
#include <a_samp>
//---------Textdraw-------//
new Text:Igracevnick[MAX_PLAYERS];
/*


*/
//-----------------------------------------------------------------//
public OnPlayerConnect(playerid)
{
   Igracevnick[playerid] = TextDrawCreate(294.700256, 413.583404, "John_Cappone");
   TextDrawLetterSize(Igracevnick[playerid], 0.358638, 1.156666);
   TextDrawAlignment(Igracevnick[playerid], 1);
   TextDrawColor(Igracevnick[playerid], -1);
   TextDrawSetShadow(Igracevnick[playerid], 0);
   TextDrawSetOutline(Igracevnick[playerid], 0);
   TextDrawBackgroundColor(Igracevnick[playerid], 51);
   TextDrawFont(Igracevnick[playerid], 1);
   TextDrawSetProportional(Igracevnick[playerid], 1);
   return 1;
}

public OnPlayerSpawn(playerid)
{
   TextDrawShowForPlayer(playerid, Igracevnick[playerid]);
   new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    TextDrawSetString(Igracevnick[playerid], name);
   return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
   TextDrawHideForPlayer(playerid, Igracevnick[playerid]);
   return 1;
}[/pawn]

[pawn]#define FILTERSCRIPT
//-------Include-----------//
#include <a_samp>
//---------Textdraw-------//
new PlayerText:Igracevnick[MAX_PLAYERS];
/*


*/
//-----------------------------------------------------------------//
public OnPlayerConnect(playerid)
{
   Igracevnick[playerid] = CreatePlayerTextDraw(294.700256, 413.583404, "John_Cappone");
   PlayerTextDrawLetterSize(playerid,playerid,Igracevnick[playerid], 0.358638, 1.156666);
   PlayerTextDrawAlignment(playerid,Igracevnick[playerid], 1);
   PlayerTextDrawColor(playerid,Igracevnick[playerid], -1);
   PlayerTextDrawSetShadow(playerid,Igracevnick[playerid], 0);
   PlayerTextDrawSetOutline(playerid,Igracevnick[playerid], 0);
   PlayerTextDrawBackgroundColor(playerid,Igracevnick[playerid], 51);
   PlayerTextDrawFont(playerid,Igracevnick[playerid], 1);
   PlayerTextDrawSetProportional(playerid,Igracevnick[playerid], 1);
   return 1;
}

public OnPlayerSpawn(playerid)
{
   TextDrawShowForPlayer(playerid, Igracevnick[playerid]);
   new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    TextDrawSetString(Igracevnick[playerid], name);
   return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
   TextDrawHideForPlayer(playerid, Igracevnick[playerid]);
   return 1;
}[/pawn]
[/quote]

Citat: á´ á´‡á´...ʀᴀɴ.ᴀᴍx poslato Februar 23, 2019, 10:19:56 PRE PODNE
[pawn]#define FILTERSCRIPT
//-------Include-----------//
#include <a_samp>
//---------Textdraw-------//
new PlayerText:Igracevnick[MAX_PLAYERS];
/*


*/
//-----------------------------------------------------------------//
public OnPlayerConnect(playerid)
{
   Igracevnick[playerid] = CreatePlayerTextDraw(294.700256, 413.583404, "John_Cappone");
   PlayerTextDrawLetterSize(playerid,playerid,Igracevnick[playerid], 0.358638, 1.156666);
   PlayerTextDrawAlignment(playerid,Igracevnick[playerid], 1);
   PlayerTextDrawColor(playerid,Igracevnick[playerid], -1);
   PlayerTextDrawSetShadow(playerid,Igracevnick[playerid], 0);
   PlayerTextDrawSetOutline(playerid,Igracevnick[playerid], 0);
   PlayerTextDrawBackgroundColor(playerid,Igracevnick[playerid], 51);
   PlayerTextDrawFont(playerid,Igracevnick[playerid], 1);
   PlayerTextDrawSetProportional(playerid,Igracevnick[playerid], 1);
   return 1;
}

public OnPlayerSpawn(playerid)
{
   TextDrawShowForPlayer(playerid, Igracevnick[playerid]);
   new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    TextDrawSetString(Igracevnick[playerid], name);
   return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
   TextDrawHideForPlayer(playerid, Igracevnick[playerid]);
   return 1;
}[/pawn]

Opet ce nestat kad tako napravim mislim mogu probat opet ali cisto sumnjam jbt nejde mi u glavu kako se uspije mijesat sa statsom ne razumijem stvarno... :/

Citat: Luka_Deen poslato Februar 23, 2019, 10:30:56 PRE PODNE
Opet ce nestat kad tako napravim mislim mogu probat opet ali cisto sumnjam jbt nejde mi u glavu kako se uspije mijesat sa statsom ne razumijem stvarno... :/
Probaj ako ne uspe onda cemo preko timera odraditi

Citat: á´ á´‡á´...ʀᴀɴ.ᴀᴍx poslato Februar 23, 2019, 10:38:27 PRE PODNE
Probaj ako ne uspe onda cemo preko timera odraditi
A nece opet Bog ga mazo poludit cu vise cijeli dan se j**** sa tim i nece nikako jedino onako oce na global

[pawn]

    PlayerTextDrawHide( playerid, Igracevnick[playerid] );
PlayerTextDrawShow(playerid, Igracevnick[playerid]);
new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    PlayerTextDrawSetString(playerid, Igracevnick[playerid], name);

[/pawn]

taj dio dodaj skroz na kraju stocka HideTextDraw ili kako vec iz /stats cmd
Znaci odma iznad return 1 ili kako vec dodaj to

Citat: --Lood-- poslato Februar 25, 2019, 09:10:43 PRE PODNE
[pawn]

    PlayerTextDrawHide( playerid, Igracevnick[playerid] );
PlayerTextDrawShow(playerid, Igracevnick[playerid]);
new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    PlayerTextDrawSetString(playerid, Igracevnick[playerid], name);

[/pawn]

taj dio dodaj skroz na kraju stocka HideTextDraw ili kako vec iz /stats cmd
Znaci odma iznad return 1 ili kako vec dodaj to
Rijeseno veliko hvala svima,moze lock,uzivajte