Help with database
#1

xxxxxx
Reply
#2

Ofcourse you do because of this
pawn Код:
format(query,sizeof(query), "SELECT * FROM "TABLE_TOYS" WHERE Owner = '%s' LIMIT 8",sendername(playerid));//LIMIT 8... so it will find 8 rows where your nickame is
Reply
#3

Hello,

You have to limit the loop that you are doing, otherwise it will just fill the 8 slots, try to do something like

pawn Код:
new row, total;
    mysql_fetch_row(row);
    total = strval(row);
    if(total > 0)
    {
        for(new x;x<total;x++)// 8 Slots
        {
You don't need to create a variable but it's better.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)