SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 22/09/2018, 12:47 PM   #1
Zeus666
Gangsta
 
Join Date: Mar 2015
Posts: 628
Reputation: 46
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 online now   Reply With Quote
Old 22/09/2018, 02:47 PM   #2
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 282
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, 02:55 PM   #3
v1k1nG
Huge Clucker
 
v1k1nG's Avatar
 
Join Date: Feb 2018
Location: 𝕯𝖗𝖆𝖐𝖐𝖆𝖗
Posts: 269
Reputation: 14
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 online now   Reply With Quote
Old 22/09/2018, 03:03 PM   #4
Zeus666
Gangsta
 
Join Date: Mar 2015
Posts: 628
Reputation: 46
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 online now   Reply With Quote
Old 22/09/2018, 03:19 PM   #5
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 282
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, 03:59 PM   #6
Zeus666
Gangsta
 
Join Date: Mar 2015
Posts: 628
Reputation: 46
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 online now   Reply With Quote
Old 22/09/2018, 04:03 PM   #7
Undef1ned
Big Clucker
 
Undef1ned's Avatar
 
Join Date: Aug 2018
Location: Venezuela
Posts: 188
Reputation: 12
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, 04:14 PM   #8
KinderClans
Gangsta
 
KinderClans's Avatar
 
Join Date: May 2018
Location: Italy
Posts: 643
Reputation: 36
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?
__________________
LSS RP Discord: https://discord.gg/M9c9PjN

https://is.gd/cheap_vps

Extremely cheap VPS from 5$ monthly (SSD Cached) - Features:

512MB Memory | 500GB Disk Space | 1 TB Transfer | 2 Core Processor | 1 IP Address

Against everyone and everything.

I'll have two number 9s, a number 9 large, a number 6 with extra dip, a number 7, two number 45s, one with cheese... and a large soda.
KinderClans is online now   Reply With Quote
Old 22/09/2018, 04:33 PM   #9
Zeus666
Gangsta
 
Join Date: Mar 2015
Posts: 628
Reputation: 46
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 online now   Reply With Quote
Old 22/09/2018, 07:38 PM   #10
Undef1ned
Big Clucker
 
Undef1ned's Avatar
 
Join Date: Aug 2018
Location: Venezuela
Posts: 188
Reputation: 12
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 03:15 AM
[FilterScript] Away script [Textdraw] BlackBank Filterscripts 8 03/09/2012 11:39 AM
Help with Zamoroht TextDraw Script! Quinlynn Server Support 2 17/03/2012 11:19 PM
A Textdraw isn't showing (script 100% right) Jochemd Bug Reports 13 03/07/2011 02:35 PM
textdraw script please cssbart Help Archive 9 22/03/2010 04:15 PM


All times are GMT. The time now is 07:10 PM.


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