ZCMD and SSCANF question with strcmp
#10

The error has to be caused by something else- seems fine to me.

That isn't working because of this:

pawn Код:
if(sscanf(params, "{s[7]}dd", iNoteID, iNoteSlot)) return SyntaxMSG(playerid, "/note give [playerid] [slot]");
You didn't change the first d specifier, so it looks for a numerical value, not a player ID/name. So, change the first d specifier to u, and change iNoteID to iTargetID.
Reply


Messages In This Thread
ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 16:24
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 16:32
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 16:34
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 16:36
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 16:41
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 16:57
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 17:07
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 17:11
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 17:22
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)