I need help FAST! xD - 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: I need help FAST! xD (
/showthread.php?tid=66832)
I need help FAST! xD -
stieben - 24.02.2009
Hello,
I have this code here:
Код:
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
forward TextDrawMessageTimer();
new RandomMessages[][] =
{
"Textdraw0","Textdraw1"
};
new Text:Textdraw0;
new Text:Textdraw1;
public OnFilterScriptInit()
{
SetTimer("TextDrawMessageTimer",120000,1);
Textdraw0 = TextDrawCreate(187.000000,418.000000"BLAAA!");
//All 'shit' that belonges to Textdraw0
Textdraw1 = TextDrawCreate(187.000000,418.000000,"BLA!");
//All 'shit' that belonges to Textdraw1
public TextDrawMessageTimer()
{
TextDrawShowForAll(RandomMessages[random(sizeof(RandomMessages))]);
}
But of course I get an error
Код:
(226) : error 035: argument type mismatch (argument 1)
Line 226 is this one
Код:
TextDrawShowForAll(RandomMessages[random(sizeof(RandomMessages))]);
[size=40pt]Please help me otherwise I'll die
Re: I need help FAST! xD -
pspleo - 24.02.2009
Use scripting board. And you're missing an bracket (}).
Leopard
Re: I need help FAST! xD -
stieben - 24.02.2009
Oh sorry about the }. I forgot to copy that aswell
Re: I need help FAST! xD -
[RP]Rav - 24.02.2009
If you look at the wiki, you'll see that ShowTextDrawForAll shows a >textdraw< object for all players, if you're trying to change the text in the textdraw (ehh?) you need TextDrawSetString()