30.07.2017, 16:15
When I set one vehicle to different job it just didn't work even though the command work. The vehicle itself didn't update and still same and remains as civillian vehicle not some job (example like trucker job vehicle only).
Код:
else if(!strcmp(tmp, "job", true, 3)) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientError(playerid, "You are not in any vehicle!"); if(GetAdminLevel(playerid) < 10) return SendClientError(playerid, CANT_USE_CMD); if(!strlen(tmp2) || IsNumeric(tmp2) || strlen(tmp2) > MAX_PLAYER_NAME) return SCP(playerid, "job [name]"); dini_Set(CarFile(GetPlayerVehicleID(playerid)), "jobname", tmp2); SendClientInfo(playerid, "Success: The job has been updated to this vehicle."); myStrcpy(Vehicles[GetPlayerVehicleID(playerid)][jobname], tmp2); }