Still problem sscanf
#1

Well, a few weeks ago i had a problem.. and just dropped working on it.

Regarding this topic: https://sampforum.blast.hk/showthread.php?tid=166824

y_less said to make an enum for it.. i know how to make an enum, but not for sscanf? How can i do it for sscanf?
Reply
#2

Quote:
Originally Posted by DiddyBop
View Post
Well, a few weeks ago i had a problem.. and just dropped working on it.

Regarding this topic: https://sampforum.blast.hk/showthread.php?tid=166824

y_less said to make an enum for it.. i know how to make an enum, but not for sscanf? How can i do it for sscanf?
Use the e<> specifier.
Reply
#3

Quote:
Originally Posted by nemesis-
View Post
Use the e<> specifier.
like this?

pawn Code:
sscanf(row, "p<|>ds[100]s[100]ddddddds[100]dds[100]ds[100]e<iiiiii>", Info[0],Info2[0], Info2[1], Info[1], Info[2],Info[3], Info[4], Info[5], Info[6], Info[7],Info2[2], Info2[3], Info2[4], Info2[5],Info[8], Info2[6], Info[9], Info[10],Info[11], Info[12], Info[13], Info[14], Info[15]);
Cuz it aint workin >_<
Reply
#4

Quote:
Originally Posted by Y_Less
View Post
No - I said you didn't have enough parameters and that you MAY want to CONSIDER using an enum, but get the code working first.

Anyway, that code is not using an enum - you have now passed too many variables, the last one needs to be an enum defined array, which that isn't.
Too confused to understand. Ill figure it out one day i guess..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)