3dTextLabel problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3dTextLabel problem (
/showthread.php?tid=427082)
3dTextLabel problem -
sylvi - 31.03.2013
Hi, I need help with 3dtextlabel. SS:
Re: 3dTextLabel problem -
Neil. - 31.03.2013
pawn Код:
new str[24];//Let us declare a new variable
format(str,sizeof(str), "%s", NickWys(playerid));//Let's use our variable to store the players name
Create3DTextLabel(str,KOLOR_PBIALY,0.0,0.0,0.0,20.0,-1,0);//Use the variable 'str'
Re: 3dTextLabel problem -
sylvi - 31.03.2013
But i really want to use with this function:
pawn Код:
stock NickWys(playerid)
{
new nick[64], nickname[MAX_PLAYER_NAME];
GetPlayerName(playerid,nickname,MAX_PLAYER_NAME);
UnderscoreToSpace(nickname);
format(nick, sizeof(nick), "%s (ID: %d)", nickname, playerid);
strmid(NickCzatx[playerid],nickname, 0, 64, 64);
}
With this I can make ranks under the nickname (sorry for bad english :P)
eg.
pawn Код:
stock NickWys(playerid)
{
new nick[64], nickname[MAX_PLAYER_NAME];
GetPlayerName(playerid,nickname,MAX_PLAYER_NAME);
UnderscoreToSpace(nickname);
format(nick, sizeof(nick), "%s (ID: %d, %dh)", nickname, playerid, PlayerInfo[playerid][pGodziny]);
strmid(NickCzatx[playerid],nickname, 0, 64, 64);
if(GetPVarInt(playerid, "sluzba") == 1)
{
if(PlayerInfo[playerid][pFrakcja] == 3)
{
format(nick, sizeof(nick), "%s (%d)\n[UMAP]", nickname, playerid);
}
if(PlayerInfo[playerid][pFrakcja] == 8)
{
format(nick, sizeof(nick), ""KOLOR_APPD"%s (%d)\n[APPD]"BIALY"", nickname, playerid);
}
if(PlayerInfo[playerid][pFrakcja] == 4)
{
format(nick, sizeof(nick), "%s (%d)\n[APMC]", nickname, playerid);
}
if(PlayerInfo[playerid][pFrakcja] == 1)
{
format(nick, sizeof(nick), "%s (%d)\n[APN]", nickname, playerid);
}
if(PlayerInfo[playerid][pFrakcja] == 99)
{
format(nick, sizeof(nick), "%s (%d)\n[SAPD]", nickname, playerid);
}
}
}
Re: 3dTextLabel problem -
Gamer_007 - 31.03.2013
Post the pawn code please
Re: 3dTextLabel problem -
sylvi - 31.03.2013
Done, you can close