11.02.2012, 02:21
I'm trying to make an /accept [name] command.
I have no errors when I compile, and my command works perfectly, but on my server window I get
How can I fix this? This isn't really a major issue. I just really want to know how to compare strings with sscanf.
My code.
I have no errors when I compile, and my command works perfectly, but on my server window I get
Код:
[18:22:07] sscanf warning: Unknown format specifier 'j', skipping.
My code.
pawn Код:
CMD:accept(playerid,params[])
{
new x_job[124];
if(sscanf(params,"s[256]",x_job))
{
SendClientMessage(playerid,COLOR_GREY,"Usage: /accept [name]");
SendClientMessage(playerid,COLOR_GREY,"Names: Job, Faction");
return 1;
}
if(sscanf("job",params,"s[256]",x_job))
{
// I left out the rest of the command since the problem isn't within the command. It's mainly the above line.