23.06.2011, 16:28
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;
}