[Ajuda] Mudar Comando
#5

Quote:
Originally Posted by Coe1
Посмотреть сообщение
Skull, seu cуdigo vai dar erros.

pawn Код:
if(strcmp(cmd,"/dartaxa",true)==0)
    {
                                  if(strval(params) < 0 || strval(params) > 9999999) return SendClientMessage(playerid, -1, " [ERRO] Quantia Invбlida.");
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pLider] != 7)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й o Prefeito !");
                return true;
            }
            if(IsPlayerConnected(i))
            {
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                            SendClientMessage(playerid, COLOR_GREY, "Vocк deu a taxa para todos os players!");
                            format(string, sizeof(string), "* Vocк recebeu R$%d do banco de Impostos pelo Prefeito.",price);
                            SendClientMessage(i, COLOR_LIGHTBLUE, string);
                             GivePlayerMoney(l, strval(params));
                }
            }
                SaveStuff();
        }      
        return true;
    }
O seu tambйm , kkk .

o l nгo ta definido :
Код:
GivePlayerMoney(l, strval(params));
New code :
pawn Код:
if(strcmp(cmd,"/dartaxa",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pLider] != 7)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й o Prefeito !");
                return true;
            }
            if(IsPlayerConnected(i))
            {
                            new price = Tax / Cops;
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                            SendClientMessage(playerid, COLOR_GREY, "Vocк deu a taxa para todos os players!");
                            format(string, sizeof(string), "* Vocк recebeu R$%d do banco de Impostos pelo Prefeito.",price);
                            SendClientMessage(i, COLOR_LIGHTBLUE, string);
                             GivePlayerMoney(i,price);
                }
            }
                SaveStuff();
        }      
        return true;
    }
Reply


Messages In This Thread
Mudar Comando - by lokos45 - 07.09.2013, 18:00
Re: Mudar Comando - by SkullFire - 07.09.2013, 18:10
Re: Mudar Comando - by Coe1 - 07.09.2013, 18:18
Re: Mudar Comando - by lokos45 - 07.09.2013, 18:25
Re: Mudar Comando - by SkullFire - 07.09.2013, 18:25
Re: Mudar Comando - by Coe1 - 07.09.2013, 18:27
Re: Mudar Comando - by SkullFire - 07.09.2013, 18:28
Re: Mudar Comando - by lokos45 - 07.09.2013, 18:31
Re: Mudar Comando - by DannielCooper - 07.09.2013, 18:35
Re: Mudar Comando - by lokos45 - 07.09.2013, 18:52

Forum Jump:


Users browsing this thread: 2 Guest(s)