search -  faq -  rulez -  staff

forums






map cycle
irc              pwnalizer
voice         dswp bar




Register

Login


It is currently 12.22.24

 

All times are UTC + 1 hour




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: what is this?
PostPosted: 06.25.09 
Attachment:
1mapcyle.jpg
1mapcyle.jpg [ 4.4 KiB | Viewed 8152 times ]



 


Top
  
 
 Post subject: Re: what is this?
PostPosted: 06.25.09 
Offline
Godlike
User avatar

Joined: 07.15.08
Posts: 4648
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
ah good that u ask, i normally wanted to ask that blinky just but when u ask ok:

theres a green and a red dot.
if user has voted there should be shown green, else red.
yesterday ana told me: wow i have there a green AND a red button.

hm?
but the script was like "!= 1" and "= 1" for the one or the other image.
a look in the database showed me that the values are stored as binary, the table cells contain "0x30" or "0x31"
so i started to monitor the output of the php by calling the same again, just writing "echo" in front of it.

so the secret is: its debuging.

btw:
oki np i thought: php bindec() will translate me that.
hah! it gives me 49! (whatever 49 may mean now)

the value btw get called through the phpbb as allways in phpbb, the data is a column in phpbb_users table.
i must look what the phpbb does there with the database query since in plain sql i can say him "where user_voted = '0x31'

_________________
Image



 


Top
 Profile  
 
 Post subject: Re: what is this?
PostPosted: 06.25.09 
now i have a blinking red dot in front of a "1"....


OFFTOPIC: ich bin noch orange weil mit rechte = 100 gamemode wechseln geht und ich so sehen kann wie train in den modes mit der flagge läuft. und in CAH ists mal wirklich ultra gut geworden....... tobi war mit aufm server, so wie unser lieblingsfranzose svarox. zu CTF kann ich noch nicht soo viel sagen.



 


Top
  
 
 Post subject: Re: what is this?
PostPosted: 06.25.09 
flashing red 00



 


Top
  
 
 Post subject: Re: what is this?
PostPosted: 06.25.09 
Offline
Godlike
User avatar

Joined: 07.15.08
Posts: 4648
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
hehe.

oki for reminding:
Code:
        <!-- PHP -->
  $voted = ((int)$user->data&#91;'voted_for_maps'&#93;);
  //debug :)
  //echo $voted;
        if ($voted > "0" ) echo "<img border="0" src="./images/icons/user_voted.gif" ></font>";
  if ($voted < "1" ) echo "<img border="0" src="./images/icons/user_not_voted.gif" ></font>";
  //mit != / = funktionierts komischerweise trotzdem nicht...
        <!-- ENDPHP -->
 


the funny thing is that i get with that an output of 1/0 for voted/not voted but i cant work with = and !=
greater then works, so we have "bigger then 0" for voted and "smaller then 1" for non- voters...

_________________
Image



 


Top
 Profile  
 
 Post subject: Re: what is this?
PostPosted: 06.25.09 
Offline
Godlike
User avatar

Joined: 09.28.08
Posts: 2318
Location: Solar System
I've got only green dot.

_________________
Image



 


Top
 Profile  
 
 Post subject: Re: what is this?
PostPosted: 06.25.09 
Offline
Godlike
User avatar

Joined: 07.15.08
Posts: 4648
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
did u mapvote allready?

if yes, it should be Image
if no, it should be Image

btw im looking forward to mark important things with this flashing dots, anyone got an opinion on that?

---------edit---------
i included little map images with the check boxes, im sry u cant test it till friday, hope you enjoy...

Attachment:
mapcycle_design.jpg
mapcycle_design.jpg [ 26.94 KiB | Viewed 9661 times ]

_________________
Image



 


Top
 Profile  
 
 Post subject: Re: what is this?
PostPosted: 06.25.09 
Offline
Kanzlerin
User avatar

Joined: 07.24.08
Posts: 1063
Location: Germany
-----tdm:  
nick: [dswp]xtj7
skill: 753.35
kills: 98
deaths: 95
ratio: 1.03
Why don't you just work with if and else? If you are able to make only the green dot appear, why not work with else instead? :D

_________________
Quote:
<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> -_-''



 


Top
 Profile  
 
 Post subject: Re: what is this?
PostPosted: 06.25.09 
Offline
Godlike
User avatar

Joined: 09.28.08
Posts: 2318
Location: Solar System
I did vote and it is OK.

_________________
Image



 


Top
 Profile  
 
 Post subject: Re: what is this?
PostPosted: 06.25.09 
Offline
Godlike
User avatar

Joined: 07.15.08
Posts: 4648
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
hm cause there could be another state in future i thought.
dunno its blinkys moped i wanna just not to cross his plans...

btw. if/else didnt workout too.
now where i call (int) of that value i get a 0/1 result.
if = 1 bring me both, if = 0 too, else just bring me the first one cause allways valid somehow...

whatever, if u like look it, id like to understand what goes on with the bin value.
to define 1 as > 0 is ok but i think to say 1=1 is no basically new thing...

_________________
Image



 


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Imprint

Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009, 2010 phpBB Group

Skin by Lucas Kane
we use apache2 mod rewrite with phpBB SEO
map train_beta1-100 © 2009 by SteveMcQueen
Statistics Backend + Database by XLR Stats and B3 Bot
mapvote robot and gameserver monitor © 2009 by BlinKy
mumble viewer Copyright © 2008 Dominik Radner (aka Urmel)
mumble switcher and integration © 2008 by XTJ7, Unclefragger and Wursti
Localisation Plugin © 2009, Team Leads Plugin © 2009 and Knifer Plugin © 2009 by SvaRoX
for our stats we use Chart.js Copyright (c) 2013-2015 Nick Downie.
the stats also use some jQuery jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc.



voice server
top 20 players


nameskillkills
-Dws.BLINGBLING*-*1730.63418631
NormaSnockers1865.75400492
Zottel1760.8276378
make.them.suffer1846.17269872
>8v=1825.35230156
moon1777.56195615
sjas1692.49192315
peace1878.86190660
Wagner_Moura1562.9188001
Goomba1859.75182677
z0rn1608.41181016
Mad1803.76179124
[dswp]PLZ1847.85178516
Graf_ZahlIII1835.73167407
Zohan1611.07159737
ubercunt1634.93159240
Yarrr!1917.33156233
I_am_nOOb1909.64151268
Pandageddon1891.75148319
Pirat1664.08145798