30.10.2014, 12:18
Hey there, I've not scripted anything in a while, so forgive me for any stupid mistakes.
So, here's the problem: filterscripts do not load properly. Let me show you what I mean.
For example, I have this piece of code in echo.pwn:
When I load it using "loadfs echo" in the console, I don't get these lines appearing. I also am unable to use any commands. I have this command:
But I just get "Server: Unknown Command". I also get no errors when I compile the script. I'll be really grateful to anyone who can offer any advice or help to this problem. Let me know if you need any more information!
Thanks, Matty.
So, here's the problem: filterscripts do not load properly. Let me show you what I mean.
For example, I have this piece of code in echo.pwn:
pawn Код:
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" echo script");
print("--------------------------------------\n");
return 1;
}
pawn Код:
command(echo, playerid, params[])
{
new string[128], echotxt[128];
if(sscanf(params, "s", echotxt)) return SendClientMessage(playerid, -1, "Usage: /echo [echotext]");
format(string, sizeof(string), "ECHO: %s", params);
SendClientMessage(playerid, -1, string);
return 1;
}
Thanks, Matty.