SA-MP Forums Archive
Still problem sscanf - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Still problem sscanf (/showthread.php?tid=170541)



Still problem sscanf - DiddyBop - 23.08.2010

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?


Re: Still problem sscanf - nemesis- - 23.08.2010

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.


Re: Still problem sscanf - DiddyBop - 23.08.2010

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 >_<


Re: Still problem sscanf - DiddyBop - 23.08.2010

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..