06.07.2015, 23:14
So I want when a player spawns, he finds a list of his vehicles and locations, but lets get to the vehicles only for now and I'll add the locations once I know how to list the vehicles
The question here is how to make a list of cars in chat like:
1. Infernus -will addd the location here later
2. Bullet -wl;l add the location here later
3. FCR -........
thank you
PHP код:
//That's how I get the vehicle owner/s name, and I know how to match it when a player name
new file[60],vehicleowner[24];
for(new i = 0; i < MAX_VEHICLES_BUILT; i++)
{
format(file,sizeof(file),"Vehicles/%i.ini",i);
if(fexist(file))
{
INI_ParseFile(file, "LoadVehicles_%s", .bExtra = true, .extra = i);
format(vehicleowner, sizeof(vehicleowner), "%s", VInfo[i][Owner]);
//matching with a name
if(strcmp(pName,VInfo[i][Owner]) == 0)
1. Infernus -will addd the location here later
2. Bullet -wl;l add the location here later
3. FCR -........
thank you