Textdraw -
NathNathii - 30.03.2013
// Fixed.
Re: Textdraw -
NathNathii - 30.03.2013
Anyone? :P
Re: Textdraw -
iHaze. - 30.03.2013
That's not Textdraw, That's a GameTextForAll, check the wiki for textdraws. It'll help you.
Re: Textdraw -
Omirrow - 30.03.2013
Quote:
Originally Posted by Xaerie
That's not Textdraw, That's a GameTextForAll, check the wiki for textdraws. It'll help you.
|
or MAX_PLAYERS use.
pawn Код:
for(new m = 0; m < MAX_PLAYERS; m++)
{
TextDrawShowForPlayer(m,TextName);
}
Re: Textdraw -
MP2 - 30.03.2013
Quote:
Originally Posted by Xaerie
That's not Textdraw, That's a GameTextForAll, check the wiki for textdraws. It'll help you.
|
It isn't game text. It's a textdraw.
I'll give you the textdraw code:
pawn Код:
TD_GTXT_TDID[playerid] = CreatePlayerTextDraw(playerid, 320.000000, 200.000000, text);
PlayerTextDrawAlignment(playerid, TD_GTXT_TDID[playerid], 2);
PlayerTextDrawBackgroundColor(playerid, TD_GTXT_TDID[playerid], 255);
PlayerTextDrawFont(playerid, TD_GTXT_TDID[playerid], 3);
PlayerTextDrawLetterSize(playerid, TD_GTXT_TDID[playerid], 0.800000, 2.800000);
PlayerTextDrawColor(playerid, TD_GTXT_TDID[playerid], -1);
PlayerTextDrawTextSize(playerid, TD_GTXT_TDID[playerid], 0, 550);
PlayerTextDrawSetOutline(playerid, TD_GTXT_TDID[playerid], 2);
This is part of a 'textdraw gametext' include I never released, and may never because it's nothing TOO special. If you want it:
http://pastebin.com/ctpwCpUk
The function:
native TD_GameTextForPlayer(playerid, text[], style=GTXT_CAPITALS_THICK, duration=5000);
The font in the image you posted is GTXT_PRICEDOWN_THICK. So do this:
pawn Код:
for(loop blah blah)
{
TD_GameTextForPlayer(i, params, GTXT_PRICEDOWN_THICK);
}
NOTE: As I said, this include was not meant to be released, so there may be an issue or two. One issue I am aware of is this: If you show gametext with on style to a player, then try and show gametext in a different style while the current one is still on-screen, the style will stay the same.
P.S.: There is no 'ForAll' function so you'll have to use a loop (exactly what the include would do anyway).
Re: Textdraw -
NathNathii - 30.03.2013
Quote:
Originally Posted by MP2
It isn't game text. It's a textdraw.
I'll give you the textdraw code:
pawn Код:
TD_GTXT_TDID[playerid] = CreatePlayerTextDraw(playerid, 320.000000, 200.000000, text); PlayerTextDrawAlignment(playerid, TD_GTXT_TDID[playerid], 2); PlayerTextDrawBackgroundColor(playerid, TD_GTXT_TDID[playerid], 255); PlayerTextDrawFont(playerid, TD_GTXT_TDID[playerid], 3); PlayerTextDrawLetterSize(playerid, TD_GTXT_TDID[playerid], 0.800000, 2.800000); PlayerTextDrawColor(playerid, TD_GTXT_TDID[playerid], -1); PlayerTextDrawTextSize(playerid, TD_GTXT_TDID[playerid], 0, 550); PlayerTextDrawSetOutline(playerid, TD_GTXT_TDID[playerid], 2);
This is part of a 'textdraw gametext' include I never released, and may never because it's nothing TOO special. If you want it:
http://pastebin.com/ctpwCpUk
The function:
native TD_GameTextForPlayer(playerid, text[], style=GTXT_CAPITALS_THICK, duration=5000);
The font in the image you posted is GTXT_PRICEDOWN_THICK. So do this:
pawn Код:
for(loop blah blah) { TD_GameTextForPlayer(i, params, GTXT_PRICEDOWN_THICK); }
NOTE: As I said, this include was not meant to be released, so there may be an issue or two. One issue I am aware of is this: If you show gametext with on style to a player, then try and show gametext in a different style while the current one is still on-screen, the style will stay the same.
P.S.: There is no 'ForAll' function so you'll have to use a loop (exactly what the include would do anyway).
|
Any way to know where to put these?
Re: Textdraw -
NathNathii - 30.03.2013
Downloaded the pastebin file.
Код:
C:\Users\Documents\GT Testing\gamemodes\GranTrucking.pwn(67) : fatal error 100: cannot read from file: "YSI\y_hooks
Line 67
Код:
#include <YSI\y_hooks>
*EDIT: I am using zcmd*
Re: Textdraw -
SilverKiller - 30.03.2013
If you have y_hooks in pawno / include / YSI Folder, then open the gamemode from pawno.exe not by clicking it.
If you don't have it download YSI here :
https://sampforum.blast.hk/showthread.php?pid=1696956#pid1696956
Re: Textdraw -
NathNathii - 30.03.2013
Same error -_-
Re: Textdraw -
MP2 - 30.03.2013
Download y_hooks.. It's pretty self-explanatory.