27.08.2009, 04:38
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:
PS this is a filterscript, this shouldn't change anything should it?
here's what i have so far:
Help?!
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")
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; }