[Ajuda] Ajuda nos Erros
#1

Oi, й que meu GM ta com o bug do payday, tipo ele nao da payday automбtico eu q tenho q digita /payday para pode da o payday, entгo o pessoal me disse pra eu trocar os cod e colocar um novo q eles me passaram, sу que eu coloquei e ta dando 4 erros, se for possivel podem me dizer como eu retiro esses erros ?

Код:
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\pawno\include\PSF\1.2F3#PSF_LIB\#PSF_PCOD\#PSF-C_BASE\PSF_B.&PE(97) : warning 219: local variable "v" shadows a variable at a preceding level
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24521) : error 017: undefined symbol "Multa"
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24521) : warning 215: expression has no effect
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24521) : error 001: expected token: ";", but found "]"
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24521) : error 029: invalid expression, assumed zero
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24521) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Vocк nгo definiu 'Multa'

Manda o codigo.
Reply
#3

Quote:
Originally Posted by feliphemort
Посмотреть сообщение
Vocк nгo definiu 'Multa'

Manda o codigo.
Em public SyncTime

Код:
public SyncTime()
{
 new string[64];
 new tmphour;
 new tmpminute;
 new tmpsecond;
 gettime(tmphour, tmpminute, tmpsecond);
 Fixhour(tmphour);
 tmphour = shifthour;
 if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
 {
  format(string, sizeof(string), "[BWS]: Agora sгo %d:00 horas",shifthour);
  BroadCast(COLOR_WHITE,string);
  ghour = tmphour;
  PayDay();
  SetHora();
 }
}
Em public Production

Код:
public Production()
{
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
  if(IsPlayerConnected(i))
  {
      if(PlayerInfo[i][pFishes] >= 5) { if(FishCornt[i] >= 3) { PlayerInfo[i][pFishes] = 0; } else { FishCornt[i] += 1; } }
      if(PlayerDrunk[i] > 0) { PlayerDrunk[i] = 0; PlayerDrunkTime[i] = 0; SetPlayerDrunkLevel (i, 0); GameTextForPlayer(i, "~w~O efeito da bebida~n~~b~acabou", 3500, 1); }
       if(PlayerInfo[i][pPayDay] < 6) { PlayerInfo[i][pPayDay] += 1; } //+ 5 min to PayDay anti-abuse
  }
 }
}
Em public PayDay

