[Tutorial] Explanation for sscanf2 and ZCMD
#5

About time someone posted a (decent) tutorial on this, though a few things:

1. Like RetardedWolf said, YCMD is faster then ZCMD. Nor is sscanf a command processor

2. This code:
pawn Код:
new id, ammount; // Here we will define ALL our parameters like 'id', 'heal ammount', 'reason', and others.
     if (sscanf(params, "uf", id, ammount))
'amount' is an integer, but you try to store a float in it.

3. You forgot to post that you can't use OnPlayerCommandText anymore when using ZCMD, you could also explain something about OnPlayerCommandReceived and OnPlayerCommandPerformed.
Reply


Messages In This Thread
Explanation for sscanf2 and ZCMD - by admantis - 27.02.2011, 00:48
Re: Explanation for sscanf2 and ZCMD - by Hal - 27.02.2011, 01:44
Re: Explanation for sscanf2 and ZCMD - by Retardedwolf - 27.02.2011, 02:14
Re: Explanation for sscanf2 and ZCMD - by [L3th4l] - 27.02.2011, 02:18
Re: Explanation for sscanf2 and ZCMD - by Hiddos - 27.02.2011, 12:02
Re: Explanation for sscanf2 and ZCMD - by admantis - 27.02.2011, 15:02
Re: Explanation for sscanf2 and ZCMD - by Calgon - 27.02.2011, 15:05
Re: Explanation for sscanf2 and ZCMD - by admantis - 27.02.2011, 15:06
Re: Explanation for sscanf2 and ZCMD - by Miguel - 27.02.2011, 15:18
Re: Explanation for sscanf2 and ZCMD - by admantis - 27.02.2011, 15:19

Forum Jump:


Users browsing this thread: 5 Guest(s)