getKeyText() from string variable

How to do it???anyone know???
I have global vars KeyLeft(int), KeyLeftText(string)
here's the code I use :
Why the line 2 error??Why can't I get the key text from string variable???What should i do to get key text from it???

I have global vars KeyLeft(int), KeyLeftText(string)
here's the code I use :
- Code: Select all
loadVars("config.dat","config");
KeyLeft=getKeyText(KeyLeftText);
remapKey(KeyLeft,KEY_LEFT);
remapKey(KEY_LEFT,KeyLeft);
Why the line 2 error??Why can't I get the key text from string variable???What should i do to get key text from it???


