0 Members and 2 Guests are viewing this topic.
eh if someone enters a - or , number the script crashs and gives this:(19:43:18) [GKaliasMel-C] !ratings(19:43:18) [Error] Ratings -> (OnPlayerSpeak): '281.168.157.156' is not a valid integer valueand dont show the rating
And as the lyrics go in the United State's national anthem: "America, f**k YEAH!".
function GetValue(Num: string): byte;begin if RegExpMatch('^[0-9]*$',Num) then Result := StrtoInt(Num) else if RegExpMatch('^(awful|horrible|bad|good|great|awesome)$',Num) then case LowerCase(Num) of 'awful': Result := 0; 'horrible': Result := 1; 'bad': Result := 2; 'good': Result := 3; 'great': Result := 4; 'awesome': Result := 5; end; if Result > 5 then Result := 5;end;
People will do everything to abuse bugs