23.06.2011, 16:15
Hello!
I have this code:
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 =)
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;
}
If someone can get me a revised code, I already understand the code and learn what's the problem.
Thanks in advance helpers =)