When I use sscanf2, my script doesnt load
#1

Hello all,

Whenever I try to make a command using sscanf, my script doesn't load. When I start the server it comes up with:
Код:
SA-MP Dedicated Server
----------------------
v0.3d-R2, ©2005-2011 SA-MP Team

[12:01:02] filterscripts = ""  (string)
[12:01:02] 
[12:01:02] Server Plugins
[12:01:02] --------------
[12:01:02]  Loaded 0 plugins.

[12:01:02] 
[12:01:02] Filterscripts
[12:01:02] ---------------
[12:01:02]   Loaded 0 filterscripts.

[12:01:02] Script[gamemodes/CNR.amx]: Run time error 19: "File or function is not found"
[12:01:02] Number of vehicle models: 0
Here is the code I am using that doesn't allow the server to start up for some reason:
pawn Код:
CMD:me(playerid,params[])
{
    new string[128], message[128], pname[24];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    if(sscanf(params, "sz", message)) return SendClientMessage(playerid, red, "ERROR:{FFFFFF} /me [message]");
    format(string, sizeof(string), "* %s %s", pname, message);
    SendClientMessageToAll(yellow, string);
    return 1;
}
Whenever I comment out that code, the server starts fine, and everything works fine.

Any idea of what's wrong?

And yes I have
pawn Код:
#include <sscanf2>
at the top of my script.
Reply


Messages In This Thread
When I use sscanf2, my script doesnt load - by nitrochegs - 11.03.2012, 01:02
Re: When I use sscanf2, my script doesnt load - by Reklez - 11.03.2012, 01:26
Re: When I use sscanf2, my script doesnt load - by eesh - 11.03.2012, 03:47
Re: When I use sscanf2, my script doesnt load - by nitrochegs - 11.03.2012, 05:16

Forum Jump:


Users browsing this thread: 1 Guest(s)