[Duv] Erro no Compiler
#2

Quote:
Originally Posted by Chuck_Cornfild
N vi nada de errado com esse comando, se alguem souber a soluзгo do problema eu agradeзo, AH! Antes q falem ja tentei incluir "}" mas nгo й isso...

pawn Код:
if(strcmp(cmd,"/Revistar",true)==0)
  {
      new tmp[256];
        tmp = strtok(cmdtext,idx);
        new id = strval(tmp);
        if(PlayerInfo[playerid][Org] == PM || PlayerInfo[playerid][Org] == PF || PlayerInfo[playerid][Org] == GOE)  SendClientMessage(playerid,ErrorColor,"[BCC]: Vocк nгo й Policia.");
        else if(!strlen(tmp)||!IsNumeric(tmp))      SendClientMessage(playerid,ErrorColor,"[BCC]: /Revistar [playerid],Ex:. /Revistar 5.");
      else if(!IsPlayerConnected(id))                   SendClientMessage(playerid,ErrorColor,"[BCC]: Jogador Disconectado.");
        else
        {
      new string[256];
            new Weapons[13];
            new Municao[13];
            new WeaponName[13][256];
           
    format(string,sizeof(string),">> * Vocк estб revistando: %s * <<",PlayerInfo[id][Name]);
      SendClientMessage(playerid,BroadCastColor2,string);
    format(string, sizeof(string), "* %s estб revistando %s.",PlayerInfo[playerid][Name] ,PlayerInfo[id][Name]);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       
        if(PlayerInfo[id][Drogas] > 0) format(string,sizeof(string),"> Drogas: Sim (%dg) <",PlayerInfo[id][Drogas]),SendClientMessage(playerid,BroadCastColor,string);
    if(PlayerInfo[id][Drogas] < 1) string = "> Drogas: Nгo <",SendClientMessage(playerid,BroadCastColor,string);
        if(PlayerInfo[id][pMats] > 0) format(string,sizeof(string),"> Materiais: Sim (%d) <",PlayerInfo[id][pMats]),SendClientMessage(playerid,BroadCastColor,string);
      if(PlayerInfo[id][pMats] < 1) string = "> Materiais: Nгo <",SendClientMessage(playerid,BroadCastColor,string);
     
        for(new we = 0 ;we < 13; we++)
              {
        GetPlayerWeaponData(id,we,Weapons[we],Municao[we]);
        GetWeaponName(Weapons[we],WeaponName[we],40);
       
         if(Weapons[we] != 0)
         {
                 format(string,sizeof(string),"> Arma: %s - Muniзгo: %d - Slot: %d <",WeaponName[we],Municao[we],we);
                 SendClientMessage(playerid,BroadCastColor,string);
                 }
            }
         }
         
    return 1;
  }
erros:
Код:
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4045) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4080) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4081) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4110) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4158) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4190) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4192) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4209) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4210) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4250) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4277) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4304) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4306) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4333) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4348) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4375) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4403) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4404) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4439) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4440) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4586) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4588) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4635) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4637) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4658) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4660) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4675) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4677) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4694) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4696) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4711) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4713) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4731) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4733) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4749) : error 021: symbol already defined: "tmp"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4751) : error 021: symbol already defined: "id"
D:\Arquivos\Servidores\RPG IpS\gamemodes\BrasilCrimCity.pwn(4769) : error 021: symbol already defined: "tmp"

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


26 Errors.
nao sei se isso resolte mais e melhor tentar

new tmp[256];

e tente colocar playerid no lugar de (id)
Reply


Messages In This Thread
[Duv] Erro no Compiler - by igorponce - 04.03.2010, 17:07
Re: [Duv] Erro no Compiler - by hitachi_uchila - 04.03.2010, 18:25
Re: [Duv] Erro no Compiler - by wafffllesss - 04.03.2010, 18:47
Re: [Duv] Erro no Compiler - by igorponce - 04.03.2010, 18:55
Re: [Duv] Erro no Compiler - by wafffllesss - 04.03.2010, 19:07
Re: [Duv] Erro no Compiler - by igorponce - 04.03.2010, 19:15
Re: [Duv] Erro no Compiler - by wafffllesss - 04.03.2010, 19:22
Re: [Duv] Erro no Compiler - by igorponce - 04.03.2010, 19:26
Re: [Duv] Erro no Compiler - by wafffllesss - 04.03.2010, 19:50
Re: [Duv] Erro no Compiler - by igorponce - 04.03.2010, 21:46

Forum Jump:


Users browsing this thread: 1 Guest(s)