Make Pc Beep
#1

I was printing all chars from 1 - 255, and found that if you print a char with value of 7 you pc beeps. I don't know if this is a good/bad idea probably the latter (pcs beeping usually isn't good). This can also crash the server if used in a large loop.

pawn Код:
stock PcBeep( iTimes )
{

    for( new i=0; i < iTimes; ++i )
        printf("%c", 7 );

}
I can't really think of any use for it but thought i'd share anyway. A lot of people probably already know this. IIRC in c++ you can do "/a" in in console output and it makes the pc beep too.

I guess it's also a bad idea to use this if your server is not home hosted.

EDIT: I might try and make a beat
Reply
#2

Using this lovely Ascii table it tells us that char 7 is bell, I take it that this makes the computer beep. Might be good just for errors if you're hosting on a home machine.
Reply
#3

Never thought about using it for errors i guess it does have a use
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)