17.04.2012, 10:20
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.
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
pawn Код:
stock PcBeep( iTimes )
{
for( new i=0; i < iTimes; ++i )
printf("%c", 7 );
}
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