you have to clear the screen when you want to remove characters on the screen, or write spaces to them
First of all, I'm in Steam Web Browser and it hates my shift key.
Second, I have a code where it finds the closest player to the chip. that works fine. But when another player walk in, it does not clear the name. I have only seen this for the name, but haven't seen it for anything else, including SteamID, Position, etc.
But I don't really want to have to reset it every time, since that might mess it up. Any suggestions?
you have to clear the screen when you want to remove characters on the screen, or write spaces to them
Well I can't write spaces to them. But I did do this:
if (~PN) {Reset == 1}
PN is the player name. So if the name changes, it resets the screen. That seems to work. But as time goes on, it fails. Not sure why.
I'm going to test it now.
But in theory, I could just do...
if (~PN) {Screen:writeCell(2039, <Line Here>)}
...?
And what is the 2039? >_>
2039 is the address used to clear a specific row on the console screen.
Check out this thread:
http://www.wiremod.com/forum/wiremod...eat-sheet.html
Thank you. That is very helpful. Again, testing now...
EDIT:
I just tested
if (~PN) {PlayerInfo:writeCell(2039, 3)}
And it did not work. I made one person come near me. Then someone with a larger name. It went over the guys smaller name. But when the guy with the small name cam back again, it only covered part of the big name.
EDIT Again:
I don't mean to be hasty, but I was thinking about
XWL:writeString(S,N,N,N,N,N)
String, X Pos, Y Pos, Color, Color, Flash.
Well I was wondering if it would be possible for the color to change and it to flash if, let's say, A == 1.
Although, I'm not sure how I could do that, since I can't just stubstitute N for A.
Is it possible to change the color, and flash without having to code it in every time?
Last edited by grandpapolly; 05-27-2009 at 07:09 PM.
I've been testing other things, and they still don't work. Any solutions?
use the output of the console screen reset to a button lol more than simple and with no e2 XD
You probably cleared the wrong line. Remember, the first line is line number 0, the third one has number 2 (or did you want to clear the fourth line?).
My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
My tutorials: applyTorque - Quaternions - PID controllers
Some other things I made: FT Chip - RK4 Solar System
Bookmarks