sscanf problem
#1

Hello, i try load information but its...not working normal. its showing on Title my name, Owner not working else is good

Код:
 mysql_fetch_field_row(PropIDStr, "pIndeficationID"); PropID = strval(PropIDStr);

		sscanf(Query, "p<|>{ds[80]}s[24]dd",
   

        PropertySystem[PropID][pTitle],
        PropertySystem[PropID][pOwner],
        PropertySystem[PropID][pPrice],
        PropertySystem[PropID][pEarning]);



			format(String, sizeof(String), "%s %s %d %d",
            PropertySystem[PropID][pTitle], PropertySystem[PropID][pOwner], PropertySystem[PropID][pPrice], PropertySystem[PropID][pEarning]);
Reply
#2

According to "p<|>{ds[80]}s[24]dd", your line should look like this:
INTEGER|STRING|STRING|INTEGER|INTEGER
And since you're using {ds[80]} for the first two, it means you're dumping them (The red part)
But according to your code, you're storing 4 things, and not 3.
Reply
#3

so how my code must look ?? "p<|>{d}s[80]s[24]dd" ??
Reply
#4

so.. i don't get it.. still
Reply
#5

In sscanf:
"p<|>s[80]s[24]dd"

In format:
"%s|%s|%d|%d"
Reply
#6

same..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)