Wysłany: 2013-02-09, 21:14
HasciQ
Wiek: 36 Na forum: 4868 dni Posty: 44
Nick w MP: HasciQ
Piwa : 1
wiec mam problem nie wiem jak zmienic to
Kod:
Attach3DTextLabelToPlayer(Nick[playerid], playerid, 0.0, 0.0, 0.2);
Nick[playerid] = Create3DTextLabel("Testy", 0xFFFFFFFF, 0.0, 0.0, 0.0, 10, 1);
tam gdzie testy chce da? nick i id w przyk?adzie " HasciQ(1) "
Wysłany: 2013-02-09, 21:34
Wafelowski
Wiek: 29 Na forum: 5347 dni Posty: 428
Piwa : 100
no to musisz wykorzysta? formata do tego + funkcja na pobieranie nick.
Przyk?ad:
Kod:
new str[27];
format(str, sizeof(str), "%s (%d)", PlayerName(playerid), playerid);
Nick[playerid] = Create3DTextLabel(str, 0xFFFFFFFF, 0.0, 0.0, 0.0, 10, 1);
+ moja funkcja PlayerName:
Kod: stock PlayerName(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
return pname;
}
Gdzie? na dole skryptu.
Wysłany: 2013-02-28, 18:09
HasciQ
Wiek: 36 Na forum: 4868 dni Posty: 44
Nick w MP: HasciQ
Piwa : 1
ale teraz nic nie mam,
Kod: new string[27];
format(string, sizeof(string), "%s (%d)", PlayerName(playerid), playerid);
Nick[playerid] = Create3DTextLabel(string, GetPlayerColor(playerid), 0.0, 0.0, 0.0, 10, 1);//3dtext...
Wysłany: 2013-02-28, 18:19
Wafelowski
Wiek: 29 Na forum: 5347 dni Posty: 428
Piwa : 100
A przyczepi?e? wgl. ten 3D Text do gracza? Pod tym moim kodem daj: Kod: Attach3DTextLabelToPlayer(Nick[playerid], playerid, 0.0, 0.0, 0.2);
Wysłany: 2013-02-28, 18:25
HasciQ
Wiek: 36 Na forum: 4868 dni Posty: 44
Nick w MP: HasciQ
Piwa : 1
ale teraz nic nie mam,
Kod: new string[27];
format(string, sizeof(string), "%s (%d)", PlayerName(playerid), playerid);
Nick[playerid] = Create3DTextLabel(string, GetPlayerColor(playerid), 0.0, 0.0, 0.0, 10, 1);//3dtext...
[ Dodano : 2013-02-28, 18:26 ]
musze mie? do tego jakies include? jakies pliki
?
w mapie nie mam ?adnych bled?w ale nie dziala,a jak zmienie te string na jakis tekst wtedy jest okej
Tagi: jak :: zrobić :: nick :: 3dtext?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: