Blockland Forums > Modification Help

Requesting code : Access key.

Pages: << < (3/4) > >>

ThinkInvisible:


--- Quote from: Headcrab Zombie on August 05, 2010, 06:49:52 PM ---1. Just make a setAccess command that checks if the user can setAccess, and make the database edit commands check for access levels.
Right now I'm just taking a breakbeing distracted from writing a paper and I don't want to be too distracted by writing more than a few lines of script

I don't think I quite understand what you mean.
Like "omg 1" doing something different than "omg 2"?

--- End quote ---
No...
Like "1 + 2" making it say 3, and "1 + 64" making it say 65.
Or like "omg 1" saying "WTFBBQ1" and "omg 2" saying "WTFBBQ2"

Simple variable-result system.

"setAccess command that checks if the user can setAccess, and make the database edit commands check for access levels." Er, how2?

Headcrab Zombie:


--- Quote from: ThinkInvisible on August 05, 2010, 06:51:15 PM ---Or like "omg 1" saying "WTFBBQ1" and "omg 2" saying "WTFBBQ2"

--- End quote ---

if(getSubStr(%message,0,3) $= "omg")
{
    %num = getSubStr(%message,4,10);
    switch(%num)
    {
        case 1:
            messageAll('','WTFBBQ1');
        case 2:
            messageAll('','WTFBBQ2');
        case 3:
            messageAll('','WTFBBQ3');   
    }
}



--- Quote from: ThinkInvisible on August 05, 2010, 06:51:15 PM ---Like "1 + 2" making it say 3, and "1 + 64" making it say 65.

--- End quote ---
I had something like this long ago, something with eval


--- Quote from: ThinkInvisible on August 05, 2010, 06:51:15 PM ---how2?

--- End quote ---

--- Quote from: Headcrab Zombie on August 05, 2010, 06:49:52 PM ---I don't want to be too distracted by writing more than a few lines of script

--- End quote ---


ThinkInvisible:

@HCZ:
Your code there doesn't work, first line is error'd.
EDIT - Never mind, got this working.

And i have no idea about the access key thing.

Headcrab Zombie:

Works fine for me

ThinkInvisible:


--- Quote from: Headcrab Zombie on August 07, 2010, 12:35:33 PM ---Works fine for me

--- End quote ---
Once again, i got it working now.

I still really want to know how to do access key.

Pages: << < (3/4) > >>

Go to full version