TextDrawColor string problem
#1

I'm trying to make a text fade function, and I have a little problem:

This is my function..
pawn Код:
public OnTextFade(Text:textid, textcolor)
The error occurs here:
pawn Код:
format(string, sizeof(string), "%sEE", textcolor);
TextDrawColor(textid, string); // This is the line ( error 035: argument type mismatch (argument 2) )
I'm using a timer to get there:
pawn Код:
gTextFade = SetTimerEx("OnTextFade", 100, true, "ss", "ServerRestart", "0xFF0000");
So... where is the problem?

Thanks in advance.
Reply


Messages In This Thread
TextDrawColor string problem - by chosen - 08.06.2011, 12:49
Re: TextDrawColor string problem - by iGetty - 08.06.2011, 13:38
Re: TextDrawColor string problem - by Firzendxiw - 08.06.2011, 13:52
Re: TextDrawColor string problem - by Vince - 08.06.2011, 14:16
Re: TextDrawColor string problem - by Firzendxiw - 08.06.2011, 14:35
Re: TextDrawColor string problem - by chosen - 08.06.2011, 16:02
Re: TextDrawColor string problem - by Vince - 08.06.2011, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)