Tag mismatch (+rep) - 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)
+--- Thread: Tag mismatch (+rep) (
/showthread.php?tid=335577)
Tag mismatch (+rep) -
Dripac - 18.04.2012
I don't get it, what is wrong here...
pawn Код:
sscanf(Str, "e<u< | >s[34]s[12]s[17]s[124]>", Ersteller, Datum, IP, inputtext, tickets);
It's defined like this
pawn Код:
new Str[67], Ersteller, IP, inputtext, tickets;
: warning 213: tag mismatch
Re: Tag mismatch (+rep) -
Jonny5 - 18.04.2012
um s[34]s[12]s[17]s[124]
is asking for all strings
try this
pawn Код:
sscanf(Str, "iiiii>", Ersteller, Datum, IP, inputtext, tickets);
although it seams input text should be a string also
it is not defined as such.
pawn Код:
new Str[67], Ersteller, IP, inputtext[128], tickets;
this would make inputtext a string
then you can do
pawn Код:
sscanf(Str, "iiis[128]i>", Ersteller, Datum, IP, inputtext, tickets);
read up on using sscanf
your code you posted looks like its trying to use a enum but your not posting a enum
so im not sure what your actually trying todo
Re: Tag mismatch (+rep) -
ViniBorn - 18.04.2012
IP is a string too
Re: Tag mismatch (+rep) -
SuperViper - 19.04.2012
pawn Код:
new Str[67], Ersteller, IP[17], inputtext[128], tickets;
sscanf(Str, "p<|>iis[17]s[128]i>", Ersteller, Datum, IP, inputtext, tickets);
Re: Tag mismatch (+rep) -
Dripac - 19.04.2012
Thanks +rep to all