Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Z-C

(Z-C compiler for SCO (GTA IV Scripts)

Date:05/17/10
Author:TrojaA
URL:n/a
Comments:0
Info:n/a
Score: (3.00 in 14 votes)
// Z-C natives

native DISPLAY(string msg) = 0x43CFAA ?? 0;

function main()
{
    local int bottles
    bottles = 99

    while bottles
    {
        DISPLAY(itos(bottles))
        DISPLAY("bottles of beer on the wall, ")
        DISPLAY(itos(bottles))
        DISPLAY(" bottles of beer~n~")
        DISPLAY("Take one down and pass it around,")
        DISPLAY(itos(bottles))
        DISPLAY(" bottles of beer on the wall.~n~")

        bottles--
    }

    DISPLAY("1 bottle of beer on the wall, 1 bottle of beer~n~")
    DISPLAY("Take one down and pass it around, no more bottles of beer on the wall~n~~n~")
    DISPLAY("No more bottles of beer on the wall, no more bottles of beer.~n~")
    DISPLAY("Go to the store and buy some more, 99 bottles of beer on the wall.~n~")

    return 1
}

Download Source | Write Comment

Alternative Versions

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: