SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 22/09/2018, 01:47 PM   #1
Zeus666
Gangsta
 
Join Date: Mar 2015
Posts: 680
Reputation: 50
Default Asking for a textdraw (asking for script)

Hi. I am not good with placing textdraws / creating them.

Can you help me by creating this textdraw for me?

(placed in the lowest left corner of the screen)

Thanks a lot.

Zeus666 is offline   Reply With Quote
Old 22/09/2018, 03:47 PM   #2
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 281
Reputation: 72
Default Re: Asking for a textdraw (asking for script)

PHP Code:
new Text:TDEditor_TD[3];

TDEditor_TD[0] = TextDrawCreate(4.333339416.333343"ld_grav:timer");
TextDrawTextSize(TDEditor_TD[0], 20.00000024.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 4);
TextDrawSetProportional(TDEditor_TD[0], 0);

TDEditor_TD[1] = TextDrawCreate(27.000020423.540802"RELOOT_23:21");
TextDrawLetterSize(TDEditor_TD[1], 0.2360001.259851);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawSetShadow(TDEditor_TD[1], 1);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 2);
TextDrawSetProportional(TDEditor_TD[1], 1);

TDEditor_TD[2] = TextDrawCreate(10.666654422.140777"ld_pool:ball");
TextDrawTextSize(TDEditor_TD[2], 97.00000018.000000);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1331756289);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 4);
TextDrawSetProportional(TDEditor_TD[2], 0); 
Lokii is offline   Reply With Quote
Old 22/09/2018, 03:55 PM   #3
v1k1nG
Huge Clucker
 
v1k1nG's Avatar
 
Join Date: Feb 2018
Posts: 409
Reputation: 31
Default Re: Asking for a textdraw (asking for script)

A total of 3 textdraws:
- 1 normal textdraw,
- 2 model preview textdraw.

https://wiki.sa-mp.com/wiki/TextDrawSetPreviewModel
v1k1nG is offline   Reply With Quote
Old 22/09/2018, 04:03 PM   #4
Zeus666
Gangsta
 
Join Date: Mar 2015
Posts: 680
Reputation: 50
Default Re: Asking for a textdraw (asking for script)

Quote:
Originally Posted by Lokii View Post
PHP Code:
new Text:TDEditor_TD[3];

TDEditor_TD[0] = TextDrawCreate(4.333339416.333343"ld_grav:timer");
TextDrawTextSize(TDEditor_TD[0], 20.00000024.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 4);
TextDrawSetProportional(TDEditor_TD[0], 0);

TDEditor_TD[1] = TextDrawCreate(27.000020423.540802"RELOOT_23:21");
TextDrawLetterSize(TDEditor_TD[1], 0.2360001.259851);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawSetShadow(TDEditor_TD[1], 1);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 2);
TextDrawSetProportional(TDEditor_TD[1], 1);

TDEditor_TD[2] = TextDrawCreate(10.666654422.140777"ld_pool:ball");
TextDrawTextSize(TDEditor_TD[2], 97.00000018.000000);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1331756289);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 4);
TextDrawSetProportional(TDEditor_TD[2], 0); 

Hmm, thanks for your time, but it won't show. No errors shown.
Zeus666 is offline   Reply With Quote
Old 22/09/2018, 04:19 PM   #5
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 281
Reputation: 72
Default Re: Asking for a textdraw (asking for script)

Quote:
Originally Posted by v1k1nG View Post
A total of 3 textdraws:
- 1 normal textdraw,
- 2 model preview textdraw.

https://wiki.sa-mp.com/wiki/TextDrawSetPreviewModel
Sprites not model preview

