03.11.2015, 11:35
(
Последний раз редактировалось GranaT3; 03.11.2015 в 12:20.
)
Quote:
You should have 3 values there:
Код:
"E<ii-i-i>(20,30,40)" You can read this page if you haven't or re-read: https://sampforum.blast.hk/showthread.php?tid=570927 |
pawn Код:
enum tranquilos
{
valor_1,
valor_2,
valor_3,
valor_4
};
new quiet_enum[tranquilos];
// The problem is that the default values are not read.
sscanf("1 2 3 4", "E<ii-i-i>(20, 30, 40)", quiet_enum);
printf("%i value 1", quiet_enum[valor_1]);
printf("%i value 2", quiet_enum[valor_2]);
printf("%i value 3", quiet_enum[valor_3]);
printf("%i value 4", quiet_enum[valor_4]);