delivered the opinion of the court.
This is an action by mandamus brought by the assessor against the auditor to compel the latter to issue his warrant in favor of the former for $251.11, which is asserted to be a balance due for compensation to the assessor for making the personal assessment of Union county for the year 1897.
The petition for mandamus states that the auditor issued his warrant to the assessor for $48.89 and withheld $251.11, in the year 1897, because of an alleged erroneous payment for the year 1896 in excess of the amount allowed by the statute. The facts as shown by the petition are these: the auditor allowed and paid the assessor for the year 1896 the minimum of $300, fixed by law for making an assessment, for making the personal assessment only for that year, and in addition allowed and paid the assessor five per centum on the amount of the assessment of the realty of the county, to wit: $283.59, thus allowing and paying him a total of $583.59. In that settlement allowance was made as if for two distinct and independent as sessments. But in settling for the assessment for 1897, the auditor held that there was a misconception of the construction of the statute fixing the compensation of the assessor, and that in 1896 he should have allowed the assessor, not $300 on the personal assessment and five per cent on the amount of the land roll, thus treating the personal and land rolls as two independent assessments, but only five per cent on the amount of both assessment rolls, regarding them as one assessment, and that the amount of the overpayment thus made in 1896 should be deducted from the amount due in 1897.
Two questions are involved: Does the statute fixing the compensation of assessors provide payment of not less than three hundred dollars in any one year to the assessor for making the personal assessment roll, and, in addition thereto, five per *603centum on the amount of the land assessment rolls, thus treating them as two separate and independent assessments; or does the statute provide compensation for one assessment, which is never to be less than- three hundred dollars for one year, but which may be more if .five per centum on the amount of both rolls will produce more than three hundred dollars; and, if the latter be the proper construction of the statute, may the auditor rightfully withhold a sum erroneously overpaid for the year 1896, in making a settlement with the assesssor for the year 1897, the auditor and the assessor being the same persons both years, and the remedy adopted by the assessor to coerce payment for the year 1897 being mandamus ?
The statute, ch. 33, acts of 1894, is in these words:
“ Section 1. Be it enacted by the legislature of the State of Mississijopi, That § 2017 of the annotated code of 1892 be amended so as to read as follows: Each assessor shall be entitled to receive from the state treasurer as a compensation for his services five per centum on the amount of the state tax contained in his assessment, payable when a duly certified copy of his assessment roll, properly made,, shall be deposited in the office of the auditor, and approved by him, but such compensation shall not be less than three hundred dollars nor more than one thousand dollars in any year; and the board of supervisors of any county may, in addition, allow the assessor not exceeding ten cents for each individual assessed on the personal roll, although only assessed for a poll tax, payable out of the county treasury; Provided, That no commission or other allowance shall be paid by the state for assessing poll taxes; and for enumeration of the educatable children of the county he shall be allowed two cents for each child enumerated, payable out of. the school fund of the county. ”
This act of 1894 is identical in its terms with the code provision (§ 2017), except that the minimum compensation is increased from two hundred and fifty to three hundred dollars, and except the new declaration, found in the proviso, “ that no *604commission or other allowance shall be paid by the state for assessing poll taxes.”
The statute appears to us to be extremely simple and easily understood and not difficult of construction. By it the compensation is fixed at five per centum on the amount of the state tax contained in the assessment; but as this compensation, in some cases, might be inadequate for services performed by the assessor in making his assessment, and in other cases might be too great for the services performed, the legislature adopted a sliding scale by which in no case the compensation should be less than three hundred dollars, or more than one thousand dollars. If there were no other statutory provisions on the subject, and if lands and personalty were alike assessed each year, it hardly seems possible that any two reasonable minds could disagree touching the proper construction of the act of 1894. It so happens, however, that under our system of raising revenues lands are only assessed every four years, and because of this fact, and because of the further fact that for the three years when personalty is alone assessed for taxation, the assessor is entitled to three hundred dollars per annum, the contention of the petitioner is founded, viz.: that the assessor is entitled to three hundred dollars for making his personal assessment roll each year, including the fourth year, when lands are assessed, and in the fourth year is in addition entitled to five per centum on his land assessment roll for that year. It is thought by counsel for the assessor that it could not have been the intention of the legislature to allow for a personal assessment roll three hundred dollars for the three years in which only personal property is required to be assessed, and to deny the assessor the same sum in the fourth year, when lands, in addition to personalty, are required to be assessed. The answer is obvious. No matter how small the service rendered in any one year by the assessor, applying the sliding scale, his compensation for making the assessment shall not be less than three hundred dollars, even though the five per centum on the *605amount of the assessment might be much less than three hundred dollars; but when the fourth year arrives and the assessment must include lands as well as personal property, the sliding scale is again applied, with the result that the assessor shall not receive less than three hundred dollars, but, putting the total amount of the land and personal assessment together, he may receive not more than one thousand dollars. In truth, as we suppose, every assessor receives largely more than three hundred dollars for his services in the making of his assessment for the fourth year in which lands and personal property are included. The averments found in the petition illustrate this, for this assessor received nearly four hundred dollars as his commissions for making the assessment of land and personalty in the fourth year. If he had assessed in a larger and richer county he might have received any sum not exceeding-one thousand dollars, if his commission at five per centum on the total amount of the assessment would produce that sum.
The law contemplates an assessment—one assessment—evidenced by one roll for three years,- and by two rolls for the fourth.year when lands as well as personalty are to be assessed, and for making the assessment in every year, the law fixes the compensation at five per cent on the amount of the assessment, but in no case to be less than three hundred or more than one thousand dollars, whereby, according to the legislative mind, each assessor would be fairly compensated for the actual service rendered. We must adhere to the plain intent'of the legislature as manifestly disclosed on the face of the statute. The words of the statute must be given their plain and ordinary meaning, and there is no occasion for resort to rules of construction as applied in obscure or repugnant provisions of statutes.
We have examined the various sections of our code referred to by counsel for the assessor, and we are of opinion that they are all in perfect harmony with the statute under consideration, as we have interpreted. It follows that the assessor was *606entitled to receive commissions at five per cent on the total amount of his assessment, evidenced by the land roll and the assessment roll, to wit: $389.19, and not three hundred dollars for making the assessment roll, and, in addition, five per cent on the amount shown by the land roll.
We next consider the second question. Was the auditor authorized to withhold' in his next settlement with the assessor the amount erroneously overpaid in the settlement for the preceding year ? Or, to state it more accurately, should the petitioner be allowed in this mandamus proceeding to recover from the state the amount withheld by the auditor on account of the former overpayment, when he has already received from the state the full amount to which the law entitles him ? May he compel the state to pay him for the year 1897 the full sum of three hundred dollars, when he is debtor to the state for the sum demanded, by reason of the overpayment for the year 1896?
We have examined the authorities cited in the brief of the assessor’s counsel touching the effect of conduct based upon a mistake of law. We do not question the proposition maintained in those cases, and generally, that contracts based upon mistakes of law will not be relieved against. But the assessor had no contract with the auditor, as he had none with the state. He was entitled to a fixed compensation. He was an officer of the state, and in settling with another officer of the state he was'allowed to°receive from the state that to which he was not entitled. If the assessor had brought any ordinary action against the state to recover the money withheld by the auditor, would it be contended that the state might not defeat a recovery by setting up and proving the amount of his overpayment as a setoff ? It is said, let the state bring suit against the assessor if he has its money. True, the state might do that, but why grant a mandamus to compel the state to pay when it clearly appears that the assessor is indebted to the state in exactly the sum sought to be recovered in this man*607damus proceeding ? The writ of, mandamus is not strictly one of right.. Our code has assimilated the action of mandamus to‘ other ordinary actions, but the courts may still grant or deny the writ according to the circumstances of the case. It was said by this court, in Effingham v. Hamilton, 68 Miss., 523, that ‘ ‘ it is not in every case of clear legal right, and the absence of a sufficient legal remedy, and when, therefore, mandamus is an appropriate remedy it will be issued. It is settled by numerous decisions that a sound judicial discretion'is to be used, and when circumstances make it unwise or inexpedient to allow this writ, to refuse it when sought to enforce merely private right. ’ ’
It is to be rememberad that the decision just referred to was made while the code of 1880 was operative; but the legislature has brought forward, in the code of 1892, the same provisions as to mandamus contained in the code of 1880, and with the construction placed upon them by this court in that case in mind.
Affirmed.