Tag mismatch (+rep)
#1

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
Reply
#2

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
Reply
#3

IP is a string too
Reply
#4

pawn Код:
new Str[67], Ersteller, IP[17], inputtext[128], tickets;

sscanf(Str, "p<|>iis[17]s[128]i>", Ersteller, Datum, IP, inputtext, tickets);
Reply
#5

Thanks +rep to all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)