[AJUDA] TextDraw
#1

Tenho um TextDraw escrito "ID:" como eu faзo pra quando o player logar aparecer o ID dele ali ?

Obs: O text que eu uso fica aparecendo sempre.


Agradeзo desde jб



@Edit

Que atualize de 5 em 5 minutos de preferencia
Reply
#2

Posta os code nao intendi nada
Reply
#3

Eu tenho o TextDraw pronto e ele fica perto do life escrito "ID:", eu quero que quando o cara logue mostre o ID dele no textdraw.

Entendeu ?
Reply
#4

pawn Код:
new Text:LOL[MAX_PLAYERS];

//OnGameModeInit
for(new i = 0; i < MAX_PLAYERS; i++)
{
    LOL[i] = TextDrawCreate(......
}

//OnPlayerConnect
new LOL2[7];
format(LOL2,sizeof(LOL2),"%d",playerid);
TextDrawSetString(LOL[playerid],LOL2);
TextDrawShowForPlayer(playerid, LOL[playerid]);
Isso?
Reply
#5

@ Edit Ja Responderam
Reply
#6

Vou testar e dou um edit .
Reply
#7

Agora como eu faзo isso com Nomes ?

Malz o double D;
Reply
#8

Ve a Definiзao no seu GameMode Mas Tente
pawn Код:
playername
Reply
#9

Nгo funcionou nenhum dos dois, vou tentar dar um jeito kkk
Reply
#10

Quote:
Originally Posted by isli27
Посмотреть сообщение
Agora como eu faзo isso com Nomes ?

Malz o double D;
pawn Код:
new Text:LOL[MAX_PLAYERS];

//OnGameModeInit
for(new i = 0; i < MAX_PLAYERS; i++)
{
    LOL[i] = TextDrawCreate(......
}

//OnPlayerConnect
new LOL2[7], Nome[24];
GetPlayerName(playerid, Nome,sizeof(Nome));
format(LOL2,sizeof(LOL2),"%s",Nome);
TextDrawSetString(LOL[playerid],LOL2);
TextDrawShowForPlayer(playerid, LOL[playerid]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)