Textdraw - 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 (
/showthread.php?tid=128500)
Textdraw -
keujh - 18.02.2010
Hey, what's up? i got a textdraw that i would like to use, how do i use it.. i mean where do i put it in my code to allow it to show up in my script?.
Код:
new Text:servername;
servername = TextDrawCreate(405, 294, "Text Draw Helper");
TextDrawLetterSize(Text:servername, 1, 2);
TextDrawTextSize(Text:servername, 0, 0);
TextDrawAlignment(Text:servername, 0);
TextDrawColor(Text:servername, 48042);
TextDrawUseBox(Text:servername, 0);
TextDrawSetShadow(Text:servername, 2);
TextDrawBoxColor(Text:servername, 866792362);
TextDrawSetOutline(Text:servername, 0);
TextDrawBackgroundColor(Text:servername, 170);
TextDrawFont(Text:servername, 1);
TextDrawSetProportional(Text:servername, 1);
Any help is appreciated, thanks a bunch.
Re: Textdraw -
[HiC]TheKiller - 18.02.2010
pawn Код:
public OnGameModeInit()
{
new Text:servername;
servername = TextDrawCreate(405, 294, "Text Draw Helper");
TextDrawLetterSize(Text:servername, 1, 2);
TextDrawTextSize(Text:servername, 0, 0);
TextDrawAlignment(Text:servername, 0);
TextDrawColor(Text:servername, 48042);
TextDrawUseBox(Text:servername, 0);
TextDrawSetShadow(Text:servername, 2);
TextDrawBoxColor(Text:servername, 866792362);
TextDrawSetOutline(Text:servername, 0);
TextDrawBackgroundColor(Text:servername, 170);
TextDrawFont(Text:servername, 1);
TextDrawSetProportional(Text:servername, 1);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, servername);
return 1;
}
Re: Textdraw -
keujh - 18.02.2010
Thanks, for the quick reply!.
Re: Textdraw -
keujh - 18.02.2010
But, I'm getting an error.
Undefined Symbol: new Text

ervername;
What do i do?
PS: I apologize for the double post.
Re: Textdraw -
[HiC]TheKiller - 18.02.2010
Put
At the top of your script.
Re: Textdraw -
keujh - 18.02.2010
Okay, well now it's just not showing up where it's suppose to? what the hell am i doing wrong... grr... so any ideas?
EDIT: Nvm i got it to work using your textdraw maker! so thank you so much.
EDIT: You are awesome!