07.01.2018, 14:05
I'm have a command on you can see your vehicles,but not working...
I'm see all vehicles of the server,why?
Thanks!
I'm see all vehicles of the server,why?
Код:
if(strcmp(cmd, "/mycars", true) == 0) { if(AccountInfo[playerid][Vehicule] == 0) return SCM(playerid, ERROR, "Nu ai nici-un vehicul !"); for(new i=1;i<buyablecars;i++) { if(strcmp(VehInfo[i][Propietar], name, true) == 0) { new string[MAX_STRING]; GetVehicleName(i); format(string,sizeof(string), "Model-> %s, ID: %d, Kilometrii: %.1f",VehicleNames[GetVehicleModel(i)-400],VehInfo[i][Model], VehInfo[i][Km]); SCM(playerid,COLOR_YELLOW,string); format(string,sizeof(string), "Vehicule: %d | Sloturi pentru vehicule: %d", AccountInfo[playerid][Vehicule], AccountInfo[playerid][MaxVeh]); SCM(playerid,COLOR_YELLOW,string); } else if(VehInfo[i][Km] <= 0) { return GivePlayerMoney(playerid, 0); } } return 1; }