I used same sql requests and I detect if you have already voted in the same way. If the old version worked then I'm not sure why this is not working.
You can try to set 2 primary keys (replace line):
PHP Code:
format(cache, 127, "CREATE TABLE IF NOT EXISTS %s (steamid TEXT(32),mapname TEXT(32),rate INT(11), PRIMARY KEY (steamid, mapname))",Table)
I'm not sure if this one will fix the problem (make sure you delete old table from database before you try this).
You can also create separate table for each map and store only steamid and rating and use 1 primary key.
__________________