How do you load lots of cars from mysql?
#5

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
sscanf instead of explode for splitting the values, but I also limit what I select, so I'm not selecting arbitrary values that I don't need at all.

Also your code is practically illogical:
pawn Код:
new query[32];
format(query,256,"SELECT * FROM vehs");
You have 32 cells but you try and allocate 256 cells to write your query to. You should just use sizeof() in format, as string sizes are constant.
i actually edited a lil before posting coz it was actually to load dealer vehicles. btw i posted it in this section coz i wanted to know how people load their shit off mysql :P .. i dont have any problems with my loading. just wondering.. sometimes i use a for loop to load them instead of while. ok anyone else?
Reply


Messages In This Thread
How do you load lots of cars from mysql? - by THE_KNOWN - 07.04.2011, 12:05
Re: How do you load lots of cars from mysql? - by playbox12 - 07.04.2011, 13:37
Re: How do you load lots of cars from mysql? - by SchurmanCQC - 07.04.2011, 13:38
Re: How do you load lots of cars from mysql? - by Calgon - 07.04.2011, 13:39
Re: How do you load lots of cars from mysql? - by THE_KNOWN - 07.04.2011, 15:58
Re: How do you load lots of cars from mysql? - by Sergei - 07.04.2011, 16:02
Re: How do you load lots of cars from mysql? - by THE_KNOWN - 07.04.2011, 16:23
Re: How do you load lots of cars from mysql? - by Calgon - 07.04.2011, 16:26
Re: How do you load lots of cars from mysql? - by THE_KNOWN - 07.04.2011, 16:29
Re: How do you load lots of cars from mysql? - by Hal - 07.04.2011, 21:34

Forum Jump:


Users browsing this thread: 3 Guest(s)