Error 017: undefined symbol "sscanf", Whatґs wrong? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error 017: undefined symbol "sscanf", Whatґs wrong? (
/showthread.php?tid=67834)
Error 017: undefined symbol "sscanf", Whatґs wrong? -
Seoson - 04.03.2009
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
Re: Error 017: undefined symbol "sscanf", Whatґs wrong? -
Seoson - 04.03.2009
Yes but what is the defenition for that?
There is no entry on the wiki Page:
https://sampwiki.blast.hk/wiki/Fast_Commands
Re: Error 017: undefined symbol "sscanf", Whatґs wrong? -
pspleo - 04.03.2009
https://sampwiki.blast.hk/wiki/Sscanf_code
Re: Error 017: undefined symbol "sscanf", Whatґs wrong? -
Seoson - 05.03.2009
Thx a lot