Raised This Month: $ Target: $400
 0% 

Rate map


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 05-07-2011 , 04:50   Rate map
Reply With Quote #1

Hey, could someone explain me how should I make a something like a map list in mysql, and I want to make that on every map last round players will get a map rate menu, and they can rate a map that they have played right now,

Like:

Rate map : De_dust2
5/5 Stars
4/5 Stars
3/5 Stars
2/5 Stars
1/5 Stars

But I want to avoid multiple votes for one map, for Example

Player1 can rate for 1 map only 1 time.

Like Player1 once voted for de_dust2, so next time he wont get the rate menu if the rating is for de_dust2.

How should my mysql table look like.

Lets say right now I've this:

Quote:
Map----------Rating----------Total_Votes
de_dust2----3.4--------------27
de_inferno--4.2--------------60
But I with this table I can't check does user already voted for de_dust2.

Maybe it's possible to make a .txt files like:

de_dust2.txt and write there a steamids of people that already have rated de_dust2 map (if yes, how to do it ?)

Quote:
de_dust2.txt
reinert
trenier2
niertre6
kamsd55
asodmn

Last edited by reinert; 05-07-2011 at 05:00.
reinert is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode