Raised This Month: $32 Target: $400
 8% 

AMXX fun: shortest script ever.


Post New Thread Reply   
 
Thread Tools Display Modes
Chuvi
Junior Member
Join Date: Feb 2012
Location: Russia,Saint-Petersburg
Old 11-06-2012 , 12:17   Re: AMXX fun: shortest script ever.
Reply With Quote #31

Quote:
Originally Posted by Shadows In Rain View Post
Okay then. Just 8 characters? I can do it with 5.
My current results:
PHP Code:
@@()@@ 
I've counted 6 characters there.
Chuvi is offline
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 11-06-2012 , 12:39   Re: AMXX fun: shortest script ever.
Reply With Quote #32

Quote:
Originally Posted by Pawn Manual
Functions whose name starts with the “@” symbol are also public. So an
alternative way to write the public function onkey function is:
Listing: @onkey function
@onkey(keycode)
return key==’~’ ? 160 : key
The “@” character, when used, becomes part of the function name; that is,
in the last example, the function is called “@onkey”. The host application
decides on the names of the public functions that a script may implement.
__________________
mabaclu is offline
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 11-06-2012 , 13:03   Re: AMXX fun: shortest script ever.
Reply With Quote #33

Quote:
Originally Posted by Chuvi View Post
I've counted 6 characters there.
Oopsie.... It was a typo. (fixed now)

@mabaclu
Can you find there something about "operator @"? Because it has been mentioned in sourcecode. Or may be I will just ask Pawn maintainer.
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|

Last edited by Shadows In Rain; 11-06-2012 at 13:08.
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-07-2012 , 14:45   Re: AMXX fun: shortest script ever.
Reply With Quote #34

Quote:
Originally Posted by Shadows In Rain View Post
Or may be I will just ask a brick wall.
FTFY.
__________________
asherkin is offline
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 17:28.


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