[Help] Textdraw help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Textdraw help (
/showthread.php?tid=122347)
[Help] Textdraw help -
Niixie - 21.01.2010
Hey, i've searched around for a day or two now but didnt get answer.
Why doesnt this work?
[pawn]
public Advicement1timer(playerid)
{
TextDrawShowForAll(Text:Advicement1); //Error line
SetTimer("Advicement1out", 15000, 0);
}
public Advicement1out()
{
TextDrawHideForAll(Text:Advicement1); //Error line
}
[/pawn}
?
i have these errors
Код:
(561) : error 035: argument type mismatch (argument 1)
(567) : error 035: argument type mismatch (argument 1)
Please help me
Re: [Help] Textdraw help -
RenisiL - 21.01.2010
ups but sorry bad post
Re: [Help] Textdraw help -
RyDeR` - 21.01.2010
Hmm, shouldn't give an error but try this..
TextDrawShowForAll(Advicement1);
Re: [Help] Textdraw help -
Niixie - 21.01.2010
gives same error Ryder
Re: [Help] Textdraw help -
RyDeR` - 21.01.2010
Are you sure that these are the error lines?
Re: [Help] Textdraw help -
Miguel - 21.01.2010
pawn Код:
public Advicement1timer(playerid)
{
TextDrawShowForAll(Advicement1); //here
SetTimer("Advicement1out", 15000, 0);
}
public Advicement1out()
{
TextDrawHideForAll(Advicement1); // here
}
Try that.
Re: [Help] Textdraw help -
RenisiL - 21.01.2010
You use SetTimerEx
Re: [Help] Textdraw help -
Niixie - 21.01.2010
Just tryed with SetTimerEx, still same errors ?
EDIT:
Heres my Textdraw
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
Advicement1[i] = TextDrawCreate(148, 451, "[Advicement]: This server runs N-Admin, made by Niixie!");
TextDrawAlignment(Advicement1[i], 1);
TextDrawFont(Advicement1[i], 2);
TextDrawLetterSize(Advicement1[i], 0.3, 1.2);
TextDrawColor(Advicement1[i], 0xFFFF00FF);
TextDrawSetShadow(Advicement1[i], 1);
TextDrawSetProportional(Advicement1[i], 1);
}
Anything wrong there?
Re: [Help] Textdraw help -
RenisiL - 21.01.2010
Quote:
Originally Posted by RenisiL
You use SetTimerEx
|
Example:
after your command
Quote:
SetTimerEx("DatabaseConnection",9000,false, "d", playerid);
|
Quote:
forward DatabaseConnection(playerid);
public DatabaseConnection(playerid)
{
TextDrawShowForAll(Text:Advicement1);
SetTimerEx("ConnectionText",8000,false, "d", playerid);
return 0;
}
|
Quote:
forward ConnectionText(playerid);
public ConnectionText(playerid)
{
TextDrawHideForAll(Advicement1);
return 1;
}
|
maybe yes.
Re: [Help] Textdraw help -
Niixie - 21.01.2010
I've fixed it.

thanks