30.01.2017, 23:48
Hello! I'm trying to get from an array the data using sscanf. I'm doing this:
But I'm getting only the first "5", the other items are not printed.
Код:
// The array contains this: "0,5,5,0,3". new a[5]; sscanf(PlayerInfo[playerid][Inventory], "p<,>a<i>[5]", a); for (new s; s < 5; ++s) { if (a[s]) SendClientMessage(playerid, -1, a[s]); }