09.12.2012, 00:24
I take it that the score is somehow interpreted into the Rank(playerid) and that Rank() is indeed a function (if it was a variable (array) it would be Rank[playerid]).
Also, if the rank would just be 2 for a specific type and not just for, lets say, 200 score then the code will not work as your rank is too high if you have rank 3.
So: your if-statements would be if(Rank[playerid] < 2) return SendClientMessage(playerid, C_WHITE, "Your rank is not high enough");
Also, if the rank would just be 2 for a specific type and not just for, lets say, 200 score then the code will not work as your rank is too high if you have rank 3.
So: your if-statements would be if(Rank[playerid] < 2) return SendClientMessage(playerid, C_WHITE, "Your rank is not high enough");