Cannot convert `double' expression to type `float'Solved

I get this error when ever i try use my /vendors command,

error CS1503: Argument `#1' cannot convert `double' expression to type `float'

I'm not sure why its only when i put the coordinates in i get an error.

        [Command("vendors")]
        private void vendorCommand(IPlayer player, string Command, string[] args)
        {
            player.Teleport(-217.249, 23.31685, 37.25893);
            player.Reply("You have been teleported to the vendors!");
        }​

You are passing doubles into the Teleport() function, if you want to declare a float put 'f' at the end of the number e.g. "-217.249f".

oh ok thank you!

Locked automatically