21.07.2011, 09:55
Hi, i wan't to get playerbusiness id and then use it. I tryed so:
pawn Код:
public GetPlayerBusiness(playerid, businessid)
{
if (businessid == INVALID_BUSINESS_ID) return false;
new query[128];
format(query,128,"SELECT `id` FROM `"#MYSQL_BUSINESS_TABLE_NAME"` WHERE owner = '%s'",PlayerName(playerid));
mysql_query(query);
mysql_store_result();
}