SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 26/07/2015, 03:52 PM   #1
ivan73
Little Clucker
 
Join Date: Apr 2011
Posts: 5
Reputation: 0
Default Textdraw problem!

I have a problem with textdraws, when the server switch to version 0.3.7, some textdraws will not be shown publicly, to 0.3.z doing everything normal..

Sorry for my bad english!
ivan73 is offline   Reply With Quote
Old 26/07/2015, 04:05 PM   #2
nGen.SoNNy
High-roller
 
nGen.SoNNy's Avatar
 
Join Date: Sep 2009
Location: Romania
Posts: 1,001
Reputation: 65
Default Re: Textdraw problem!

Show us your code...we are not magicians
__________________
If i've helped you, please click
nGen.SoNNy is offline   Reply With Quote
Old 26/07/2015, 04:30 PM   #3
ivan73
Little Clucker
 
Join Date: Apr 2011
Posts: 5
Reputation: 0
Default Re: Textdraw problem!

Code:
new Text:tdLog1;
new Text:tdLog2;
new Text:tdLog3;
new Text:tdLog4;
new Text:tdLog5;
new Text:tdLog6;
new Text:tdLog7;

tdLog1 = TextDrawCreate(317.085296, 54.805240, "Logiranje");
TextDrawLetterSize(tdLog1, 0.496398, 2.914132);
TextDrawTextSize(tdLog1, 1230.400634, 655.573364);
TextDrawAlignment(tdLog1, 2);
TextDrawColor(tdLog1, -5963521);
TextDrawUseBox(tdLog1, true);
TextDrawBoxColor(tdLog1, 255);
TextDrawSetShadow(tdLog1, 0);
TextDrawSetOutline(tdLog1, 0);
TextDrawBackgroundColor(tdLog1, -1);
TextDrawFont(tdLog1, 2);
TextDrawSetProportional(tdLog1, 1);

tdLog2 = TextDrawCreate(283.999938, 149.333282, "Login");
TextDrawLetterSize(tdLog2, 0.545199, 2.137599);
TextDrawAlignment(tdLog2, 1);
TextDrawColor(tdLog2, -1);
TextDrawSetShadow(tdLog2, 0);
TextDrawSetOutline(tdLog2, 1);
TextDrawBackgroundColor(tdLog2, 51);
TextDrawFont(tdLog2, 2);
TextDrawSetProportional(tdLog2, 1);
TextDrawSetSelectable(tdLog2, true);
TextDrawSetSelectable(tdLog2, true);

tdLog3 = TextDrawCreate(276.800018, 200.106597, "Novosti");
TextDrawLetterSize(tdLog3, 0.471600, 2.033066);
TextDrawAlignment(tdLog3, 1);
TextDrawColor(tdLog3, -1);
TextDrawSetShadow(tdLog3, 0);
TextDrawSetOutline(tdLog3, 1);
TextDrawBackgroundColor(tdLog3, 51);
TextDrawFont(tdLog3, 2);
TextDrawSetProportional(tdLog3, 1);
TextDrawSetSelectable(tdLog3, true);

tdLog4 = TextDrawCreate(229.600021, 256.106719, "www.forum-od.com");
TextDrawLetterSize(tdLog4, 0.458800, 1.988267);
TextDrawAlignment(tdLog4, 1);
TextDrawColor(tdLog4, -1);
TextDrawSetShadow(tdLog4, 0);
TextDrawSetOutline(tdLog4, 1);
TextDrawBackgroundColor(tdLog4, 51);
TextDrawFont(tdLog4, 2);
TextDrawSetProportional(tdLog4, 1);

tdLog5 = TextDrawCreate(430.000091, 241.180114, "usebox");
TextDrawLetterSize(tdLog5, 0.000000, 5.182592);
TextDrawTextSize(tdLog5, 222.799972, 0.000000);
TextDrawAlignment(tdLog5, 1);
TextDrawColor(tdLog5, 0);
TextDrawUseBox(tdLog5, true);
TextDrawBoxColor(tdLog5, 102);
TextDrawSetShadow(tdLog5, 0);
TextDrawSetOutline(tdLog5, 0);
TextDrawFont(tdLog5, 0);

