Make Pc Beep - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Make Pc Beep (
/showthread.php?tid=335128)
Make Pc Beep -
iggy1 - 17.04.2012
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
Re: Make Pc Beep -
[HiC]TheKiller - 17.04.2012
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.
Re: Make Pc Beep -
iggy1 - 17.04.2012
Never thought about using it for errors i guess it does have a use