Jump to content
MakeWebGames

[mccode] Small mod (getting back into coding)


Recommended Posts

Posted

So I'm trying to learn coding again, here's something I came up with. Open to comments and stuff, please don't bash me too hard.

This is so you can't attack people who are 15 levels or more below you.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And for 15 levels or above.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Small mod (getting back into coding)

Thanks for sharing. I'm sure some will find this usefull but next time try to use the "code" tag. It makes it easier to read the code.

Also. My opinion on mods like this...Not small...on blocking certain levels...I don't like them cause what if they are at war? Then they cant attack...Just don't seem far. Now if you add in there a if they are in war its ok...That would be cool.

Posted

Re: Small mod (getting back into coding)

 

Thanks for sharing. I'm sure some will find this usefull but next time try to use the "code" tag. It makes it easier to read the code.

Also. My opinion on mods like this...Not small...on blocking certain levels...I don't like them cause what if they are at war? Then they cant attack...Just don't seem far. Now if you add in there a if they are in war its ok...That would be cool.

Not that experienced yet :) I'll give it a try though. Reading up on a few sites atm.

Posted

Re: Small mod (getting back into coding)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Neat as a slice of pie and You can add on to the errors to keep your coding clean :)

Posted

Re: Small mod (getting back into coding)

 

So I'm trying to learn coding again, here's something I came up with.

I think its more, you trying to learn to code, not again! lol But thats where we all started so keep it up and you might start producing some quality work! Read code that has been posted by the "better" coders such as well, nyna, floydian, luke etc etc and try and familiarize with there style and work on it :wink:

Posted

Re: Small mod (getting back into coding)

 

So I'm trying to learn coding again, here's something I came up with.

I think its more, you trying to learn to code, not again! lol But thats where we all started so keep it up and you might start producing some quality work! Read code that has been posted by the "better" coders such as well, nyna, floydian, luke etc etc and try and familiarize with there style and work on it :wink:

that could be read like...

"So I'm trying to learn coding, again..."

meaning he started to learn and quit ;)

but oh well, semantics is not my strong, atleast not in english :D

Posted

Re: Small mod (getting back into coding)

 

So I'm trying to learn coding again, here's something I came up with.

I think its more, you trying to learn to code, not again! lol But thats where we all started so keep it up and you might start producing some quality work! Read code that has been posted by the "better" coders such as well, nyna, floydian, luke etc etc and try and familiarize with there style and work on it :wink:

LAWL

Hell i am only 4 months old in coding But i would say to people don't try to familiarize with others codes you see on a forum..

yes take some formula's and get the know how on what they do that is Ment to be correct.

But i would actually take the time to read up on some of the ready avail sources That put forward on What each key feature

Does. Then Write up Your own scripts Starting at ground zero and learn what the errors do and find ways using the Sources avail to

Correct them... Making mods on here is nothing compared to the real Coding world..

Some of the scripts i have come across i have gone wow and Didn't think i could ever learn it.. but trial and error and something is formed....

Posted

Re: Small mod (getting back into coding)

 

So I'm trying to learn coding again, here's something I came up with.

I think its more, you trying to learn to code, not again! lol But thats where we all started so keep it up and you might start producing some quality work! Read code that has been posted by the "better" coders such as well, nyna, floydian, luke etc etc and try and familiarize with there style and work on it :wink:

that could be read like...

"So I'm trying to learn coding, again..."

meaning he started to learn and quit ;)

but oh well, semantics is not my strong, atleast not in english :D

No I mean learn again. I have short term memory loss and well...I just forgot how to code stuff and then I didn't try code until now. Thanks to everyone who is encouraging me, I'll TRY and produce some stuff. Need some ideas though...simple ones, not hard.

Posted

Re: [mccode] Small mod (getting back into coding)

Well its easy to forget, any language whether it be a programming language or a real speaking language such as english, german etc. However to forget entirely how to code means you wouldn't have looked at any scripting for over 2 years, and then again you wouldn't have been an amazing scripter 2 years ago if you forget everything, lol. How old are you?

Posted

Re: Small mod (getting back into coding)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Neat as a slice of pie and You can add on to the errors to keep your coding clean :)

your using isset() but you have set the variable just above, you could probably use FALSE as the else.

Posted

Re: [mccode] Small mod (getting back into coding)

wow alot of response..

Well its easy to forget, any language whether it be a programming language or a real speaking language such as english, german etc. However to forget entirely how to code means you wouldn't have looked at any scripting for over 2 years, and then again you wouldn't have been an amazing scripter 2 years ago if you forget everything, lol. How old are you?

i forgot vb lol only been about a year...

Posted

Re: [mccode] Small mod (getting back into coding)

 

wow alot of response..

Well its easy to forget, any language whether it be a programming language or a real speaking language such as english, german etc. However to forget entirely how to code means you wouldn't have looked at any scripting for over 2 years, and then again you wouldn't have been an amazing scripter 2 years ago if you forget everything, lol. How old are you?

i forgot vb lol only been about a year...

its ok VB sucks anyway

Posted

Re: [mccode] Small mod (getting back into coding)

 

wow alot of response..

Well its easy to forget, any language whether it be a programming language or a real speaking language such as english, german etc. However to forget entirely how to code means you wouldn't have looked at any scripting for over 2 years, and then again you wouldn't have been an amazing scripter 2 years ago if you forget everything, lol. How old are you?

i forgot vb lol only been about a year...

Good for you!!!

Posted

Re: Small mod (getting back into coding)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Neat as a slice of pie and You can add on to the errors to keep your coding clean :)

your using isset() but you have set the variable just above, you could probably use FALSE as the else.

lol

Do you know how to code at all ???

i have 6 error sections defining them..

if i changed that out and not put isset then it wouldn't do a thing when the error is there it would post the error and attack..?

Posted

Re: [mccode] Small mod (getting back into coding)

if you look at the statement though...

$error = (blah...

that is declaring and assigning a value to the error variable so a few lines down when it says isset it will have all ready been set.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...