2
Im essayant de charger un hexagone littéral à partir d'un fichier de paramètres xml, je peux analyser le xml très bien et obtenir la chaîne nécessaire à partir du fichier,Comment définir un ints Hex littérales d'une chaîne,
mais je ne peux pas semblent obtenir pour définir une variable int valeur:/
code:
int PlayerBaseAddress = System.Convert.ToInt32(ConfigLoader.GetSetting("PlayerBaseAddress"));
// Input string was not in a correct format.
public static string GetSetting(string Val)
{
// This loads from the xml file, Pretend its hardcoded to return a string of 0x17EAAF00
}
int PlayerBaseAddress = 0x17EAAF00; // This works.
Cela a fonctionné parfaitement merci, – Fusspawn