Код:
public PayDay()
{
 new Conta,interest;
 new rent = 0;
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
  if(IsPlayerConnected(i) && !IsPlayerNPC(i))
  {
      if(PlayerInfo[i][pLevel] > 0)
      {
       if(MoneyMessage[i]==1)
    {
        SendClientMessage(i, COR_CV, "Vocк devia ter debitado suas dнvidas, lhe enviaram um pedido de prisгo.");
        GameTextForPlayer(i, "~r~apreendido !", 2000, 1);
        SetPlayerInterior(i, 6);
        SetPlayerPos(i, 264.6288,77.5742,1001.0391);
              PlayerInfo[i][pJailed] = 1;
              ResetPlayerWeapons(i);
     WantedPoints[i] = 0;
     PlayerInfo[i][pJailTime] = 240;
     format(gstring, sizeof(gstring), "Vocк foi preso por %d segundos.   Fianзa: Desativada", PlayerInfo[i][pJailTime]);
     SendClientMessage(i, COLOR_LIGHTBLUE, gstring);
    }
    if(Multa[i] > 1)
    {
        SendClientMessage(i, COR_TRIADS, "Vocк devia ter debitado suas dнvidas, lhe enviaram um pedido de prisгo.");
        GameTextForPlayer(i, "~r~apreendido !", 2000, 1);
        SetPlayerInterior(i, 6);
        SetPlayerPos(i, 264.6288,77.5742,1001.0391);
              PlayerInfo[i][pJailed] = 1;
              ResetPlayerWeapons(i);
     WantedPoints[i] = 0;
     PlayerInfo[i][pJailTime] = 240;
     format(gstring, sizeof(gstring), "Vocк foi preso por %d segundos.   Fianзa: Desativada", PlayerInfo[i][pJailTime]);
     SendClientMessage(i, COLOR_LIGHTBLUE, gstring);
    }
       if(MoneyMessage[i]==1)
    {
        SendClientMessage(i, COLOR_LIGHTRED, "Vocк nгo pagou a sua dнvida e foi preso.");
        GameTextForPlayer(i, "~r~Preso!", 2000, 1);
        SetPlayerInterior(i, 6);
        SetPlayerPos(i, 264.6288,77.5742,1001.0391);
              PlayerInfo[i][pJailed] = 1;
              ResetPlayerWeaponsEx(i);
                    WantedPoints[i] = 0;
          SetPlayerWantedLevel(i, 0);
     PlayerInfo[i][pJailTime] = 600;
     format(gstring, sizeof(gstring), "Vocк foi preso por %d segundos.", PlayerInfo[i][pJailTime]);
     SendClientMessage(i, COLOR_LIGHTBLUE, gstring);
    }
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(i, playername2, sizeof(playername2));
    Conta = PlayerInfo[i][pConta];
    new key = PlayerInfo[i][pPHousekey];
    if(key != 255)
    {
     rent = HouseInfo[key][hRent];
     if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
     {
      rent = 0;
     }
     else if(rent > GetPlayerMoneyEx(i))
     {
      PlayerInfo[i][pPHousekey] = 255;
      SendClientMessage(i, COLOR_WHITE, "Vocк foi expulso(a).");
      rent = 0;
     }
     HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
    }
    new tmpintrate;
       if(PlayerInfo[i][pVIP] == 1) { tmpintrate = 3; }
       else if(PlayerInfo[i][pVIP] == 2) { tmpintrate = 4; }
    else { tmpintrate = 1; }
    if(PlayerInfo[i][pPayDay] >= 3)
    {
        Tax += TaxValue;//Shorld work for every player online
        PlayerInfo[i][pConta] -= TaxValue;
     new checks = PlayerInfo[i][pSalario];
        new ebill = (PlayerInfo[i][pConta]/30000)*(PlayerInfo[i][pLevel]);
        ConsumingMoney[i] = 1;
        GivePlayerMoneyEx(i, checks);
        if(PlayerInfo[i][pConta] > 0)
        {
         PlayerInfo[i][pConta] -= ebill;
         SBizzInfo[4][sbTill] += ebill;
     }
     else
     {
         ebill = 0;
     }
     interest = (PlayerInfo[i][pConta]/1000)*(tmpintrate);
     PlayerInfo[i][pExp]++;
     PlayerPlayMusic(i);
     PlayerInfo[i][pConta] = Conta+interest;
     SendClientMessage(i, COLOR_WHITE, "|_____ Mensagem do Banco _____|");
     format(gstring, sizeof(gstring), "  Salбrio: R$%d   Imposto: -R$%d", checks, TaxValue);
     SendClientMessage(i, COLOR_GRAD1, gstring);
     SendClientMessage(i, COLOR_GRAD1, "  Mйdico: R$300");
     if(PlayerInfo[i][pPHousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
     {
         format(gstring, sizeof(gstring), "  Energia: -R$%d", ebill);
      SendClientMessage(i, COLOR_GRAD1, gstring);
           format(gstring, sizeof(gstring), "  Бgua: -R$%d", wbill);
      SendClientMessage(i, COLOR_GRAD1, gstring);
     }
     format(gstring, sizeof(gstring), "  Banco: R$%d", Conta);
     SendClientMessage(i, COLOR_GRAD1, gstring);
     format(gstring, sizeof(gstring), "  Juros: 0.%d  por cento",tmpintrate);
     SendClientMessage(i, COLOR_GRAD4, "|_______________________________________|");
     format(gstring, sizeof(gstring), "  Novo extrato: R$%d", PlayerInfo[i][pConta]);
     SendClientMessage(i, COLOR_GRAD5, gstring);
     format(gstring, sizeof(gstring), "  Aluguel: -R$%d", rent);
     SendClientMessage(i, COLOR_GRAD5, gstring);
     format(gstring, sizeof(gstring), "~w~Salario");
     GameTextForPlayer(i, gstring, 5000, 1);
     GivePlayerMoneyEx(i,- 300);
     OnPlayerSave(i);
     rent = 0;
     PlayerInfo[i][pPoint] += numplayers;
                    format(string, sizeof(string), "{ff9600}Vocк ganhou {fff000}%d Cash {ff9600}por ter {fff000}%d {ff9600}Jogadores Online", numplayers,numplayers);
                    SendClientMessage(i, COLOR_GRAD5, string);
     PlayerInfo[i][pPayDay] = 0;
     PassadoUmDia++;
     PlayerInfo[i][pSalario] = 0;
     PlayerInfo[i][pCaixinha] = 0;
     PlayerInfo[i][pConnectTime] += 1;
     pban[i] = 0;
     if(PlayerInfo[i][pVIP] == 1)
     {
      PlayerInfo[i][pExp] += 2;
      GivePlayerMoneyEx(i,20000);
      SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 20k de bфnus por ser vip.");
     }
     else if(PlayerInfo[i][pVIP] == 2)
     {
      PlayerInfo[i][pExp] += 4;
      GivePlayerMoneyEx(i,40000);
      SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 40k de bфnus por ser super vip.");
     }
     else if(PlayerInfo[i][pTimeVIP] >= 1)
     {
      PlayerInfo[i][pExp] += 1;
      GivePlayerMoneyEx(i,15000);
      SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 15k de bфnus por ser vip Timer.");
     }
     else if(PlayerInfo[i][pSocio] >= 1)
     {
      PlayerInfo[i][pExp] += 6;
      GivePlayerMoneyEx(i,50000);
      SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 50k de bфnus por ser socio.");
     }
     if(PlayerInfo[i][pEmprego] > 0)
        {
            if(PlayerInfo[i][pContractTime] < 25)
            {
       PlayerInfo[i][pContractTime] ++;
      }
        }
    }
    else
    {
        SendClientMessage(i, COLOR_LIGHTRED, "* Vocк nгo jogou tempo suficiente para receber salбrio!.");
    }
   }
  }
  new lolbagui;
  lolbagui = PlayerInfo[i][pExp];
  new nxtlevel = PlayerInfo[i][pLevel]+1;
  if(lolbagui >= nxtlevel*levelexp)
  {
      GameTextForPlayer(i, "~g~Respeito Adquirido!~n~~r~Digite /comprarnivel!", 5000, 1);
  }
 }
 Avisouc = 0;
 OOCNews(COLOR_WHITE, "Loteria: Ja comecou a loteria.");
 new rand = random(80);
 if(rand < 77) { rand += 3; }
 Lotto(rand);
 Checkprop();
 //return true;
}
stock strtokEx(const string[], &index)
{
 new length = strlen(string);
  while ((index < length) && (string[index] <= ' '))
 {
  index++;
 }
 new offset = index;
 new result[64];
 while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
 {
  result[index - offset] = string[index];
  index++;
 }
 result[index - offset] = EOS;
 return result;
}
stock strtokEx(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}
	new offset = index;
	new result[64];
	while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}
