Quote:
Originally Posted by admantis
Introduction
You can't have this:
pawn Код:
new string[64]; if (sscanf(params, "s[32]")) return 1;
Since 64 is not 32.
|
You CAN do that, since the size you have to specify is not the size of the array but the size of the input you are expecting to go through the function. In both cases, if the size of the input is greater than the size you specified, the server console will give you a warning.
Quote:
Originally Posted by admantis
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.
|
It should be: