27.02.2011, 12:02
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:
'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.
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))
3. You forgot to post that you can't use OnPlayerCommandText anymore when using ZCMD, you could also explain something about OnPlayerCommandReceived and OnPlayerCommandPerformed.