Error 017: undefined symbol "sscanf", Whatґs wrong?
#1

Hey Guys,
I got a small problem i should post the code first:

Code:
[...]
#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
[...]

public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd(playsound, 9, cmdtext);
  return 0;
  [...]
}

[...]

dcmd_playsound(playerid, params[])
{
	new value;
	if (sscanf(params, "i", value)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/playsound <Sound Id>\"");
    else
	{
		PlayerPlaySound(playerid, value,0.0,0.0,0.0);
		SendClientMessage(playerid, 0x00FF00AA, "Playing Sound...");
	}
	return 1;
}

[...]
ERROR MSG: error 017: undefined symbol "sscanf"

Now my Question what is wrong?

[...] means not important

Best regards,
Seoson
Reply
#2

Yes but what is the defenition for that?
There is no entry on the wiki Page: https://sampwiki.blast.hk/wiki/Fast_Commands
Reply
#3

https://sampwiki.blast.hk/wiki/Sscanf_code
Reply
#4

Thx a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)