Textdraw
#1

// Fixed.
Reply
#2

Anyone? :P
Reply
#3

That's not Textdraw, That's a GameTextForAll, check the wiki for textdraws. It'll help you.
Reply
#4

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);
}
Reply
#5

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).
Reply
#6

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?
Reply
#7

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*
Reply
#8

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
Reply
#9

Same error -_-
Reply
#10

Download y_hooks.. It's pretty self-explanatory.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)