a question - 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: a question (
/showthread.php?tid=80409)
a question -
Futurezx - 04.06.2009
How do i get in the bottom of my screen when i am in sa:mp text like left bottom and there stands something (text)
Can someone help me?
Re: a question -
Lorrden - 04.06.2009
Search for TextDraw
Re: a question -
Futurezx - 04.06.2009
Mhh i'm in my server and i didn't show text here a screenie:
http://i39.tinypic.com/2gvu4uw.jpg
this code i have in my script. it compiled without errors/warnings
Код:
stunt = TextDrawCreate(380, 444, "Stunt 'N Fun Server");
TextDrawAlignment(stunt, 1);
TextDrawFont(stunt, 3);
TextDrawLetterSize(stunt, 5, 1);
TextDrawColor(stunt, 0xF6F6F6AA);
Re: a question -
JoshTheBoss - 04.06.2009
you should add by OnPlayerConnect:
Код:
TextDrawShowForPlayer(playerid,IDofyourtextdraw);
Re: a question -
Futurezx - 04.06.2009
Does it keep in ur screen then? the text all time you play
Re: a question -
JoshTheBoss - 04.06.2009
yes, and if you want it destroyed use this command:
Код:
if (strcmp(cmdtext, "/close", true)==0)
{
TextDrawDestroy(yourtextdrawID);
}
Re: a question -
Futurezx - 04.06.2009
1 question left :S where i find the text id? (soory if this is a dumb question)
Re: a question -
dice7 - 04.06.2009
Код:
stunt = TextDrawCreate(380, 444, "Stunt 'N Fun Server");
'stunt' is the id in this case
Re: a question -
Futurezx - 04.06.2009
Код:
error 021: symbol already defined: "TextDrawShowForPlayer"
what i do? :S
Re: a question -
Futurezx - 04.06.2009
anyone?