I need help FAST! xD
#1

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

Use scripting board. And you're missing an bracket (}).

Leopard
Reply
#3

Oh sorry about the }. I forgot to copy that aswell
Reply
#4

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()
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)