Author Topic: Server rating v3.0  (Read 6009 times)

[Server rateing
Rate servers!

Description
Rate servers with this mod.
/RateServer 1-5 - You use that command to rate servers.
/ServerRating - to see what the servers current rating is.
/Resetserverrating - Reset your rating. [Super Admin Only]
Credits to Technoscubed and Fooly Cooly also.

Server sided. GUI probably coming! :).
(No screenshots needed)



Download
Script_ServerRating.zip (Last Updated: Mon Jun 08, 2009 11:14 am)

Installation
Put Script_ServerRating.zip into the Add-Ons folder in your Blockland folder.

Click Here to view this file on the RTB Download Manager
« Last Edit: June 08, 2009, 03:17:23 PM by Poiuyt »

cool :D

but is there really a need for it?
2nd!


cool :D

but is there really a need for it?
Not really, it's just to see what people think of servers.



[/quote]

That looks exactly like the version I was helping Technoscubed with months ago.

Infact, it's so exact, it's even the unfinished version. It doesn't work fully.
Some parts don't even work at all. I was helping him fix them at the time, but he never had me finish it.

Now we need a edit to blockland so you can see the rating from the query screen!

That looks exactly like the version I was helping Technoscubed with months ago.

Infact, it's so exact, it's even the unfinished version. It doesn't work fully.
Some parts don't even work at all. I was helping him fix them at the time, but he never had me finish it.
It is, I helped with a little of it-Adding credits to technoscubed
EDIT:Done, also added credits to you Truce.

Code: [Select]
if(%rated=0)

{

if(%rating==1||%rating==2||%rating==3||%rating==4||%rating==5)

{

$Rating::Score=$Rating::Score+%rating;

$Rating::Count++;

$Rating::Total = $Rating::Score/$Rating::Count;

messageClient(%client,'',"\c6You have rated this server a\c1" SPC %rating @ "\c6.");

%rated=1;

}

else if(%rating>6)

{

messageClient(%client,'',"\c6You can only rate the server 1-5.");

}

else if(%rating<1)

{

messageClient(%client,'',"\c6You can only rate the server 1-5.");

}

}

else if(%rated=1)

{

messageAll('',"\c6You can't vote twice.");

}

Why isn't %rated defined -- it'll always be 0.  I think the problem would be being able to vote MORE than once.

Code: [Select]
if(%rated=0)

{

if(%rating==1||%rating==2||%rating==3||%rating==4||%rating==5)

{

$Rating::Score=$Rating::Score+%rating;

$Rating::Count++;

$Rating::Total = $Rating::Score/$Rating::Count;

messageClient(%client,'',"\c6You have rated this server a\c1" SPC %rating @ "\c6.");

[b]%rated=1;[/b]

}

else if(%rating>6)

{

messageClient(%client,'',"\c6You can only rate the server 1-5.");

}

else if(%rating<1)

{

messageClient(%client,'',"\c6You can only rate the server 1-5.");

}

}

else if(%rated=1)

{

messageAll('',"\c6You can't vote twice.");

}

Why isn't %rated defined -- it'll always be 0.  I think the problem would be being able to vote MORE than once.
The bold sets it to one.
EDIT:Forgot bold doesn't work on codes. xD

Yes, but it's a local variable, it isn't saved with client/function.  The proper way would be $Rating::Rated[%client.bl_id] = true; and then clearVariables("$Rating::*"); -- alot simpler and it probably would work.

Code: [Select]
if(%rated=0)That will always set it to 0 before it checks...?

Code: [Select]
if(%rated=0)That will always set it to 0 before it checks...?
It doesn't.

You are using =. That is the assignment operator, not the == comparison operator.

You can use = in if statements without it assigning it, but it's still good to use ==.

So now I get to have people rate my server a 1 becuase I am being "Mean" to them?

So now I get to have people rate my server a 1 becuase I am being "Mean" to them?
Who even said you had to download?