[UNSOLVED!!]Talking as a channel bot...
#4

kewl, thanx guys!

EDIT:

yea, i used your script Ez 'cos Dice7's script didn't work, had too many errors and i dont know how to fix them...

i have got everything right and only changed the bot name but it comes up with only one error which is:

Код:
bot.pwn(59) : error 033: array must be indexed (variable "message")
PS this is a filterscript, this shouldn't change anything should it?

here's what i have so far:

Код:
#include <a_samp>


#define FILTERSCRIPT

#define strrest
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

#if defined FILTERSCRIPT


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" IRC bot Chat!");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	SendClientMessageToAll(0xFF000AA, "Please Repect the TokyoDrift Bot!");
	SendClientMessageToAll(0xFF000AA, "Not doing so will get you banned!");
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	dcmd(bot, 3, cmdtext);
	return 0;
}

dcmd_bot(playerid, cmdtext[])
{
  new message[500], index;

  message = strrest(cmdtext, index);

  if (!strlen(message))
   return SendClientMessage(playerid, 0xFF0000AA, "Usage: /bot <message>");

  format(message, sizeof(message), "**TokyoDrift: %s", message);
  SendClientMessageToAll(0x0000FFFF, message);

  return 1;
}
Help?!
Reply


Messages In This Thread
[UNSOLVED!!]Talking as a channel bot... - by DEJORDZTA - 11.08.2009, 04:50
Re: Talking as a channel bot... - by dice7 - 11.08.2009, 06:31
Re: Talking as a channel bot... - by Ez - 11.08.2009, 06:44
Re: Talking as a channel bot... - by DEJORDZTA - 27.08.2009, 04:38
Re: Talking as a channel bot... - by DEJORDZTA - 27.08.2009, 05:29
Re: Talking as a channel bot... - by DEJORDZTA - 29.08.2009, 09:41
Re: [SOLVED!!]Talking as a channel bot... - by Abernethy - 29.08.2009, 09:44
Re: [SOLVED!!]Talking as a channel bot... - by DEJORDZTA - 30.08.2009, 04:52
Re: [UNSOLVED!!]Talking as a channel bot... - by DEJORDZTA - 11.09.2009, 22:04

Forum Jump:


Users browsing this thread: 1 Guest(s)