[Tutorial] Explanation for sscanf2 and ZCMD
#6

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
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.
Sorry about my errors, but I meant zcmd as the processor and sscanf2 as the tool to split the parameters.

Also that code 'ammount' is meant to be a float, because armour ammounts are floats, not integers.
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: 1 Guest(s)