mysql vehicles
#1

PHP код:
stock LoadVehicles() 
{
    new 
id;
    
mysql_format(sqldbquerysizeof(query), "SELECT * FROM vehicles");
    
mysql_query(sqldbquery);
    
mysql_store_result();
    
printf("Kocsik tцltйse..");
    while(
mysql_fetch_row("|"))
    {
        
id LoadedInfo[Vehicles];
        
sscanf(query"p<|>e<iis[30]s[30]iiiiffffii>"VehicleInfo[id]);
        
CreateVehicle(VehicleInfo[id][vModel],VehicleInfo[id][vX],VehicleInfo[id][vY],VehicleInfo[id][vZ],VehicleInfo[id][vR],VehicleInfo[id][vSzin1],VehicleInfo[id][vSzin2], 10);
        
SetVehicleNumberPlate(idVehicleInfo[id][vRendszam]);
        
LoadedInfo[Vehicles] = LoadedInfo[Vehicles] + 1;
    }

why dont spawn this the car? i call LoadVehicles(); in onplayerconnect

PHP код:
enum vInfo
{
    
vID,
    
vModel,
    
vRendszam[30],
    
vTulajdonos[30],
    vAr,
    
vUzemanyagTipus,
    
vUzemanyag,
    
vAllapot,
    
Float:vX,
    
Float:vY,
    
Float:vZ,
    
Float:vR,
    
vSzin1,
    
vSzin2

Reply


Messages In This Thread
mysql vehicles - by n00el - 11.05.2014, 05:01
Re: mysql vehicles - by n00el - 11.05.2014, 09:44
Re: mysql vehicles - by Tingesport - 11.05.2014, 10:02
Re: mysql vehicles - by n00el - 11.05.2014, 10:17
Re: mysql vehicles - by Tingesport - 11.05.2014, 10:37
Re: mysql vehicles - by n00el - 11.05.2014, 10:43
Re: mysql vehicles - by n00el - 11.05.2014, 11:02

Forum Jump:


Users browsing this thread: 5 Guest(s)