[help] /Settax problem
#1

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
Код:
	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;
	}
Reply
#2

It mean what it respond xD

So please cheack your pleader valve is that 6 already


you should check this
Reply
#3

Quote:
Originally Posted by SequenceCuz
Посмотреть сообщение
It mean what it respond xD

So please cheack your pleader valve is that 6 already


you should check this
So what do i have to do
Reply
#4

show how you set the player leader!
Reply
#5

Quote:
Originally Posted by SequenceCuz
Посмотреть сообщение
show how you set the player leader!
http://i.imgur.com/WhJuuFP.jpg


http://i.imgur.com/N3a5vSX.jpg
Reply
#6

then why your code >>if(PlayerInfo[playerid][pLeader] != 6)

why notif(PlayerInfo[playerid][pLeader] != 9)

the prob fix?
Reply
#7

Quote:
Originally Posted by SequenceCuz
Посмотреть сообщение
then why your code >>if(PlayerInfo[playerid][pLeader] != 6)

why notif(PlayerInfo[playerid][pLeader] != 9)

the prob fix?
Yes thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)