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.