10.08.2018, 21:30
Hi
I have command /mycars - but it doesn't work, because: SERVER:Unknown command
I tried to put prints and it works to number 3 (problem is format maybe)
Thank you for your help.
I have command /mycars - but it doesn't work, because: SERVER:Unknown command
I tried to put prints and it works to number 3 (problem is format maybe)
Код:
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; }