Why doesn't this work? (MySQL)
#1

pawn Код:
public OnGameModeInit()
{
    new query[128], classid[8];
    format(query, sizeof(query),"SELECT * FROM passwords WHERE class = '%s'", classid);
    mysql_query(query);
    mysql_store_result();
   
    while(mysql_fetch_row_format(query,"|"))
    {
        new tablevalue[16];
        strpack(classid, "l1a"); mysql_fetch_field_row(tablevalue, "password"); strpack(Password_L1A, tablevalue);
        strpack(classid, "l2a"); mysql_fetch_field_row(tablevalue, "password"); strpack(Password_L2A, tablevalue);
        strpack(classid, "l3s"); mysql_fetch_field_row(tablevalue, "password"); strpack(Password_L3S, tablevalue);
        strpack(classid, "l4r"); mysql_fetch_field_row(tablevalue, "password"); strpack(Password_L4R, tablevalue);
        strpack(classid, "l5m"); mysql_fetch_field_row(tablevalue, "password"); strpack(Password_L5M, tablevalue);
        strpack(classid, "lvpd"); mysql_fetch_field_row(tablevalue, "password"); strpack(Password_LVPD, tablevalue);
    }
    mysql_free_result();

    return 1;
}
Seems like it should work to me.
Reply


Messages In This Thread
Why doesn't this work? (MySQL) - by austin070 - 28.04.2014, 01:28
Re: Why doesn't this work? (MySQL) - by austin070 - 28.04.2014, 22:23
Re: Why doesn't this work? (MySQL) - by Campbell- - 28.04.2014, 22:26
Re: Why doesn't this work? (MySQL) - by austin070 - 28.04.2014, 22:36
Re: Why doesn't this work? (MySQL) - by Campbell- - 28.04.2014, 22:38
Re: Why doesn't this work? (MySQL) - by Dignity - 28.04.2014, 22:39
Re: Why doesn't this work? (MySQL) - by austin070 - 28.04.2014, 22:46
Respuesta: Why doesn't this work? (MySQL) - by JustBored - 28.04.2014, 23:47
Re: Why doesn't this work? (MySQL) - by austin070 - 29.04.2014, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)