Problem with splitting a mysql string with sscanf 2.6
#2

Well, you are saving values greater than 1 in a tinyint field. Not exactly sure if that would affect the result. Sscanf statement looks fine as far as I can see.

But honestly, tell me who taught you to load stuff like this;
pawn Code:
for(new i = 1; i < MAX_VEHICLES; i++)
    {
        format(query,512, "SELECT * FROM Vehicle WHERE ID = '%d'", i);
That's seriously inefficient and ruins the whole point of MySQL.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)