English
Main Menu
My panel

  • Welcome to The Ultimate Site of Worms Armageddon. Please log in or sign up.
Active chat preview

This box automatically views your last visited chat.
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Ray

#541
That was simply a copy-paste error.
#542
ea / Re: Training sessions
May 17, 2012, 08:38 PM
Since this topic was a little forgotten, I created a tournament for this cause. It's the 20th May, Sunday, at 18GMT.

Details can be found here.

I hope many of you show up, don't forget! It's going to be awesome.
#543
Off Topic / Re: PHP expert needed!
May 17, 2012, 07:23 PM
Actually, MonkeyIsland's method works, since I sanitize the integer first, check my post! :) Nice link Statik, I could not find that solution, my googleing skills suck seemingly. :D I'm gonna go with that, just to keep consistency at the maximum.

Isn't it strange that PHP automatically type casts int 0 to FALSE? ???

Quote from: chakkman on May 17, 2012, 11:19 AM
Quote from: Crazy on May 16, 2012, 11:46 PM
Get a life

LOL

No offense, Ray. Was just a funny answer after all that code stuff. :)
Non taken, was indeed funny. ;D
#544
Off Topic / Re: PHP expert needed!
May 16, 2012, 10:34 PM
I am completely clueless over validating 0 as integer. I am trying to validate user input in the range of 0 to 2. The user input is given to a function like this:

(int)mysql_real_escape_string(filter_var(trim($_POST['score']), FILTER_SANITIZE_NUMBER_INT))

Now inside the function, I even checked it to be exactly 0 like this:

if ($score === 0) echo 'something';

That worked. However... in the validation process, it's not working, probably because the FILTER_VALIDATE_INT filter does not validate 0 as an integer, even though I did everything for it to accept it as an integer. Values 1 and 2 are accepted by this:

filter_var($score, FILTER_VALIDATE_INT, array('options' => array('min_range' => 0, 'max_range'=> 2 )))

Anyone can tell me why this validation fails for the value 0?

EDIT: found out 0 is handled as empty for some reason. :-X

Quote from: avirex on May 16, 2012, 10:21 AM
Lolyou guys both speak excellent english... Sometimes I wonder if statik is to pro for you ray?  Im mega newb,so I have no idea.. Just seems like statik always has an answer, and he seems leet :D
I'm far away from excellent English, but thank you, that feels nice from a native speaker. :-[ Yes, Statik always has an answer and he is a great coder, no doubt about that, I'm just usually looking for something else, not what he thinks and I meant that if I was Russian and I could ask him in our native language, he would give me the exact answer I'm looking for. :)
#545
Why the hell would you do that to a map? ???
#546
Off Topic / Re: PHP expert needed!
May 15, 2012, 08:20 PM
I'm always happy that Statik helps me, I think we just suffer from that "neither of us are native English speakers" issue, so we never understand what the other really means.

That might be just my poor explanation and phrasing though.
#547
Off Topic / Re: PHP expert needed!
May 15, 2012, 05:03 PM
Cheerz! ;)
#548
Off Topic / Re: PHP expert needed!
May 15, 2012, 04:11 PM
I have the following array:

Array
(
[0] => Array ( [firstname] => Firstname [lastname] => Lastname [email] => email@domain.com [offer] => 500 )
[1] => Array ( [firstname] => Firstname [lastname] => Lastname [email] => email@domain.com [offer] => 450 )
[2] => Array ( [firstname] => Firstname [lastname] => Lastname [email] => email@domain.com [offer] => 670 )
[3] => Array ( [firstname] => Firstname [lastname] => Lastname [email] => email@domain.com [offer] => 600 )
)


(printed with print_r())

I want to sort it by the offers, ascending, to look like this:

Array
(
[0] => Array ( [firstname] => Firstname [lastname] => Lastname [email] => email@domain.com [offer] => 450 )
[1] => Array ( [firstname] => Firstname [lastname] => Lastname [email] => email@domain.com [offer] => 500 )
[2] => Array ( [firstname] => Firstname [lastname] => Lastname [email] => email@domain.com [offer] => 600 )
[3] => Array ( [firstname] => Firstname [lastname] => Lastname [email] => email@domain.com [offer] => 670 )
)


EXACTLY like this, it is very important to keep the ID's going from 0, 1... Any help would be appreciated! :-X
#549
I want to sign-up to the championship by accepting all conditions and rules. I will do my very best to make every game possible and I won't quit it before the end. I will be fair and will respect any other participants and also the moderators.

By yournickname
#550
I cannot wait!!!

Oh well, actually I think I can. :(
#551
ea / Re: Training sessions
May 12, 2012, 02:40 PM
Well if more people replied, we could perhaps make an "official" date, when we meet in #PartyTime. It would be cool if like 5 or 6 of us were there, we could play many games against different opponents.
#552
ea / Re: Training sessions
May 11, 2012, 12:26 PM
I just want to play with other members, I don't want to get involved with tournament hosting and those stupid medals and statistics and who knows what. Really don't like it.
#553
ea / Training sessions
May 11, 2012, 11:27 AM
Hello my dear fellow Elite Addicts!

I think most of you know - or if not, could have guessed by now - that this year's EAC is coming soon and I'm guessing most of you are in a similar position like me, being kind of inactive and mostly out of shape.

Now, whenever I want to play some Elite online I can barely find a good opponent, not to mention that if I do, "it's a funner, why would I take it seriously?"... and TEL has been killed by the communists. :D

So I basically have no way to train for this year's big event. So! I was thinking about agreeing for a date and time, like every week, or putting out more dates for each week, going in #PartyTime and Elite our asses off! Taking the games seriously, as much as it's possible, to get back in shape.

Now these could be off course for the active players as well, it would be a regular time to play with each other, after all, we are a community! :)

What do you say? Ideas?
#554
Members / Re: [quitted TdC] Husk
May 02, 2012, 08:21 PM
The past tense of quit is simply quit, there is no such word as "quitted". I will quit smoking, I quit my job yesterday, same shit.
#555
Off Topic / Re: PHP expert needed!
May 01, 2012, 05:24 AM
Well, since the only generated pages are actually the gallery albums, this is exactly what I need. This is a nice way, thank you.

EDIT: too bad it doesn't seem to work. :(