Sorting problem
#1

I'm using this function: https://sampforum.blast.hk/showthread.php?tid=343172

Код:
enum Info { index, Str[64] }
new var[10][Info];

// assigning some strings to var[][Str]

SortDeepArray(var, string:Str);
printf(var[0][string]);
prints nothing. Why?
Reply
#2

You're printing it wrong, clearly says on the topic
Quote:
Originally Posted by Slice
Посмотреть сообщение
printf(" array[%d] = {%d, %d}", i, array[i][0], array[i][1]);
pawn Код:
printf(var[0][string]);

//Should be

printf("%s", var[0][string]); //Integer '%s' because it's a string
Reply
#3

Thanks, mate +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)