Asking for a textdraw (asking for script) -
Zeus666 - 22.09.2018
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.
Re: Asking for a textdraw (asking for script) -
Lokii - 22.09.2018
PHP код:
new Text:TDEditor_TD[3];
TDEditor_TD[0] = TextDrawCreate(4.333339, 416.333343, "ld_grav:timer");
TextDrawTextSize(TDEditor_TD[0], 20.000000, 24.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.000020, 423.540802, "RELOOT_23:21");
TextDrawLetterSize(TDEditor_TD[1], 0.236000, 1.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.666654, 422.140777, "ld_pool:ball");
TextDrawTextSize(TDEditor_TD[2], 97.000000, 18.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);
Re: Asking for a textdraw (asking for script) -
v1k1nG - 22.09.2018
A total of 3 textdraws:
- 1 normal textdraw,
- 2 model preview textdraw.
https://sampwiki.blast.hk/wiki/TextDrawSetPreviewModel
Re: Asking for a textdraw (asking for script) -
Zeus666 - 22.09.2018
Quote:
Originally Posted by Lokii
PHP код:
new Text:TDEditor_TD[3];
TDEditor_TD[0] = TextDrawCreate(4.333339, 416.333343, "ld_grav:timer");
TextDrawTextSize(TDEditor_TD[0], 20.000000, 24.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.000020, 423.540802, "RELOOT_23:21");
TextDrawLetterSize(TDEditor_TD[1], 0.236000, 1.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.666654, 422.140777, "ld_pool:ball");
TextDrawTextSize(TDEditor_TD[2], 97.000000, 18.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.
Re: Asking for a textdraw (asking for script) -
Lokii - 22.09.2018
Quote:
Originally Posted by v1k1nG
|
Sprites not model preview
Quote:
Originally Posted by Zeus666
Hmm, thanks for your time, but it won't show. No errors shown.
|
PHP код:
CMD:test(playerid)
{
for(new i = 0; i < 3; i ++)
{
TextDrawShoForPlayer(playerid, TDEditor_TD[i]);
}
return 1;
}
Re: Asking for a textdraw (asking for script) -
Zeus666 - 22.09.2018
Quote:
Originally Posted by Lokii
Sprites not model preview
PHP код:
CMD:test(playerid)
{
for(new i = 0; i < 3; i ++)
{
TextDrawShoForPlayer(playerid, TDEditor_TD[i]);
}
return 1;
}
|
It works, thanks. I just figured it out where to put it.
Anyway
How can I set this pattern
PHP код:
TDEditor_TD[1] = TextDrawCreate(27.000020, 423.540802, "RESPAWN IN %s ");
TextDrawLetterSize(TDEditor_TD[1], 0.236000, 1.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 код:
%s = timer RespawnGeneral[1800000]()
Re: Asking for a textdraw (asking for script) -
Undef1ned - 22.09.2018
їThis?
PHP код:
new str[25]; format(str, sizeof str, "RESPAWN IN %d", RespawnGeneral[1800000]);
TextDrawSetString(TDEditor_TD[1], str);
Re: Asking for a textdraw (asking for script) -
KinderClans - 22.09.2018
Quote:
Originally Posted by Lokii
PHP код:
new Text:TDEditor_TD[3];
TDEditor_TD[0] = TextDrawCreate(4.333339, 416.333343, "ld_grav:timer");
TextDrawTextSize(TDEditor_TD[0], 20.000000, 24.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.000020, 423.540802, "RELOOT_23:21");
TextDrawLetterSize(TDEditor_TD[1], 0.236000, 1.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.666654, 422.140777, "ld_pool:ball");
TextDrawTextSize(TDEditor_TD[2], 97.000000, 18.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?
Re: Asking for a textdraw (asking for script) -
Zeus666 - 22.09.2018
Quote:
Originally Posted by Undef1ned
їThis?
PHP код:
new str[25]; format(str, sizeof str, "RESPAWN IN %d", RespawnGeneral[1800000]);
TextDrawSetString(TDEditor_TD[1], str);
|
PHP код:
: error 028: invalid subscript (not an array or too many subscripts): "RespawnGeneral"
: warning 215: expression has no effect
: error 001: expected token: ";", but found "]"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line
Re: Asking for a textdraw (asking for script) -
Undef1ned - 22.09.2018
Quote:
Originally Posted by KinderClans
Which editor you used to make this textdraw?
|
TD Editor 1.7 By Adri1
Quote:
Originally Posted by Zeus666
PHP код:
: error 028: invalid subscript (not an array or too many subscripts): "RespawnGeneral"
: warning 215: expression has no effect
: error 001: expected token: ";", but found "]"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line
|
You must place your variable "RespawnGeneral" well, I only just gave you an example.