mysql functions load
#1

Код:
stock Loadveh()
{
	new
	    vehid
  	;
	format(Query, sizeof(Query), "SELECT * FROM `cars` WHERE `carid` = '%d'", vehid);
	mysql_query(Query);
	mysql_store_result();

    if(mysql_retrieve_row())
    {
        new
			Data[128]
		;
        mysql_fetch_field_row(Data,"Carid"); CarInfo[carid][vCarid] = strval(Data);
        mysql_fetch_field_row(Data,"PosX"); CarInfo[carid][vPosX] = strval(Data);
        mysql_fetch_field_row(Data,"PosY"); CarInfo[carid][vPosY] = strval(Data);
        mysql_fetch_field_row(Data,"PosZ"); CarInfo[carid][vPosZ] = strval(Data);
        mysql_fetch_field_row(Data,"CarAngle"); CarInfo[carid][vCarAngle] = strval(Data);
        AddStaticVehicleEx(CarInfo[carid][vCarid], CarInfo[carid][vPosX], CarInfo[carid][vPosY], CarInfo[carid][vPosZ], CarInfo[carid][vCarAngle], -1, -1, -1);
	}
    mysql_free_result();
}
None errors, but it doesnt load.
Reply


Messages In This Thread
mysql functions load - by NewbBeginner - 22.01.2011, 15:12
Re: mysql functions load - by Kaylux - 22.01.2011, 15:16
Re: mysql functions load - by NewbBeginner - 22.01.2011, 15:21
Re: mysql functions load - by NewbBeginner - 22.01.2011, 16:12

Forum Jump:


Users browsing this thread: 1 Guest(s)