Help source int to short

04/06/2020 18:02 ZeTrOox#1
Severity Code Description Project File Row Column Deletion status
Error CS0266 Unable to implicitly convert type 'int' to 'short'. An explicit conversion exists (is a cast missing?) OpenNos.Mapper OpenNos-dev \ OpenNos.Mapper \ Mappers \ ItemMapper.cs 109 37 N / A

for :

output.DarkResistance = input.DarkResistance;
output.FireResistance = input.FireResistance;
output.LightResistance = input.LightResistance;
output.WaterResistance = input.WaterResistance;

Help plz
04/06/2020 18:15 Fizo55#2
For this kind of error it's really more faster to search on google yourself than to wait for a response here. Furthermore you can resolve this yourself. You just need to read the error.
04/06/2020 18:19 ZeTrOox#3
Quote:
Originally Posted by Fizo55 View Post
For this kind of error it's really more faster to search on google yourself than to wait for a response here. Furthermore you can resolve this yourself. You just need to read the error.
I searched I can not find a solution.
04/06/2020 20:46 InnoTx#4
Quote:
Originally Posted by ZeTrOox View Post
Severity Code Description Project File Row Column Deletion status
Error CS0266 Unable to implicitly convert type 'int' to 'short'. An explicit conversion exists (is a cast missing?) OpenNos.Mapper OpenNos-dev \ OpenNos.Mapper \ Mappers \ ItemMapper.cs 109 37 N / A

for :

output.DarkResistance = input.DarkResistance;
output.FireResistance = input.FireResistance;
output.LightResistance = input.LightResistance;
output.WaterResistance = input.WaterResistance;

Help plz
to change this :
Code:
public int DarkResistance { get; set; }

to this :
Code:
public short DarkResistance { get; set; }
cannot be so hard i think you should begin with an easier thing to program than this if you have no knowledge.


btw. you have to change the other resistance too.
04/06/2020 23:49 Cucalon#5
Just delete this codes. They have definite the output !
04/07/2020 00:17 InnoTx#6
Quote:
Originally Posted by Cucalon View Post
Just delete this codes. They have definite the output !
this is not a solution my friend and stop inviting me in your "NorsCode" Discord server for helping ppl fixing stuff, what you are gonna do is not fixing. You delete or ask some other ppl how to fix it ...