#1

Код:
new rank = GetPlayerRank(playerid);
Create3DTextLabel("Rank: %s",0x008080FF,-2062.5583,237.4662,37.7149,40.0,0, rank);
It shows this:
Reply
#2

It sure does show that.

Leanr how to use FORMAT.
Reply
#3

pawn Код:
new rank = GetPlayerRank(playerid),
string[ 64 ];
format(string, sizeof(string), "Rank: %s", rank);
Create3DTextLabel(string,0x008080FF,-2062.5583,237.4662,37.7149,40.0,0);
I suggest you to read this: https://sampwiki.blast.hk/wiki/Format
Reply
#4

*removed the code*
Reply
#5

anyone?
Reply
#6

Код:
new str[128];
new PR = PInfo[playerid][Rank];
format(str, 128, "Rank: %d: \"%s\"", PR, RankInfo[PR][RName]);
new attach[MAX_PLAYERS]; 
attach[playerid] = Create3DTextLabel(str,0x008080FF,-2062.5583,237.4662,37.7149,40.0,0); // ERROR LINE
Attach3DTextLabelToPlayer(attach[playerid],playerid,0,0,0.30);
Reply
#7

Last 2 lines tag mismatches i checked everything but i cant find solution :/
Reply
#8

one word: new.
Код:
new attach[playerid] = Create3DTextLabel(str,0x008080FF,-2062.5583,237.4662,37.7149,40.0,0);
if that works, and u want that rank displayed for all players, then try that line at top in your script:
Код:
new attach[MAX_PLAYERS][32] = Create3DTextLabel(str,0x008080FF,-2062.5583,237.4662,37.7149,40.0,0);
it will create an array for all players, 32 should be enough for a maximum namelenght of 20 characters in sa-mp, but maybe u want to add some name/clan-tags
Reply
#9

removed the code*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)