7 and BEEEP!! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: 7 and BEEEP!! (
/showthread.php?tid=219471)
7 and BEEEP!! -
Zh3r0 - 01.02.2011
Just had a nice time checking the characters with %c in the console.
I found out that 7 is a beep from the PC :O
Add this code in OnGameModeInit() and start the server.
pawn Код:
print("Beep Start");
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
printf("%c%c",7,3);
print("Beep Stop");
3 is a heart. I added it to see where it beeps.
It goes like
Beep Beep Beep Beep Beep
Re: 7 BEEP! -
Rzzr - 01.02.2011
Lol! That's funny
Re: 7 BEEP! -
IstuntmanI - 01.02.2011
Pretty beep, nice* xD
EDIT:At me don't beep
Re: 7 and BEEEP!! -
RyDeR` - 01.02.2011
lol, nice with the hearth thing
btw. this is also beep:
Re: 7 and BEEEP!! -
Zh3r0 - 01.02.2011
Quote:
Originally Posted by RyDeR`
lol, nice with the hearth thing
btw. this is also beep:
|
Seems like
==
==
Thanks for the point-out
Re: 7 and BEEEP!! -
CJ101 - 01.02.2011
i dont think my host would like my beeping there pcs at them. BEEP!
Re: 7 and BEEEP!! -
dice7 - 01.02.2011
http://www.asciitable.com/
7 - bell
Re: 7 and BEEEP!! -
Zh3r0 - 01.02.2011
Quote:
Originally Posted by cj101
i dont think my host would like my beeping there pcs at them. BEEP!
|
pawn Код:
CMD:sendbeep(p,pa[])
{
for(new b = 0;b<200;b++)print("\a");
SendClientMessage( p, -1, "Beeps sent, expect the closue of this server!");
}
This code shows all the codes
pawn Код:
for ( new c = 0; c < 255; c++)
{
printf("%c\t-\t%d",c,c);
}
Not sure if there are only 255.
DON'T ADD THE FOLLOWING CODE! IT WILL FUCKUP YOUR COMPUTER,ALL IT DOES IS LOOP TILL 256 AND AT 255 IT GOES AGAIN, ON AND ON AND ON.
CTRL+ALT+DEL won't work
Loop:
pawn Код:
Loop:
for ( new c = 0; c < 256; c++)
{
printf("%c\t-\t%d",c,c);
if ( c == 255 ) goto Loop;
}
just a show off
Re: 7 and BEEEP!! -
TheAlienForce - 01.02.2011
it may be funny but it uses to much process usage :/
Re: 7 and BEEEP!! -
dice7 - 02.02.2011
Quote:
Originally Posted by Zh3r0
DON'T ADD THE FOLLOWING CODE! IT WILL FUCKUP YOUR COMPUTER,ALL IT DOES IS LOOP TILL 256 AND AT 255 IT GOES AGAIN, ON AND ON AND ON.
CTRL+ALT+DEL won't work
just a show off
|
Why use goto ? Now everyone with their grandma will use it and scripting help will be next to impossible with badly arranged code
pawn Код:
for ( new c = 0; c < 256; c++)
{
printf("%c\t-\t%d",c,c);
if ( c == 255 ) c=0;
}
or just