Textdraw help - 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: Textdraw help (
/showthread.php?tid=639382)
Textdraw help -
N0FeaR - 16.08.2017
Trying to make a textdraw for locations but it won't update when i enter a new area maybe you can see whats wrong here.
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
Mapdraw[i] = TextDrawCreate(34.000000, 326.000000, "");
TextDrawBackgroundColor(Mapdraw[i], 255);
TextDrawFont(Mapdraw[i], 2);
TextDrawLetterSize(Mapdraw[i], 0.190000, 1.199999);
TextDrawColor(Mapdraw[i], -1);
TextDrawSetOutline(Mapdraw[i], 0);
TextDrawSetProportional(Mapdraw[i], 1);
TextDrawSetShadow(Mapdraw[i], 1);
}
pawn Код:
stock LoadAreaPl(playerid, type, num)
{
new string[128];
switch(type)
{
case 0: format(string, 128, "%s", GetPlayerArea(playerid));
case 1: format(string, 128, "%s", HouseInfo[num][hAdress]);
case 2: format(string, 128, "%s", DoorInfo[num][dName]);
case 3: format(string, 128, "%s", BusinessInfo[num][bName]);
case 5: string="Interior";
}
if(PlayerInfo[playerid][pHud] == 1) TextDrawSetString(Mapdraw[playerid], string), TextDrawShowForPlayer(playerid, Mapdraw[playerid]);
return true;
}
Re: Textdraw help -
Paulice - 16.08.2017
Use Per-Player TextDraws, DuDe!!!
Re: Textdraw help -
N0FeaR - 16.08.2017
Quote:
Originally Posted by Paulice
User Per-Player TextDraws, DuDe!!!
|
Would that even help?
Re: Textdraw help -
Paulice - 16.08.2017
Quote:
Originally Posted by N0FeaR
Would that even help?
|
What Does Using Global TextDraws Do For You? Nothing! Global TextDraws Are Not Made For This! There Is A Limit! 1 Per-Player TextDraw = 1,000 Global TextDraws In Your Case!