MySQL | Does not return the correct value
#2

pawn Код:
if(strcmp(cmdtext,"/Value",true)==0)
{
    mysql_query("SELECT `Weapon1Money` FROM `SERVER`");
    mysql_store_result();
    if(mysql_retrieve_row() == 1)
    {
      new buffer[10];
      mysql_fetch_field_row(buffer, "Weapon1Money");
      new value = strval(buffer);
      format(buffer, sizeof(buffer),"%d", value);
      SendClientMessage(playerid, c_red, buffer);
    }
    mysql_free_result();
    return 1;
}
Reply


Messages In This Thread
MySQL | Does not return the correct value - by EviLpRo - 23.06.2011, 16:15
Re: MySQL | Does not return the correct value - by gimini - 23.06.2011, 16:28
Re: MySQL | Does not return the correct value - by EviLpRo - 23.06.2011, 16:40

Forum Jump:


Users browsing this thread: 1 Guest(s)