04.03.2009, 17:01
Hey Guys,
I got a small problem i should post the code first:
ERROR MSG: error 017: undefined symbol "sscanf"
Now my Question what is wrong?
[...] means not important
Best regards,
Seoson
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; } [...]
Now my Question what is wrong?
[...] means not important
Best regards,
Seoson