02.11.2015, 13:15
Hello. I have a problem with a code.
if I put it this code:
That makes what I want, which is to print 20 and 30 in the value 1 and 2.
but I get an error: sscanf error: Insufficient default values.
I can fix that mistake, by:
But I would 1 2 0 0, and not what I want.
How I can fix it ?.
if I put it this code:
pawn Код:
sscanf("1 2 3 4", "E<ii-i-i>(20,30)", quiet_enum);
printf("%i value 1", quiet_enum[value_1]);
printf("%i value 2", quiet_enum[value_2]);
printf("%i value 3", quiet_enum[value_3]);
printf("%i value 4", quiet_enum[value_4]);
but I get an error: sscanf error: Insufficient default values.
I can fix that mistake, by:
pawn Код:
sscanf("1 2 3 4", "E<ii-i-i>(20,30,40,50)", quiet_enum);
printf("%i value 1", quiet_enum[value_1]);
printf("%i value 2", quiet_enum[value_2]);
printf("%i value 3", quiet_enum[value_3]);
printf("%i value 4", quiet_enum[value_4]);
How I can fix it ?.