7 and BEEEP!!
#1

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
Reply
#2

Lol! That's funny
Reply
#3

Pretty beep, nice* xD

EDIT:At me don't beep
Reply
#4

lol, nice with the hearth thing

btw. this is also beep:
pawn Код:
print("\a");
Reply
#5

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
lol, nice with the hearth thing

btw. this is also beep:
pawn Код:
print("\a");
Seems like

pawn Код:
printf("%c%c",7,3);
==

pawn Код:
print("\a\3");
==
pawn Код:
print("\7\3");
Thanks for the point-out
Reply
#6

i dont think my host would like my beeping there pcs at them. BEEP!
Reply
#7

http://www.asciitable.com/

7 - bell
Reply
#8

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
Reply
#9

it may be funny but it uses to much process usage :/
Reply
#10

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
pawn Код:
for (;;) {}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)