[help] /Settax problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [help] /Settax problem (
/showthread.php?tid=570052)
[help] /Settax problem -
BigGreen - 05.04.2015
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;
}
Re: [help] /Settax problem -
SequenceCuz - 05.04.2015
It mean what it respond xD
So please cheack your pleader valve is that 6 already
you should check this
Re: [help] /Settax problem -
BigGreen - 05.04.2015
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
Re: [help] /Settax problem -
SequenceCuz - 05.04.2015
show how you set the player leader!
Re: [help] /Settax problem -
BigGreen - 05.04.2015
Quote:
Originally Posted by SequenceCuz
show how you set the player leader!
|
http://i.imgur.com/WhJuuFP.jpg
http://i.imgur.com/N3a5vSX.jpg
Re: [help] /Settax problem -
SequenceCuz - 05.04.2015
then why your code >>if(PlayerInfo[playerid][pLeader] != 6)
why notif(PlayerInfo[playerid][pLeader] != 9)
the prob fix?
Re: [help] /Settax problem -
BigGreen - 05.04.2015
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