27.04.2014, 14:31
Galera, ja mudei o nome das strings pra string1, string2, como vi em um lugar no forum aqui, porйm ainda nгo saiu os erros, entгo, estarei mandando pra vocкs analisarem, obrigado.
Код:
(1283) : warning 219: local variable "string" shadows a variable at a preceding level (1314) : warning 219: local variable "string" shadows a variable at a preceding level (1337) : warning 219: local variable "string" shadows a variable at a preceding level (305) : warning 219: local variable "string" shadows a variable at a preceding level (305) : warning 219: local variable "string" shadows a variable at a preceding level (365) : warning 219: local variable "string" shadows a variable at a preceding level (365) : warning 219: local variable "string" shadows a variable at a preceding level (598) : warning 219: local variable "str" shadows a variable at a preceding level (698) : warning 219: local variable "string" shadows a variable at a preceding level (171) : warning 219: local variable "string" shadows a variable at a preceding level (192) : warning 219: local variable "string" shadows a variable at a preceding level (966) : error 035: argument type mismatch (argument 1) (1158) : warning 219: local variable "string" shadows a variable at a preceding level (1162) : error 035: argument type mismatch (argument 2) (1174) : warning 219: local variable "string" shadows a variable at a preceding level (1178) : error 035: argument type mismatch (argument 2) (1198) : warning 219: local variable "string" shadows a variable at a preceding level (1398) : warning 219: local variable "string" shadows a variable at a preceding level (1536) : warning 219: local variable "ip" shadows a variable at a preceding level (1870) : warning 219: local variable "string" shadows a variable at a preceding level
pawn Код:
CMD:bolsa(playerid, params[]) // LINHA 1283
{
SetPlayerAttachedObject(playerid, 0, 19090, 2, -0.315999, 0.019999, 0.030000, 0.000000, 0.000000, 0.000000, 1.455999, 0.526000, 0.541000); //BAG
return 1;
}
CMD:penis(playerid, params[]) // LINHA 1314
{
SetPlayerAttachedObject(playerid,0,19086,15,0.051000,0.000000,-0.424999,0.000000,0.000000,-102.100006,1.000000,1.000000,1.000000);//penis
return 1;
}
CMD:chifres1(playerid, params[]) //LINHA 1337
{
SetPlayerAttachedObject(playerid,0,19314,2,0.157000,0.000000,0.000000,-0.199999,-7.600006,-88.599998,1.000000,1.000000,1.000000);//chifres 1
return 1;
}
CMD:encerrar(playerid,params[]) // LINHA 305
{
if(Admin[playerid] >= 1)
{
if(enquete == true)
{
enquete = false;
format(string_,40,"Resultado: sim : %d | nгo : %d",sim,nao);
SendClientMessageToAll(FAIL,string_);
paramount(i,MAX_PLAYERS) return votou[i] = false;
sim = 0,nao = 0;
if(sim > nao) SendClientMessageToAll(VERDE,"A maioria concorda com a pergunta.");
else SendClientMessageToAll(FAIL,"A menoria concorda com a pergunta.");
}
else return SendClientMessage(playerid,FAIL,"Nгo hб uma votaзгo em andamento");
}
else SendClientMessage(playerid,FAIL,NAOADM);
return 1;
}
CMD:setargrana(playerid,params[])
{
if(Admin[playerid] >= 1)
{
new
idx,
quantia
;
if(sscanf(params,"ud",idx,quantia)) return SendClientMessage(playerid,VERDE,"use /setargrana [playerid] [quantia]"); // LINHA 365
SetPlayerMoney(playerid,quantia);
SendClientMessage(idx,VERDE,"seu dinheiro foi setado");
SendClientMessage(playerid,VERDE,"Dinheiro setado com sucesso.");
}
else return SendClientMessage(playerid,FAIL,NAOADM);
return 1;
}
CMD:setarhora(playerid,params[])
{
if(Admin[playerid] >= 1)
{ //LINHA 598
new
hora
;
if(sscanf(params,"d",hora)) return SendClientMessage(playerid,VERDE,"use /setarhora [Hora]");
SetWorldTime(hora);
SendClientMessageToAll(FAIL,"O ADMINISTRADOR AJUSTOU A HORA.");
}
else return SendClientMessage(playerid,FAIL,NAOADM);
return 1;
}
CMD:at(playerid,params[])
{
if(Admin[playerid] >= 1)
{
new
texto[128]; // LINHA 698
if(sscanf(params,"s[128]",texto)) return SendClientMessage(playerid,VERDE,"use /a [texto]");
GetPlayerName(playerid,nome,24);
format(string_,80,"%s: %s",PlayerName(playerid),texto);
paramount(i,MAX_PLAYERS)
{
if(Admin[playerid] >= 1) return SendClientMessageToAll(i,string_);
}
}
else return SendClientMessage(playerid,FAIL,NAOADM);
return 1;
}
public OnPlayerConnect(playerid)
{
if(Banido[playerid] == 1)
{
GetPlayerIp(playerid,ip,16);
GetPlayerName(playerid,nome,24);
format(string_,sizeof(string_),"Olб %s, vocк nгo pode mais jogar aqui pois foi CONTAS\n\n\tIP:%s",nome,ip);
ShowPlayerDialog(playerid,9999,DIALOG_STYLE_LIST,"Banido",string_,"Ok","");
}
GodMode[playerid] = 0;
GetPlayerName(playerid, Nome, sizeof(Nome));
format(string, sizeof(string), CONTAS, Nome);
new string[64]; // LINHA 171
format(string,sizeof(string),"{00CCFF}%s {00FF00}entrou no servidor",getPlayerName(playerid));
SendClientMessageToAll(-1,string);
SendClientMessage(playerid, -1, "{00CCFF}Carregando...");
if(!DOF2_FileExists(string))
{
format(string, sizeof(string), "\n{7FFFD4}Nick: {1E90FF}%s Nгo Registrado\n\n{FFFFFF} Digite Uma Senha Para Registrar Sua Conta\n", Nome);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_PASSWORD, "Sistema de Registro", string, "Registrar", "Cancelar");
}
else
{
format(string, sizeof(string), "\n{7FFFD4}Nick: {1E90FF}%s Registrado\n\n{FFFFFF} Digite sua Senha Corretamente para Logar\n", Nome);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Sistema de Login", string, "Logar", "Cancelar");
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new string[64]; // LINHA 192
format(string,sizeof(string),"{00CCFF}%s {00FF00}saiu do servidor",getPlayerName(playerid));
SendClientMessageToAll(-1,string);
SalvarPlayer(playerid);
return 1;
}
CMD:relatorio(playerid,params[])
{
new texto[129];
GetPlayerName(playerid,nome,24);
if(sscanf(params,"s",texto)) return SendClientMessage(playerid,-1,"use /relatorio [texto]");
format(string_,sizeof(string_),"Relatуrio de %s: %s",nome,texto);
SendAdminMessage(string_); // LINHA 966
return 1;
}
CMD:ir(playerid, params[])
{
if(GodMode[playerid] == 1) return SendClientMessage(playerid, 0xFF4500FF, "Estб com GODMODE ativo, desative, /god");
if(sscanf(params, "i", params[0])) return SendClientMessage(playerid, 0xFF4500FF, "ERRO: /ir [PlayerID]");
if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, 0xFF4500FF, "ERRO: Jogador desconectado");
if(params[0] == playerid) return SendClientMessage(playerid, 0xFF4500FF, "ERRO: Esse jogador e vocк!");
static Float:pos[3];
GetPlayerPos(params[0], pos[0], pos[1], pos[2]);
SetPlayerPosEx(playerid, pos[0]+0.5, pos[1]-0.5, pos[2]);
new string[64]; // LINHA 1158
format(string,sizeof(string),"{FF00FF}Foi teleportado para {CCFF00} %s",getPlayerName(params[0]));
SendClientMessageToAll(-1,string);
format(string,sizeof(string),"{CCFF00}%s {00FF00}se teleportou atй vocк",getPlayerName(playerid));
SendClientMessage(-1,string); // LINHA 1162
return 1;
}
CMD:tt51(playerid, params[])
{
if(sscanf(params, "i", params[0])) return SendClientMessage(playerid, 0xFF4500FF, "ERRO: /tt51 [PlayerID]");
if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, 0xFF4500FF, "ERRO: Jogador desconectado");
if(params[0] == playerid) return SendClientMessage(playerid, 0xFF4500FF, "ERRO: Esse jogador e vocк!");
static Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPosEx(params[0], pos[0]+0.5, pos[1]-0.5, pos[2]);
new string[128]; // LINHA 1174
format(string,sizeof(string),"{FF00FF}Trouxe{CCFF00} %s",getPlayerName(params[0]));
SendClientMessageToAll(-1,string);
format(string,sizeof(string),"{CCFF00}%s {00FF00} trouxe vocк a sua posicao",getPlayerName(playerid));
SendClientMessage(-1,string); // LINHA 1178
return 1;
}
CMD:itens(playerid, params[])
{
new string[1315]; // LINHA 1198
strcat(string, "{00FF00}[*]{0094FF} /BOMBERO - {267F00}Capacete de bombero\n");
strcat(string, "{00FF00}[*]{0094FF} /POLICIA - {267F00}Chapeu de policia\n");
strcat(string, "{00FF00}[*]{0094FF} /HATMJ - {267F00}Chapeu Jackson\n");
strcat(string, "{00FF00}[*]{0094FF} /OBRAS - {267F00}Capacete de obras\n");
strcat(string, "{00FF00}[*]{0094FF} /BONE - {267F00}Chapeu aba pra tras\n");
strcat(string, "{00FF00}[*]{0094FF} /HAT - {267F00}Clбssico chapeu de praia\n");
strcat(string, "{00FF00}[*]{0094FF} /HATMG - {267F00}Clбssico chapeu de mago\n");
strcat(string, "{00FF00}[*]{0094FF} /BOLSA - {267F00}Bolsa, como de sequestrado\n");
strcat(string, "{00FF00}[*]{0094FF} /DJ - {267F00}Fones de ouvido\n");
strcat(string, "{00FF00}[*]{0094FF} /DLORO - {267F00}Desfarce de loro\n");
strcat(string, "{00FF00}[*]{0094FF} /LORO - {267F00}Loro no ombro\n");
strcat(string, "{00FF00}[*]{0094FF} /TOLHO - {267F00}Tapa olho\n");
strcat(string, "{00FF00}[*]{0094FF} /PENIS - {267F00}Penis\n");
strcat(string, "{00FF00}[*]{0094FF} /CHICKEN - {267F00}Cabeзa de galinha\n");
strcat(string, "{00FF00}[*]{0094FF} /DCHICKEN - {267F00}Desfarce de galinha\n");
strcat(string, "{00FF00}[*]{0094FF} /CERVO - {267F00}Cervo\n");
strcat(string, "{00FF00}[*]{0094FF} /CHIFRES1 - {267F00}Chifres tipo 1\n");
strcat(string, "{00FF00}[*]{0094FF} /CHIFRES2 - {267F00}Chifres tipo 2\n");
strcat(string, "{00FF00}[*]{0094FF} /DABOBORA - {267F00}Disfarce de abobora\n");
strcat(string, "{00FF00}[*]{0094FF} /CABECAO - {267F00}Cabeзгo\n");
strcat(string, "{00FF00}[*]{0094FF} /GOLFINHO - {267F00}Golfinho\n");
strcat(string, "{00FF00}[*]{0094FF} /TUBARAO - {267F00}Tubarгo\n");
strcat(string, "{00FF00}[*]{0094FF} /TARTARUGA - {267F00}Tartaruga\n");
strcat(string, "{00FF00}[*]{0094FF} /VACA - {267F00}Vaca\n");
ShowPlayerDialog(playerid, DIAATAC, DIALOG_STYLE_LIST, "{00CCFF}Atar objetos", string, "Ir", "Fechar");
return 1;
}
CMD:contar(playerid, params[])
{
if(ContadorGlobal[1] > 0 || ContadorGlobal[1] == -1) return SendClientMessage(playerid, 0xFF4500FF, "ERRO: Hб um Contador em uso.");
ContadorGlobal[2] = SetTimer("ContadorA", 1000, true);
ContadorGlobal[1] = 5;
new string[10]; // LINHA 1398
format(string, sizeof(string), "%d", ContadorGlobal[1]);
TextDrawSetString(Contador, string);
TextDrawShowForAll(Contador);
return 1;
}
public OnRconLoginAttempt(ip[], password[], success) // LINHA 1536
{
return 1;
}
public SendMSG()
{
new string[256]; // LINHA 1870
new randMSG = random(sizeof(NomesServer));
format(string,sizeof(string),"hostname %s",NomesServer[randMSG]);
SendRconCommand(string);
}