Criando profissгo no Gm Dten e deu erro - ajuda no erro ai por favor! -
XxSemNickxX - 18.01.2014
Oi, eae pessoal, vamos logo ao assunto.
Eu uso GM Dten e nesses dias resolvi criar algumas profissхes.
Primeira vez que eu criei deu certo, foi a profissгo CORONEL e agora fui fazer a profissгo GENERAL e deu erro.
deu 6 Erros, os erros sгo simples pra quem entender, pois nгo conseguir resolver.
Code:
C:\Users\Adail ton\Desktop\Servidor Test\gamemodes\bpw.pwn(14346) : error 075: input line too long (after substitutions)
C:\Users\Adail ton\Desktop\Servidor Test\gamemodes\bpw.pwn(14347) : error 017: undefined symbol "d"
C:\Users\Adail ton\Desktop\Servidor Test\gamemodes\bpw.pwn(14348) : error 017: undefined symbol "ini_Int"
C:\Users\Adail ton\Desktop\Servidor Test\gamemodes\bpw.pwn(14348) : warning 217: loose indentation
C:\Users\Adail ton\Desktop\Servidor Test\gamemodes\bpw.pwn(14348) : error 029: invalid expression, assumed zero
C:\Users\Adail ton\Desktop\Servidor Test\gamemodes\bpw.pwn(14349) : warning 217: loose indentation
C:\Users\Adail ton\Desktop\Servidor Test\gamemodes\bpw.pwn(14396) : error 029: invalid expression, assumed zero
C:\Users\Adail ton\Desktop\Servidor Test\gamemodes\bpw.pwn(14463) : error 075: input line too long (after substitutions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
eu fui define para profissгo GENERAL poder usa o comando /algemar e /desalgemar /prender mais ta dando esses erros acima.
vou postar aqui o os comandos
Code:
14344 if(strcmp(cmd, "/algemar", true) == 0)
14345 {
14346 format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
14347 if(dini_Int(file, "Profissao") == General || dini_Int(file, "Profissao") == Coronel || dini_Int(file, "profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol ||dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)
14348 {
14349 new plid;
14350
14351 if(sscanf(cmdtext, "s[9]u", cmd, plid))
14352 {
14353 SendClientMessage(playerid, Vermelho, "Use: /algemar [id]");
14354 return 1;
14355 }
14356 if(IsPlayerInAnyVehicle(plid) || IsPlayerInAnyVehicle(playerid))
14357 {
14358 SendClientMessage(playerid, Vermelho, "Alguem estб dentro de um carro.");
14359 return 1 ;
14360 }
14361 if(plid == playerid)
14362 {
14363 SendClientMessage(playerid, Vermelho, "Vocк nгo pode algemar vocк mesmo.");
14364 return 1 ;
14365 }
14366 if(!IsPlayerConnected(plid))
14367 {
14368 SendClientMessage(playerid, Vermelho, "O(A) jogador(a) nгo estб conectado.");
14369 }
14370 else
14371 {
14372 if(Procurados[plid] == 1 || infratores[plid] == 1)
14373 {
14374 if(GetDistanceBetweenPlayers(plid, playerid) < 10)
14375 {
14376 algemado[plid] = 1;
14377 TogglePlayerControllable(plid, 0);
14378
14379 format(string, sizeof(string), "%s te algemou.", GetPlayerNameEx(playerid));
14380 SendClientMessage(plid, Blue, string);
14381
14382 SendClientMessage(playerid, COLOR_GREEN, "Algemado com sucesso.");
14383 }
14384 else
14385 {
14386 SendClientMessage(playerid, Vermelho, "Chegue mais perto para algemar.");
14387 }
14388 }
14389 else
14390 {
14391 SendClientMessage(playerid, Vermelho, "Nгo pode algemar uma pessoa que nгo tenha cometido crimes.");
14392 }
14393 }
14394 }
14395 else
14396 {
14397 SendClientMessage(playerid, Vermelho, "Apenas policiais podem usar este comando.");
14398 }
14399 return 1;
14400 }
14401 // continuaзгo abaixo
Code:
14402 if(strcmp(cmd, "/desalgemar", true) == 0)
14403 {
14404 format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
14405 if(dini_Int(file, "Profissao") == General || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)
14406 {
14407 new plid;
14408
14409 if(sscanf(cmdtext, "s[12]u", cmd, plid))
14410 {
14411 SendClientMessage(playerid, Vermelho, "Use: /desalgemar [id]");
14412 return 1;
14413 }
14414 if(IsPlayerInAnyVehicle(plid) || IsPlayerInAnyVehicle(playerid))
14415 {
14416 SendClientMessage(playerid, Vermelho, "Alguem estб dentro de um carro.");
14417 return 1 ;
14418 }
14419 if(plid == playerid)
14420 {
14421 SendClientMessage(playerid, Vermelho, "Vocк nгo pode tirar algemas de vocк mesmo.");
14422 return 1 ;
14423 }
14424 if(!IsPlayerConnected(plid))
14425 {
14426 SendClientMessage(playerid, Vermelho, "O(A) jogador(a) nгo estб conectado.");
14427 }
14428 else
14429 {
14430 if(algemado[plid] == 1)
14431 {
14432 if(GetDistanceBetweenPlayers(plid, playerid) < 10)
14433 {
14434 algemado[plid] = 0;
14435 TogglePlayerControllable(plid, 1);
14436
14437 format(string, sizeof(string), "%s te tirou a algema.", GetPlayerNameEx(playerid));
14438 SendClientMessage(plid, Blue, string);
14439
14440 SendClientMessage(playerid, COLOR_GREEN, "Desalgemado com sucesso.");
14441 }
14442 else
14443 {
14444 SendClientMessage(playerid, Vermelho, "Chegue mais perto para desalgemar.");
14445 }
14446 }
14447 else
14448 {
14449 SendClientMessage(playerid, Vermelho, "Essa pessoa nгo estб algemada.");
14450 }
14451 }
14452 }
14453 else
14454 {
14455 SendClientMessage(playerid, Vermelho, "Apenas policiais podem usar este comando.");
14456 }
14457 return 1;
14458 }
14459 // Continuaзгo /prender abaixoo
Code:
14460 if(strcmp(cmd, "/prender", true) == 0)
14461 {
14462 format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
14463 if(dini_Int(file, "Profissao") == General || dini_Int(file, "Profissao") == Coronel || dini_Int(file, "profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)
{
new plid;
if(sscanf(cmdtext, "s[9]u", cmd, plid))
{
SendClientMessage(playerid, Vermelho, "Use: /prender [id]");
return 1;
}
if(IsPlayerInAnyVehicle(plid) || IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, Vermelho, "Alguem estб dentro de um carro.");
return 1 ;
}
if(plid == playerid)
{
SendClientMessage(playerid, Vermelho, "Vocк nгo pode fazer isto com si mesmo.");
return 1 ;
}
if(!IsPlayerConnected(plid))
{
SendClientMessage(playerid, Vermelho, "O(A) jogador(a) nгo estб conectado.");
}
else
{
if(GetDistanceBetweenPlayers(plid, playerid) < 10)
{
if(Procurados[plid] == 1)
{
PrenderPlayer(plid);
GivePlayerGrana(playerid, 5000);
format(string, sizeof(string), "%s te prendeu. Vocк estava sendo procurado(a).", GetPlayerNameEx(playerid));
SendClientMessage(plid, Blue, string);
SendClientMessage(playerid, Verde, "Vocк prendeu um(a) jogador(a) procurado(a) e ganhou 5 mil!");
}
else
{
SendClientMessage(playerid, Vermelho, "Vocк nгo pode prender alguem que nгo esteja sendo procurado!");
}
}
else
{
SendClientMessage(playerid, Vermelho, "Chegue mais perto para prender!");
}
}
}
else
{
SendClientMessage(playerid, Vermelho, "Apenas policiais podem usar este comando!");
}
return 1;
}
@Edit
Adicionei o /prender que esqueci de colocar
Quem puder mim ajuda agradeзo Muitooo!
Obrigado pela atenзгo!
Respuesta: Criando profissгo no Gm Dten e deu erro - ajuda no erro ai por favor! -
Blitz22 - 18.01.2014
Bom amigo eu fiz desse jeito aqui !
sу colocar o code em cima .
pawn Code:
if(strcmp(cmd, "/algemar", true) == 0)
{
format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
if(dini_Int(file, "Profissao") == General || dini_Int(file, "Profissao") == Coronel || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI
|| dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)
{
new plid;
if(sscanf(cmdtext, "s[9]u", cmd, plid))
{
SendClientMessage(playerid, Vermelho, "Use: /algemar [id]");
return 1;
}
if(IsPlayerInAnyVehicle(plid) || IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, Vermelho, "Alguem estб dentro de um carro.");
return 1 ;
}
if(plid == playerid)
{
SendClientMessage(playerid, Vermelho, "Vocк nгo pode algemar vocк mesmo.");
return 1 ;
}
if(!IsPlayerConnected(plid))
{
SendClientMessage(playerid, Vermelho, "O(A) jogador(a) nгo estб conectado.");
}
else
{
if(Procurados[plid] == 1 || infratores[plid] == 1)
{
if(GetDistanceBetweenPlayers(plid, playerid) < 10)
{
algemado[plid] = 1;
TogglePlayerControllable(plid, 0);
format(string, sizeof(string), "%s te algemou.", GetPlayerNameEx(playerid));
SendClientMessage(plid, Blue, string);
SendClientMessage(playerid, COLOR_GREEN, "Algemado com sucesso.");
}
else
{
SendClientMessage(playerid, Vermelho, "Chegue mais perto para algemar.");
}
}
else
{
SendClientMessage(playerid, Vermelho, "Nгo pode algemar uma pessoa que nгo tenha cometido crimes.");
}
}
}
else
{
SendClientMessage(playerid, Vermelho, "Apenas policiais podem usar este comando.");
}
return 1;
}
if(strcmp(cmd, "/desalgemar", true) == 0)
{
format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
if(dini_Int(file, "Profissao") == General || dini_Int(file, "Profissao") == Coronel || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI
|| dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)
{
new plid;
if(sscanf(cmdtext, "s[12]u", cmd, plid))
{
SendClientMessage(playerid, Vermelho, "Use: /desalgemar [id]");
return 1;
}
if(IsPlayerInAnyVehicle(plid) || IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, Vermelho, "Alguem estб dentro de um carro.");
return 1 ;
}
if(plid == playerid)
{
SendClientMessage(playerid, Vermelho, "Vocк nгo pode tirar algemas de vocк mesmo.");
return 1 ;
}
if(!IsPlayerConnected(plid))
{
SendClientMessage(playerid, Vermelho, "O(A) jogador(a) nгo estб conectado.");
}
else
{
if(algemado[plid] == 1)
{
if(GetDistanceBetweenPlayers(plid, playerid) < 10)
{
algemado[plid] = 0;
TogglePlayerControllable(plid, 1);
format(string, sizeof(string), "%s te tirou a algema.", GetPlayerNameEx(playerid));
SendClientMessage(plid, Blue, string);
SendClientMessage(playerid, COLOR_GREEN, "Desalgemado com sucesso.");
}
else
{
SendClientMessage(playerid, Vermelho, "Chegue mais perto para desalgemar.");
}
}
else
{
SendClientMessage(playerid, Vermelho, "Essa pessoa nгo estб algemada.");
}
}
}
else
{
SendClientMessage(playerid, Vermelho, "Apenas policiais podem usar este comando.");
}
return 1;
}
if(strcmp(cmd, "/prender", true) == 0)
{
format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
if(dini_Int(file, "Profissao") == General || dini_Int(file, "Profissao") == Coronel || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Policial_M
|| dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)
{
new plid;
if(sscanf(cmdtext, "s[9]u", cmd, plid))
{
SendClientMessage(playerid, Vermelho, "Use: /prender [id]");
return 1;
}
if(IsPlayerInAnyVehicle(plid) || IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, Vermelho, "Alguem estб dentro de um carro.");
return 1 ;
}
if(plid == playerid)
{
SendClientMessage(playerid, Vermelho, "Vocк nгo pode fazer isto com si mesmo.");
return 1 ;
}
if(!IsPlayerConnected(plid))
{
SendClientMessage(playerid, Vermelho, "O(A) jogador(a) nгo estб conectado.");
}
else
{
if(GetDistanceBetweenPlayers(plid, playerid) < 10)
{
if(Procurados[plid] == 1)
{
PrenderPlayer(plid);
GivePlayerGrana(playerid, 5000);
format(string, sizeof(string), "%s te prendeu. Vocк estava sendo procurado(a).", GetPlayerNameEx(playerid));
SendClientMessage(plid, Blue, string);
SendClientMessage(playerid, Verde, "Vocк prendeu um(a) jogador(a) procurado(a) e ganhou 5 mil!");
}
else
{
SendClientMessage(playerid, Vermelho, "Vocк nгo pode prender alguem que nгo esteja sendo procurado!");
}
}
else
{
SendClientMessage(playerid, Vermelho, "Chegue mais perto para prender!");
}
}
}
else
{
SendClientMessage(playerid, Vermelho, "Apenas policiais podem usar este comando!");
}
return 1;
Re: Criando profissгo no Gm Dten e deu erro - ajuda no erro ai por favor! -
XxSemNickxX - 18.01.2014
Caaraaaaaaaaaaa, Obrigadooooo! Como dar +rep ?
Respuesta: Criando profissгo no Gm Dten e deu erro - ajuda no erro ai por favor! -
Blitz22 - 18.01.2014
clicar na estrelinha do lado da bolinha
la em baixo do meu perfil !
Re: Criando profissгo no Gm Dten e deu erro - ajuda no erro ai por favor! -
DannielCooper - 18.01.2014
+rep sу se dб com mais de 50 mensagens eu acho.