Jamie1414 Posted April 28, 2006 Posted April 28, 2006 Hey im having trouble adding a letter to a variable. this is what code i was trying to do it with but failed in doing so... $command = $command + "y" if u are wondering, i am using this code to find out what the user is typing for my friends game so i can know what the user inputs in his textbased game. and i got a hotkey for every character, if any1 has a better way to do this plz tell me
Thatsgreat2345 Posted April 28, 2006 Posted April 28, 2006 (edited) u havent defined $command and you cant add letters you would do a & not a + and if ur trying to figure out that then check out _ispressed in beta Edited April 28, 2006 by thatsgreat2345
Jamie1414 Posted April 28, 2006 Author Posted April 28, 2006 oh yeah..i declared it as global $command and thx for that bit
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now