How to return mysql result?
#1

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();

}
Reply


Messages In This Thread
How to return mysql result? - by ajwar - 21.07.2011, 09:55
Re: How to return mysql result? - by Patrik356b - 21.07.2011, 09:59
Re: How to return mysql result? - by iJumbo - 21.07.2011, 10:00

Forum Jump:


Users browsing this thread: 1 Guest(s)