query loads always same row
#7

pawn Код:
for(new i; i < MAX_PLAYER_VEHICLES; i++)
    {
        new query[100];
        new var[25] = "Mark";
        format(query, sizeof(query),"SELECT * FROM vehicles  WHERE owner='%s'",var);
        mysql_query(query);
In your code, you are looping through all Vehicles, [i], and in your format, your %s is defines as "Mark" ("var")..

That makes it only show the same all the time. Modify it and make it load what you want it to load.
Reply


Messages In This Thread
query loads always same row - by BlackRaven - 29.01.2013, 12:52
Re: query loads always same row - by ReneG - 29.01.2013, 13:24
Re: query loads always same row - by BlackRaven - 29.01.2013, 13:49
Re: query loads always same row - by SuperViper - 29.01.2013, 14:18
Re: query loads always same row - by BlackRaven - 29.01.2013, 14:34
Re: query loads always same row - by BlackRaven - 30.01.2013, 09:00
Re: query loads always same row - by denNorske - 30.01.2013, 10:17
Re: query loads always same row - by BlackRaven - 30.01.2013, 10:33
Re: query loads always same row - by denNorske - 30.01.2013, 10:59
Re: query loads always same row - by BlackRaven - 30.01.2013, 11:08

Forum Jump:


Users browsing this thread: 3 Guest(s)