what is this?

Everything technical and nerdy stuff here plz !

Re: what is this?

Postby natirips » 06.25.09

A bit late, but 49 is decimal ascii for '1'(character). As is 0x31, only hexa. I thought every living computer user had ASCII codes in binary, octal, decimal and hexadecimal in their pinky. :lol:
ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«
User avatar
natirips
[dswp]R.Stallman
 
Posts: 2946
Joined: 04.13.09
Location: Solar System/≈Zagreb
-----tdm:  
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:  
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60

Re: what is this?

Postby XTJ7 » 06.25.09

Man, there I thought I could contribute something to wurst and then came page 2... biatch! :D
<XTJ7> !penis
<CuntBot> XTJ7, your penis is 23.3 cm long. 8=========D
<XTJ7> !8ball do i rock?
<CuntBot> XTJ7: OH YEAH !
<BEH> !8ball you lieing too?
<CuntBot> BEH: Totally not.
<BEH> -_-''
User avatar
XTJ7
Kanzlerin
 
Posts: 1063
Joined: 07.24.08
Location: Germany
-----tdm:  
nick: [dswp]xtj7
skill: 753.35
kills: 98
deaths: 95
ratio: 1.03

Re: what is this?

Postby Unclefragger » 06.25.09

err did you try if($var == 1)? (no quotation marks)
if you use only one equal sign it will redefine the variable and return true if it succeeds (which should happen always in this case)
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
User avatar
Unclefragger
Godlike
 
Posts: 2006
Joined: 10.14.08
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60

Re: what is this?

Postby wurst » 06.26.09

ah je php had this == right...
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: what is this?

Postby SvaRoX » 06.26.09

it even has === now...
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger
User avatar
SvaRoX
Leader
 
Posts: 1972
Joined: 11.29.08

Re: what is this?

Postby XTJ7 » 06.26.09

But then it checks the data type as well, I don't think that would be what wurst wants to archive :P
<XTJ7> !penis
<CuntBot> XTJ7, your penis is 23.3 cm long. 8=========D
<XTJ7> !8ball do i rock?
<CuntBot> XTJ7: OH YEAH !
<BEH> !8ball you lieing too?
<CuntBot> BEH: Totally not.
<BEH> -_-''
User avatar
XTJ7
Kanzlerin
 
Posts: 1063
Joined: 07.24.08
Location: Germany
-----tdm:  
nick: [dswp]xtj7
skill: 753.35
kills: 98
deaths: 95
ratio: 1.03

Re: what is this?

Postby wurst » 06.26.09

hey, last time "25 players voted", this time "37 players voted".
hope it wil be more for the future :)
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: what is this?

Postby SanHolo » 06.27.09

wurst wrote:$voted = ((int)$user->data['voted_for_maps']);


Maybe this has all been resolved, but here you're casting at the wrong spot, you're casting $user. ;)


Code: Select all
echo "<img border="0" src="./images/icons/user_".((1 == $voted) ? '' : 'not_')."voted.gif" >n";
There is no god.
User avatar
SanHolo
Godlike
 
Posts: 369
Joined: 07.20.08
Location: Switzerland

Previous

Who is online

Users browsing this forum: No registered users and 39 guests

Misc