Jamie1414 Posted April 28, 2006 Share 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 Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 28, 2006 Share 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 Link to comment Share on other sites More sharing options...
Jamie1414 Posted April 28, 2006 Author Share Posted April 28, 2006 oh yeah..i declared it as global $command and thx for that bit Link to comment Share on other sites More sharing options...
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