tdLog6 = TextDrawCreate(430.000030, 186.673355, "usebox");
TextDrawLetterSize(tdLog6, 0.000000, 5.096666);
TextDrawTextSize(tdLog6, 222.799987, 0.000000);
TextDrawAlignment(tdLog6, 1);
TextDrawColor(tdLog6, 0);
TextDrawUseBox(tdLog6, true);
TextDrawBoxColor(tdLog6, 102);
TextDrawSetShadow(tdLog6, 0);
TextDrawSetOutline(tdLog6, 0);
TextDrawFont(tdLog6, 0);

tdLog7 = TextDrawCreate(429.999969, 133.659957, "usebox");
TextDrawLetterSize(tdLog7, 0.000000, 4.957407);
TextDrawTextSize(tdLog7, 222.800003, 0.000000);
TextDrawAlignment(tdLog7, 1);
TextDrawColor(tdLog7, 0);
TextDrawUseBox(tdLog7, true);
TextDrawBoxColor(tdLog7, 102);
TextDrawSetShadow(tdLog7, 0);
TextDrawSetOutline(tdLog7, 0);
TextDrawFont(tdLog7, 0);

TextDrawShowForPlayer(playerid, tdLog1);
TextDrawShowForPlayer(playerid, tdLog2);
TextDrawShowForPlayer(playerid, tdLog3);
TextDrawShowForPlayer(playerid, tdLog4);
TextDrawShowForPlayer(playerid, tdLog5);
TextDrawShowForPlayer(playerid, tdLog6);
TextDrawShowForPlayer(playerid, tdLog7);
SelectTextDraw(playerid, 0xFF4500FF);

code is ok
ivan73 is offline   Reply With Quote
Old 26/07/2015, 06:58 PM   #4
thaKing
Huge Clucker
 
thaKing's Avatar
 
Join Date: Feb 2014
Location: Mushroom fields
Posts: 299
Reputation: 37
Default Re: Textdraw problem!

You should use player text draws for login.
http://wiki.sa-mp.com/wiki/CreatePlayerTextDraw
thaKing is offline   Reply With Quote
Old 27/07/2015, 02:10 AM   #5
ivan73
Little Clucker
 
Join Date: Apr 2011
Posts: 5
Reputation: 0
Default Re: Textdraw problem!

It does not help, what does the right createplayertextdraw or textdrawcreate!
ivan73 is offline   Reply With Quote
Old 27/07/2015, 07:34 AM   #6
gurmani11
Huge Clucker
 
gurmani11's Avatar
 
Join Date: Dec 2012
Location: Multan, Pakistan
Posts: 361
Reputation: 18
Default Re: Textdraw problem!

Code:
createplayertextdraw
It specifies for a specific player
Code:
textdrawcreate
It is for global usage/ mostly used under
Code:
OnGameModeInIt
gurmani11 is offline   Reply With Quote
Old 27/07/2015, 04:29 PM   #7
ivan73
Little Clucker
 
Join Date: Apr 2011
Posts: 5
Reputation: 0
Default Re: Textdraw problem!

I know all that, but not an error in the code, but when I switch on the server version 0.3.7, will not they show
ivan73 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textdraw problem Lidor124 Scripting Help 10 19/02/2014 12:48 PM
textdraw problem or timer problem Chrisli520 Scripting Help 1 26/10/2013 08:10 AM
Textdraw problem [Small problem] [+rep] Twinki1993 Scripting Help 8 03/02/2012 03:54 AM
Textdraw's problem.. gtachile Help Archive 7 02/06/2010 04:24 AM
Textdraw problem. Razvann Help Archive 13 22/03/2010 01:34 PM


All times are GMT. The time now is 02:22 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.