SA-MP Forums Archive
HELP! Textdraw wont appear! - 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: HELP! Textdraw wont appear! (/showthread.php?tid=298680)



HELP! Textdraw wont appear! - Joshb93 - 22.11.2011

This is my code:

At top of script

Код:
new Text:gsrp;
Under OnGameModeInit()
Код:
gsrp = TextDrawCreate(85, 466, "Grand Salvation Roleplay");
TextDrawFont(gsrp , 0);
TextDrawLetterSize(gsrp , 0.3, 2.1);
TextDrawColor(gsrp , 0xFF0000FF);
TextDrawSetOutline(gsrp , 0);
TextDrawSetProportional(gsrp , 1);
TextDrawSetShadow(gsrp , 0);
Under OnPlayerConnect(playerid)
Код:
TextDrawShowForAll(gsrp);
The textdraw doesnt show up.. any help?


Re: HELP! Textdraw wont appear! - SomebodyAndMe - 22.11.2011

Try this:
pawn Код:
TextDrawShowForAll(Text:gsrp);
-SomebodyAndMe


Re: HELP! Textdraw wont appear! - Oh - 22.11.2011

Put the filterscript in the files.


Re: HELP! Textdraw wont appear! - Joshb93 - 22.11.2011

I feel like such an idiotttt... Btw, im in teamspeak with "Oh" Thats how he knew to post that before i got here.. My dumbass forgot to put the FS in the filterscripts folder.. Please dont judge, i had an "Oh" Moment..


Re: HELP! Textdraw wont appear! - Joshb93 - 22.11.2011

Wow... i put it in there, and guess what, IT STILL DONT WORK!!


Re: HELP! Textdraw wont appear! - SomebodyAndMe - 22.11.2011

Try what I said...
Код:
TextDrawShowForAll(Text:gsrp);



Re: HELP! Textdraw wont appear! - Joshb93 - 22.11.2011

Quote:
Originally Posted by SomebodyAndMe
Посмотреть сообщение
Try what I said...
Код:
TextDrawShowForAll(Text:gsrp);
Tried that, did no good.


Re: HELP! Textdraw wont appear! - SomebodyAndMe - 22.11.2011

pawn Код:
Text:gsrp = TextDrawCreate(85, 466, "Grand Salvation Roleplay");
TextDrawFont(Text:gsrp , 0);
TextDrawLetterSize(Text:gsrp , 0.3, 2.1);
TextDrawColor(Text:gsrp , 0xFF0000FF);
TextDrawSetOutline(Text:gsrp , 0);
TextDrawSetProportional(Text:gsrp , 1);
TextDrawSetShadow(Text:gsrp , 0);
Try that..


Re: HELP! Textdraw wont appear! - CSSI - 22.11.2011

Quote:
Originally Posted by SomebodyAndMe
Посмотреть сообщение
pawn Код:
Text:gsrp = TextDrawCreate(85, 466, "Grand Salvation Roleplay");
TextDrawFont(Text:gsrp , 0);
TextDrawLetterSize(Text:gsrp , 0.3, 2.1);
TextDrawColor(Text:gsrp , 0xFF0000FF);
TextDrawSetOutline(Text:gsrp , 0);
TextDrawSetProportional(Text:gsrp , 1);
TextDrawSetShadow(Text:gsrp , 0);
Try that..
You have Already did new Text:gsp why again ? it 'd give u Errors!


Re: HELP! Textdraw wont appear! - Joshb93 - 22.11.2011

Quote:
Originally Posted by SomebodyAndMe
Посмотреть сообщение
pawn Код:
[COLOR="Red"]Text:gsrp[/COLOR] = TextDrawCreate(85, 466, "Grand Salvation Roleplay");
TextDrawFont(Text:gsrp , 0);
TextDrawLetterSize(Text:gsrp , 0.3, 2.1);
TextDrawColor(Text:gsrp , 0xFF0000FF);
TextDrawSetOutline(Text:gsrp , 0);
TextDrawSetProportional(Text:gsrp , 1);
TextDrawSetShadow(Text:gsrp , 0);
Try that..
Thats wrong.. you defined the text as gsrp, not Text:gsrp