Failed to compile: CarRadio.cs(860,56): error CS1503: Argument `#1' cannot convert `NetworkableId' expression to type `uint'

Needs update for May Rust Update Please!

Failed to compile: CarRadio.cs(860,56): error CS1503: Argument `#1' cannot convert `NetworkableId' expression to type `uint'

same for me maybe we need to wait for a update

same issue. just waiting on this and 1 other plugin

Fix: Replace all text saying "uint" in .cs file with "ulong"

for one example, on line 156:

public Dictionary<uint, VehicleContainer> VehicleRadioMap = new Dictionary<uint, VehicleContainer>();

to

public Dictionary<ulong, VehicleContainer> VehicleRadioMap = new Dictionary<ulong, VehicleContainer>();

 

 

i tried it but i still get the error :

Error while compiling: CarRadio.cs(860,56): error CS1503: Argument `#1' cannot convert `NetworkableId' expression to type `ulong'

Sorry.  I forgot to add once crucial thing.

For lines with a ".ID" (search exactly for ".ID" in caps) - you must add a "Value" as in ".ID.Value".

Line 484:

thePersistentData.VehicleRadioMap.Add(eachCar.net.ID.Value, theController ? new VehicleContainer(theController.Radio.Name, theController.State, theController.NetIDs) : null);

Line 502:

if (thePersistentData.VehicleRadioMap.TryGetValue(eachVehicle.net.ID.Value, out theContainer))

Line 545:

if ((config.MountNeeded && aPlayer.GetMountedVehicle() != theVehicle) || !theController.NetIDs.Contains(aButton.net.ID.Value))

Line 626:

theController.NetIDs.Add(theNewEntity.net.ID.Value);

Line 674:

if (theController.NetIDs.Contains(eachEntity.net.ID.Value))

Line 858:

if (NetIDs.Contains(eachEntity.net.ID.Value) && !(eachEntity is PressButton))

 

This should fix 100%

Slap me silly if not.

 

 

It did thank you! :)

Perfect! Changing uint to ulong and going through the net.ID.Value changes worked out... Thanks.

Thanks Hab9!

lnkbWlKOqMqA28n.jpg Hab9

Fix: Replace all text saying "uint" in .cs file with "ulong"

for one example, on line 156:

public Dictionary<uint, VehicleContainer> VehicleRadioMap = new Dictionary<uint, VehicleContainer>();

to

public Dictionary<ulong, VehicleContainer> VehicleRadioMap = new Dictionary<ulong, VehicleContainer>();

 

 

And what if in .cs is not just uint, but uint64. should I replace it completely or just "ulong64"?



Merged post

[19:37:43]Error while compiling: Teleportation.cs(2728,68): error CS1503: Argument `#1' cannot convert `ulong' expression to type `NetworkableId'
Everything turned out in one plugin . with the second problem

as a heads up on the 4 slot cars if the cockpit/engine is in the second slot and you attach a radio you can no longer get into the car lol. same setup was fine last wipe but seems to be broken this wipe. if you put a camper behind the cockpit you cant enter that either

I also got this error after making the changes from above:

Error while compiling: CarRadio.cs(860,56): error CS1503: Argument `#1' cannot convert `NetworkableId' expression to type `uint'

cubixrube8: I followed Hab9's changes in his two posts and it workinig for me great.

мне тоже помогло на 30% плагинов а вот rfteleport не помогло, сломались при обнове раста

DAoCMmHavBTz21n.jpg orangepony4

And what if in .cs is not just uint, but uint64. should I replace it completely or just "ulong64"?



Merged post

[19:37:43]Error while compiling: Teleportation.cs(2728,68): error CS1503: Argument `#1' cannot convert `ulong' expression to type `NetworkableId'
Everything turned out in one plugin . with the second problem
Dear man Please help with the plugin. I can’t fix it (((I did as you wrote - it’s useless. The plugin is very important