You need to set the rank as a number, and check if that rank is high enough to buy that weapon.
{0} onActivate -> Client -> VCE_ifVariable -> Rank -> == 2 [ 1 1 ]
{1} VariableTrue -> Player -> Add item
And so on
You also might want to make sure the variable rank is synced with the rank mod, just in case