MySQL | Does not return the correct value
#1

Hello!

I have this code:

pawn Код:
if(strcmp(cmdtext,"/Value",true)==0)
{
    new s_return[256];
    mysql_query("SELECT 'Weapon1Money' FROM 'SERVER'");
    mysql_store_result();
     mysql_fetch_row_format(s_return,"|");
    mysql_free_result( );
    format(String,256,"%d",strval(s_return) );
        SendClientMessage(playerid,c_red,String);
    return 1;
}
But the thing I'm doing this command does not return the correct value exists in the table.
If someone can get me a revised code, I already understand the code and learn what's the problem.

Thanks in advance helpers =)
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)