21.04.2010, 20:13
Hello
Im trying to do a simple command with sscanf but the server console says this: sscanf warning: Strings without a length are deprecated, please add a destination size. Anyone know's why?
The code:
(Yes I know its bad scripted but thats not the problem right now) :P
Im trying to do a simple command with sscanf but the server console says this: sscanf warning: Strings without a length are deprecated, please add a destination size. Anyone know's why?
The code:
pawn Код:
command(ooc, playerid, params[])
{
new text[128], string[128];
if (sscanf(params, "s", text)) SendClientMessage(playerid, GREY, "USAGE: /Ooc [Text]");
else
{
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "((OOC Chat: %s: %s ))" , Name, text);
SendClientMessageToAll(WHITE, string);
}
return 1;
}