Quote:
Originally Posted by Zeus666 View Post
Hmm, thanks for your time, but it won't show. No errors shown.
PHP Code:
CMD:test(playerid)
{
    for(new 
03++)
    {
        
TextDrawShoForPlayer(playeridTDEditor_TD[i]);
    }
    return 
1;

Lokii is offline   Reply With Quote
Old 22/09/2018, 04:59 PM   #6
Zeus666
Gangsta
 
Join Date: Mar 2015
Posts: 680
Reputation: 50
Default Re: Asking for a textdraw (asking for script)

Quote:
Originally Posted by Lokii View Post
Sprites not model preview



PHP Code:
CMD:test(playerid)
{
    for(new 
03++)
    {
        
TextDrawShoForPlayer(playeridTDEditor_TD[i]);
    }
    return 
1;


It works, thanks. I just figured it out where to put it.

Anyway

How can I set this pattern

PHP Code:
    TDEditor_TD[1] = TextDrawCreate(27.000020423.540802"RESPAWN IN %s ");
    
TextDrawLetterSize(TDEditor_TD[1], 0.2360001.259851);
    
TextDrawAlignment(TDEditor_TD[1], 1);
    
TextDrawColor(TDEditor_TD[1], -1);
    
TextDrawSetShadow(TDEditor_TD[1], 1);
    
TextDrawBackgroundColor(TDEditor_TD[1], 255);
    
TextDrawFont(TDEditor_TD[1], 2);
    
TextDrawSetProportional(TDEditor_TD[1], 1); 

PHP Code:
%timer RespawnGeneral[1800000]() 
Zeus666 is offline   Reply With Quote
Old 22/09/2018, 05:03 PM   #7
Undef1ned
Big Clucker
 
Undef1ned's Avatar
 
Join Date: Aug 2018
Location: Venezuela
Posts: 191
Reputation: 14
Default Re: Asking for a textdraw (asking for script)

¿This?

PHP Code:
new str[25]; format(strsizeof str"RESPAWN IN %d"RespawnGeneral[1800000]);
TextDrawSetString(TDEditor_TD[1], str); 
Undef1ned is offline   Reply With Quote
Old 22/09/2018, 05:14 PM   #8
KinderClans
Banned
 
Join Date: May 2018
Location: Italy
Posts: 749
Reputation: 43
Default Re: Asking for a textdraw (asking for script)

Quote:
Originally Posted by Lokii View Post
PHP Code:
new Text:TDEditor_TD[3];

TDEditor_TD[0] = TextDrawCreate(4.333339416.333343"ld_grav:timer");
TextDrawTextSize(TDEditor_TD[0], 20.00000024.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 4);
TextDrawSetProportional(TDEditor_TD[0], 0);

TDEditor_TD[1] = TextDrawCreate(27.000020423.540802"RELOOT_23:21");
TextDrawLetterSize(TDEditor_TD[1], 0.2360001.259851);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawSetShadow(TDEditor_TD[1], 1);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 2);
TextDrawSetProportional(TDEditor_TD[1], 1);

TDEditor_TD[2] = TextDrawCreate(10.666654422.140777"ld_pool:ball");
TextDrawTextSize(TDEditor_TD[2], 97.00000018.000000);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1331756289);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 4);
TextDrawSetProportional(TDEditor_TD[2], 0); 
Which editor you used to make this textdraw?
KinderClans is offline   Reply With Quote
Old 22/09/2018, 05:33 PM   #9
Zeus666
Gangsta
 
Join Date: Mar 2015
Posts: 680
Reputation: 50
Default Re: Asking for a textdraw (asking for script)

Quote:
Originally Posted by Undef1ned View Post
¿This?

PHP Code:
new str[25]; format(strsizeof str"RESPAWN IN %d"RespawnGeneral[1800000]);
TextDrawSetString(TDEditor_TD[1], str); 

PHP Code:
 error 028invalid subscript (not an array or too many subscripts): "RespawnGeneral"
 
warning 215expression has no effect
 
error 001expected token";"but found "]"
 
error 029invalid expressionassumed zero
 
fatal error 107too many error messages on one line 
Zeus666 is offline   Reply With Quote
Old 22/09/2018, 08:38 PM   #10
Undef1ned
Big Clucker
 
Undef1ned's Avatar
 
Join Date: Aug 2018
Location: Venezuela
Posts: 191
Reputation: 14
Default Re: Asking for a textdraw (asking for script)

Quote:
Originally Posted by KinderClans View Post
Which editor you used to make this textdraw?
TD Editor 1.7 By Adri1

Quote:
Originally Posted by Zeus666 View Post
PHP Code:
 error 028invalid subscript (not an array or too many subscripts): "RespawnGeneral"
 
warning 215expression has no effect
 
error 001expected token";"but found "]"
 
error 029invalid expressionassumed zero
 
fatal error 107too many error messages on one line 
You must place your variable "RespawnGeneral" well, I only just gave you an example.
Undef1ned 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
[Script]Textdraw Help dennissk Scripting Help 0 11/09/2013 04:15 AM
[FilterScript] Away script [Textdraw] BlackBank Filterscripts 8 03/09/2012 12:39 PM
Help with Zamoroht TextDraw Script! Quinlynn Server Support 2 18/03/2012 12:19 AM
A Textdraw isn't showing (script 100% right) Jochemd Bug Reports 13 03/07/2011 03:35 PM
textdraw script please cssbart Help Archive 9 22/03/2010 05:15 PM


All times are GMT. The time now is 11:18 PM.


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