28.06.2011, 14:47
hello !
whay this not return the correct value from table ?
here the stock:
thank's.
and anyone, i want guide from mysql. but only about function's/
thank for the helpers.
whay this not return the correct value from table ?
here the stock:
pawn Код:
stock GetPlayerClan(playerid)
{
new query[100];
format(query,sizeof(query),"SELECT `Clan` FROM `Users` WHERE `Nick`='%s'",GetName(playerid));
mysql_query(query);
mysql_store_result();
if(mysql_retrieve_row() == 1) mysql_fetch_field_row(query, "Clan");
mysql_free_result();
return strval(query);
}
and anyone, i want guide from mysql. but only about function's/
thank for the helpers.