21.07.2017, 00:03
Hey guys, i hope you are doing alright...
So, I want to know if there's a way to do "continue;" when a value in an array is repeated, im gonna give you an example so you can understand what I'm trying to say:
What I want to do is... By using a loop, extract the last values "Other, Other, Another", And if a value is repeated... skip it...
I want to show this in a dialog, with this code I will get all categories "Other, other ,another" but I just want to get one time the category, It should say: Other,Another.
Thanks for reading, I hope you guys help me
So, I want to know if there's a way to do "continue;" when a value in an array is repeated, im gonna give you an example so you can understand what I'm trying to say:
pawn Код:
{0, 380, "asdfafa", "Other"},
{0, 578, "asdfafafdsafa", "Other"}
{0, 578, "asdfafafdxsafasfa", "Another"}
I want to show this in a dialog, with this code I will get all categories "Other, other ,another" but I just want to get one time the category, It should say: Other,Another.
pawn Код:
for (new x = 0; x < sizeof(datatesting); x++)
{
format(string, sizeof(string), "%s\t%d\n",datatesting[x][dmCategory],x);
strcat(fullstr, string);
}