Loading SQL Vehicles (how to?)
#2

Do something similar to this:
[PAWN]
//Top of script
#define MAX_CAR_FROM_DB 300
new carids[MAX_CAR_FROM_DB];

pawn Код:
mysql_query("SELECT * FROM vehicles");
mysql_store_result();
new row[500], id;
while(mysql_retrieve_row())
{
        mysql_fetch_row(row);
        id++;
        sscanf(row, "....", ....);
        carids[id] = AddStaticVehicle(...);  
}
mysql_free_result();
Use that as a template.
Reply


Messages In This Thread
Loading SQL Vehicles (how to?) - by Nuke547 - 14.04.2012, 21:06
Re: Loading SQL Vehicles (how to?) - by [HiC]TheKiller - 14.04.2012, 21:44
Re: Loading SQL Vehicles (how to?) - by Nuke547 - 14.04.2012, 22:12

Forum Jump:


Users browsing this thread: 1 Guest(s)