never mind solved it, if anyone else wanted to know i used not equal to heres the modified for comparison:
function devscript_init(e)
end
local pressedx = 0
local pressedz = 0
function devscript_main(e)
Text(3,1,1,"Dev Script active, x = +50 xp, z = + 5 gold")
if g_InKey == "x" and pressedx == 0then
CharExp = CharExp + 50;
pressedx = 1;
end
if g_InKey ~= "x" then
pressedx = 0;
end
if g_InKey == "z" and pressedz == 0then
CharMoney = CharMoney + 5;
pressedz = 1;
end
if g_InKey ~= "z" then
pressedz = 0;
end
end
PC Specs: Windows 7 home 64-bit, Amd 7900 3gb DDR5 graphics, 8gb DDR3 Ram, Intel i7 3.4ghz