Raised This Month: $51 Target: $400
 12% 

AMXX fun: shortest script ever.


Post New Thread Reply   
 
Thread Tools Display Modes
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 11-05-2012 , 18:47   Re: AMXX fun: shortest script ever.
Reply With Quote #21

I've sucessfully beaten OP, now you have to send me 50€ via PayPal.
__________________
mabaclu is offline
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 11-05-2012 , 18:55   Re: AMXX fun: shortest script ever.
Reply With Quote #22

Okay then. Just 8 characters? I can do it with 6.
My current results:
PHP Code:
@@()@@ 
My previous (hashed) results:
PHP Code:
@@()@@()//...$a|t... 
PHP Code:
@@(){}//...$a|t... 
Why it's possible? If symbol starts with "@", symbol implicitly treated as public. Why not just "@" alone? Because "@" alone treated as operator. By the way, "@" may be used anywhere in symbol name, e.g. you can write:
PHP Code:
new const hello@world[] = "Hello, world." 
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|

Last edited by Shadows In Rain; 11-06-2012 at 13:04.
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 11-05-2012 , 18:58   Re: AMXX fun: shortest script ever.
Reply With Quote #23

Pawn stares at YOU!
@@()@@
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|

Last edited by Shadows In Rain; 11-05-2012 at 18:58.
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-05-2012 , 18:58   Re: AMXX fun: shortest script ever.
Reply With Quote #24

Seems you violated one of your conditions...

Quote:
Originally Posted by Shadows In Rain View Post
— It can do something (no matter what).
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 11-05-2012 , 19:01   Re: AMXX fun: shortest script ever.
Reply With Quote #25

Quote:
Originally Posted by YamiKaitou View Post
Seems you violated one of your conditions...
If you call "@@", it will yield stack overflow.
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 11-05-2012 , 19:03   Re: AMXX fun: shortest script ever.
Reply With Quote #26

Quote:
Originally Posted by YamiKaitou View Post
Seems you violated one of your conditions...

He didn't violate because that's not even a rule. Learnt something new here, thanks for the challenge.
__________________
mabaclu is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 11-05-2012 , 19:03   Re: AMXX fun: shortest script ever.
Reply With Quote #27

Quote:
Originally Posted by Shadows In Rain View Post
If you call "@@", it will yield stack overflow.
It never get a call...

Now my code
PHP Code:
forward pfn_think(a)
native remove_entity(iIndex)
public 
pfn_think(aremove_entity(a
It will crash your game, still doing something...
.Dare Devil. is offline
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 11-05-2012 , 19:10   Re: AMXX fun: shortest script ever.
Reply With Quote #28

Actually I wonder how operator "@" is used. Because I can't find anything about it, even in compiler sources.
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 11-05-2012 , 19:23   Re: AMXX fun: shortest script ever.
Reply With Quote #29

Its in Pawn's manual. It's used as you said and can also be used to create public variables.
__________________
mabaclu is offline
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 11-05-2012 , 19:36   Re: AMXX fun: shortest script ever.
Reply With Quote #30

Quote:
Originally Posted by mabaclu View Post
Its in Pawn's manual. It's used as you said and can also be used to create public variables.
In compiler sources it is written that "@" alone (i.e. when not attached to other characters) treated as operator (just like "+" or "-" etc).

pawn-4.0.4733/source/compiler/sc2.c, line 2125:
Code:
    if (_lexstr[0]==PUBLIC_CHAR && _lexstr[1]=='\0')
      _lextok=PUBLIC_CHAR;      /* '@' all alone is not a symbol, it is an operator */
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode