dcmd_mycars(playerid, params[])
{
#pragma unused params
for(new i=0; i< MAX_VEHICLES; i++)
{
print("0");
if(fexist(VehiclePath(i)))
{
print("1");
if(!strcmp(CarOwner[i], PlayerName(playerid), false))
{
print("2");
new string[200];
strcat(string, "VehicleID: "COL_LIGHTBLUE"%d"COL_WHITE" | Model: "COL_LIGHTBLUE"%s"COL_WHITE" | Zamčenй: "COL_LIGHTBLUE"%s"COL_WHITE" | Benzнn: "COL_LIGHTBLUE"%dl"COL_WHITE" | Najeto: "COL_LIGHTBLUE"%dkm", sizeof(string));
print("3");
format(string, sizeof(string), string, i, SeznamAut[CarModel[i] - 400], AnoNe[CarLock[i]], CarFuel[i], CarNajeto[i]);
SCM(playerid, COLOR_WHITE, string);
print("4");
}
}
}
return 1;
}
|
The problem is that you used strcat before format, you should use format and then strcat
|
|
very badly written gamemode, there is no point for developing this forward. you just dont use ini system for vehicles. and dcmd shit
|






can you write me why shouldn't I use ini and dcmd ?
new string[500],string2[256]; format(string2, sizeof string2, "VehicleID: "COL_LIGHTBLUE"%d"COL_WHITE" | Model: "COL_LIGHTBLUE"%s"COL_WHITE" | Zamčenй: "COL_LIGHTBLUE"%s"COL_WHITE" | Benzнn: "COL_LIGHTBLUE"%dl"COL_WHITE" | Najeto: "COL_LIGHTBLUE"%dkm", i, SeznamAut[CarModel[i] - 400], AnoNe[CarLock[i]], CarFuel[i], CarNajeto[i]); strcat(string, , string2); SCM(playerid, COLOR_WHITE, string);