SA-MP Forums Archive
[Include] LOLCode - Admittedly not the most useful release. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] LOLCode - Admittedly not the most useful release. (/showthread.php?tid=171839)

Pages: 1 2


LOLCode - Admittedly not the most useful release. - Calgon - 28.08.2010

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:

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
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.


Re: LOLCode - Admittedly not the most useful release. - Retardedwolf - 28.08.2010

Quote:
Originally Posted by Calgon
Посмотреть сообщение
http://en.wikipedia.org/wiki/LOLCODE

I've written this with macros, pretty much completely useless, but it's somewhat of an expansion to LOLCode!

http://pastebin.com/jwdqdAN7

Enjoy. I wrote an untested script in LOLCode (which compiled):

pawn Код:
#include <a_samp>
#include <lolcode>

main() ITSCUMIN
OKDEN

CANHAS turdburger;

WWW OnGameModeInit() ITSCUMIN
CANHAS FILE aH EQA PLZOPENFILE("cheezburgr.txt", io_write)OK
RITE(aH, "KITTY KAT EAT 2 MANY CHEEZBURGR")OK
AWESOMETHX(aH)OK
GIVEBAK FAX("OKTY")OK
OKDEN

WWW OnPlayerSpawn(playerid) ITSCUMIN
SENDCLIENTCATS(playerid, 0, "OK U SPAWND")OK
OKDEN
lol-ed hard.

This is funny.


Re: LOLCode - Admittedly not the most useful release. - General Abe - 28.08.2010

lmfaoooooooooo.

+1


Re: LOLCode - Admittedly not the most useful release. - nuriel8833 - 28.08.2010

Fail xDDD


Re: LOLCode - Admittedly not the most useful release. - ev0lution - 28.08.2010

I made something like this once... it's amazing what boredom can do.

Although...
Код:
#define                 NOWAY                   { else }
^ I think there's a slight problem there.

And FUKUGUISE won't do much.


Re: LOLCode - Admittedly not the most useful release. - sekol - 28.08.2010

I can't stop laughing


Re: LOLCode - Admittedly not the most useful release. - mr.snk - 28.08.2010

This is funny


Re: LOLCode - Admittedly not the most useful release. - MrDeath537 - 28.08.2010

ROFLMAO, nice xDDD


Re: LOLCode - Admittedly not the most useful release. - Gforcez - 28.08.2010

LOL! XD

<8 Character Rule>


Re: LOLCode - Admittedly not the most useful release. - jiggy89 - 28.08.2010

u realy maked my day with this, not gonna use it but it looks realy funny


Re: LOLCode - Admittedly not the most useful release. - Calgon - 28.08.2010

Quote:
Originally Posted by ev0lutionnn
Посмотреть сообщение
I made something like this once... it's amazing what boredom can do.

Although...
Код:
#define                 NOWAY                   { else }
^ I think there's a slight problem there.

And FUKUGUISE won't do much.
Indeed. 'NOWAY' can be used in conjunction with 'OKDEN'?


Re: LOLCode - Admittedly not the most useful release. - ev0lution - 28.08.2010

You have the braces the wrong way around.


Re: LOLCode - Admittedly not the most useful release. - WillyP - 28.08.2010

haha, i like this better cause it aint got no brackets


Re: LOLCode - Admittedly not the most useful release. - Norn - 28.08.2010

Quote:
Originally Posted by ev0lutionnn
Посмотреть сообщение
You have the braces the wrong way around.
No sir.

{ else }

{

Another macro for the other }.


Re: LOLCode - Admittedly not the most useful release. - Calgon - 28.08.2010

Quote:
Originally Posted by ev0lutionnn
Посмотреть сообщение
You have the braces the wrong way around.
Fail. Fixed, thanks.


Re: LOLCode - Admittedly not the most useful release. - kLx - 28.08.2010

well thats just lame DDD


Re: LOLCode - Admittedly not the most useful release. - Calgon - 28.08.2010

Quote:
Originally Posted by kLx
View Post
well thats just lame DDD
You're just lame. LOLCODE is one of the most useful creations yet.


Re: LOLCode - Admittedly not the most useful release. - WillyP - 28.08.2010

Quote:
Originally Posted by Calgon
View Post
You're just lame. LOLCODE is one of the most useful creations yet.
AGGGGGGREEEED


Re: LOLCode - Admittedly not the most useful release. - FalconX - 20.08.2012

Quote:
Originally Posted by Calgon
View Post
You're just lame. LOLCODE is one of the most useful creations yet.
I don't actually get it.

Look at the title of the thread and look at your post And boom you realized it's opposite. In my opinion, this is not one of the most useful creation.

Don't be double minded and think before you write .. Mate

Edit: good brain for thinking such thing

Edit 1: sorry for such a big bump xd


Re: LOLCode - Admittedly not the most useful release. - Marko Koprivanac - 10.11.2012

I made anticheat FS writen in this "Language",and it works great!