28.08.2010, 04:11
(
Последний раз редактировалось Calgon; 11.12.2011 в 15:52.
)
Introduction
Background
"LOLCODE is an esoteric programming language inspired by the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.
The language is not clearly defined in terms of operator priorities and correct syntax, but several functioning interpreters and compilers already exist. One interpretation of the language has been proven Turing-complete."
Read more: http://en.wikipedia.org/wiki/LOLCODE
Proper introduction
I've written this with macros and have attempted to continue the meme-like syntax, but it doesn't conform completely to the LOLCODE standards according to Wikipedia.
Download
Download here: http://pastebin.com/ZHckCDqh
Code
Here's a short script written with the LOLCode include for Pawn:
Summary
The main aim of this is to promote usage of macros - and how effective they can be, this may be completely useless, but the usage of macros are completely under rated. Macros aren't just for undefining and redefining MAX_PLAYERS, they can play a huge part in your script.
Background
"LOLCODE is an esoteric programming language inspired by the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.
The language is not clearly defined in terms of operator priorities and correct syntax, but several functioning interpreters and compilers already exist. One interpretation of the language has been proven Turing-complete."
Read more: http://en.wikipedia.org/wiki/LOLCODE
Proper introduction
I've written this with macros and have attempted to continue the meme-like syntax, but it doesn't conform completely to the LOLCODE standards according to Wikipedia.
Download
Download here: http://pastebin.com/ZHckCDqh
Code
Here's a short script written with the LOLCode include for Pawn:
pawn Код:
#include <a_samp>
#include <lolcode-2.0>
main() FURBALLCUMIN
FAX("[debug] LOLCode 2.0 initialised.")OK
SPACECATGOHOME
ITCAME
WWW OnGameModeInit() FURBALLCUMIN
CATCOLLARS3D("I'm at the coordinates:\n30.0,40.0,50.0",0x008080FF,30.0,40.0,50.0,40.0,0);
SPACECATGOHOME
ITCAME
WWW OnPlayerConnect(playerid) FURBALLCUMIN
CANHAS szPlayerName[MAX_PLAYER_NAME]OK
GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME)OK
if(!ISCATSAME(szPlayerName, "MaTrIx4057")) FURBALLCUMIN
// u critic u mad
UMAD(playerid)OK
ITCAME
if(!ISCATSAME(szPlayerName, "Max_Coldheart")) FURBALLCUMIN
UEVENMADDER(playerid)OK
ITCAME
SENDCLIENTCATS(playerid, DATWHITECAT, "sup brew?")OK
ITCAME
The main aim of this is to promote usage of macros - and how effective they can be, this may be completely useless, but the usage of macros are completely under rated. Macros aren't just for undefining and redefining MAX_PLAYERS, they can play a huge part in your script.