Textdraw word shortage - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw word shortage (
/showthread.php?tid=155401)
Textdraw word shortage -
Naxix - 18.06.2010
Hello, i have been working on a rank system, and it works greate tho, when the textdraw should show the rank is shorten the word.
e.g Private is "P"
pawn Код:
forward Textdraw(playerid);
public Textdraw(playerid)
{
new str[128],Rank = pi[playerid][Level],Newrank = (pi[playerid][Level] + 1);
format(str,sizeof(str),"Rank: %s~n~Level: %d~n~Exp: %d~n~Exp Needed: %d",ri[Rank][Rname],Rank,pi[playerid][Exp],ri[Newrank][Req]);
TextDrawSetString(Stats[playerid],str);
}
I use this line to create the rank:
Код:
NewRank(0, "Private", 0);
and "Private" is the Rank name(Rname)
i use this stock to make the rank:
Код:
stock NewRank(rankID, const Name[], Requirement)
{
TotalRanks++;
format(ri[rankID][Rname],64,"%s", Name);
ri[rankID][Req] = Requirement;
}
And i just can't seem to find the problem.
Re: Textdraw word shortage -
Anthony_Brassi - 18.06.2010
new str[450];
that's what mines at.
Re: Textdraw word shortage -
Naxix - 18.06.2010
Quote:
Originally Posted by Anthony_Brassi
new str[450];
that's what mines at.
|
It's not the length of the string. Thanks tho.