Reply
#4

Alguem me ajuda ?
Reply
#5

too many error messages on one line- й porque tem Muitos erros So numa Linha. e pode ser os erros acima todos...
Reply
#6

Coloque:

pawn Код:
new Multa[MAX_PLAYERS];
Reply
#7

Delete_ tu tem skype ? para eu pode te passar o gm, se nao for encomodo pra vc ...

meu Skype й Samuel.Gaby1

й pq eu nao sei o local onde q se coloca o new Multa[MAX_PLAYERS];
Reply
#8

Deu 6 erros olha ae

Код:
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\pawno\include\PSF\1.2F3#PSF_LIB\#PSF_PCOD\#PSF-C_BASE\PSF_B.&PE(97) : warning 219: local variable "v" shadows a variable at a preceding level
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24524) : error 017: undefined symbol "COR_TRIADS"
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24601) : error 017: undefined symbol "wbill"
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24618) : error 017: undefined symbol "string"
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24618) : error 017: undefined symbol "string"
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24618) : error 029: invalid expression, assumed zero
C:\Users\SAMUEL GABY\Documents\Brasil Word Style\GAMEMODES\ULTRA2.pwn(24618) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#9

1° Erro COR_TRIADS: Provavelmente й uma cor definida em alguma mensagem, troque isso por -1.

2° Erro string: Defina em cima do code
pawn Код:
new string[128];
Reply
#10

oquer ser esse wbill?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)