07.10.2011, 07:42
Default values are enclosed in parentheses.
Result is; action = "default string", item = "another string" and amount = 500. If no params were entered. Also assuming your using the plugin.
He is already using sscanfs inbuilt null check in his code...
pawn Код:
if(sscanf(params, "S[128](default string)S[128](another string)D(500)", action, item, amount))
He is already using sscanfs inbuilt null check in his code...