dswp.de http://www.dswp.de/old/ |
|
what is this? http://www.dswp.de/old/forum-gameserver-support/what-is-this-t797-10.html |
Page 2 of 2 |
Author: | natirips [ 06.25.09 ] |
Post subject: | Re: what is this? |
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. |
Author: | XTJ7 [ 06.25.09 ] |
Post subject: | Re: what is this? |
Man, there I thought I could contribute something to wurst and then came page 2... biatch! |
Author: | Unclefragger [ 06.25.09 ] |
Post subject: | Re: what is this? |
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) |
Author: | wurst [ 06.26.09 ] |
Post subject: | Re: what is this? |
ah je php had this == right... |
Author: | SvaRoX [ 06.26.09 ] |
Post subject: | Re: what is this? |
it even has === now... |
Author: | XTJ7 [ 06.26.09 ] |
Post subject: | Re: what is this? |
But then it checks the data type as well, I don't think that would be what wurst wants to archive |
Author: | wurst [ 06.26.09 ] |
Post subject: | Re: what is this? |
hey, last time "25 players voted", this time "37 players voted". hope it wil be more for the future |
Author: | SanHolo [ 06.27.09 ] |
Post subject: | Re: what is this? |
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: echo "<img border="0" src="./images/icons/user_".((1 == $voted) ? '' : 'not_')."voted.gif" >n";
|
Page 2 of 2 | All times are UTC + 1 hour |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |