#1

How can I mak a textdraw changing ever 5 sec like "HI world" and in 5 sec "bye World"
Please writ me the cod.
This is the textdraw,
Hi = TextDrawCreate(1.000000,434.000000,"Hi world");
TextDrawAlignment(Hi,0);
TextDrawBackgroundColor(Hi,0x00000099);
TextDrawFont(Hi,1);
TextDrawLetterSize(Hi,0.500000,1.500000);
TextDrawColor(Hi,0xFFFFFFAA);
TextDrawSetOutline(Hi,1);
TextDrawSetProportional(Hi,1);
TextDrawSetShadow(Hi,1);
Reply
#2

Help ples.
Reply
#3

You have to use a timer , set it for 5 seconds (5000 miliseconds), make it point to a new function you make that looks like this:

pawn Код:
// put this somewhere (like to the top):
forward TextDrawSetStringFunc(Text:text, const string[]);
// bottom:
public TextDrawSetStringFunc(Text:text, const string[])
{
    TextDrawSetString(text, string);
}
You need to use SetTimerEx to set the timer.
Reply
#4

I dont undarstand it
pls write it exactly..with the code i gave.
Reply
#5

halp pls pls
Reply
#6

Stop bumping, you got your answer already.
Reply
#7

Quote:
Originally Posted by Don Correlli
Stop bumping, you got your answer already.
But I don't understand it,so pls write it exactly wit the textdraw I gave.
Reply
#8

Just learn pawn ^^
Reply
#9

Quote:
Originally Posted by player007
You have to use a timer , set it for 5 seconds (5000 miliseconds), make it point to a new function you make that looks like this:

pawn Код:
// put this somewhere (like to the top):
forward TextDrawSetStringFunc(Text:text, const string[]);
// bottom:
public TextDrawSetStringFunc(Text:text, const string[])
{
    TextDrawSetString(text, string);
}
You need to use SetTimerEx to set the timer.
timers don't work with strings
Reply
#10

Quote:
Originally Posted by ZeeX
Quote:
Originally Posted by player007
You have to use a timer , set it for 5 seconds (5000 miliseconds), make it point to a new function you make that looks like this:

pawn Код:
// put this somewhere (like to the top):
forward TextDrawSetStringFunc(Text:text, const string[]);
// bottom:
public TextDrawSetStringFunc(Text:text, const string[])
{
    TextDrawSetString(text, string);
}
You need to use SetTimerEx to set the timer.
timers don't work with strings
than how to mak?Pls somebody write it how to make it with my textdraw
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)