05.04.2015, 01:14
Hello im Having some problems with my server script everytime i do /settax it says im not govnor eventhough i made
myself the faction leader you will see it in these 2 screenshots
When typeing the command: http://i.imgur.com/AagIQHD.jpg
You are not govnor:http://i.imgur.com/pMaHCEB.jpg
Heres the code
myself the faction leader you will see it in these 2 screenshots
When typeing the command: http://i.imgur.com/AagIQHD.jpg
You are not govnor:http://i.imgur.com/pMaHCEB.jpg
Heres the code
Код:
if(strcmp(cmd,"/settax",true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLeader] != 6) { SendClientMessage(playerid, COLOR_GREY, " You are not the Governor !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /settax [percent]"); return 1; } moneys = strvalEx(tmp); if(moneys < 1 || moneys > 50) { SendClientMessage(playerid, COLOR_GREY, " Tax rate may not be below 1 or above 50 !"); return 1; } Tax = moneys; SaveStuff(); format(string, sizeof(string), "* The Income Tax has been set to %d percent per paycheck.", Tax); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } return 1; }