|
|
#1 |
|
Little Clucker
![]() Join Date: Sep 2011
Posts: 22
Reputation: 1
|
Me ajudem a ver o qq é de errado no GM BAC do Thiago_StreeT
ERRO: Code:
C:\Documents and Settings\Lucas\Desktop\GameModes By Luks_Killer\gamemodes\BAC.pwn(48486) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Code:
48482 SendClientMessage(playerid, COLOR_RED, "Número Inválido."); 48483 return 1; 48484 } 48485 } 48486 return 1; 48487 } |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2010
Location: São Paulo, Brasil
Posts: 2,520
Reputation: 227
|
No topo do GM: #pragma tabsize 0
|
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2011
Location: Salvador
Posts: 1,609
Reputation: 175
|
ou entao é so apagar os espaços dessas linhas ai '-'
|
|
|
|
|
|
#4 |
|
Little Clucker
![]() Join Date: Sep 2011
Posts: 22
Reputation: 1
|
mas o erro esta naquele return 1 ali e nao sei como resolver!
|
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: Brasília
Posts: 4,258
Reputation: 474
|
Posta o comando/função completo(a)
|
|
|
|
|
|
#6 |
|
Little Clucker
![]() Join Date: Sep 2011
Posts: 22
Reputation: 1
|
Code:
if(strcmp(cmd, "/porbomba", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREEN, "USE: /porbomba [ID DA VITIMA]");
return 1;
}
new vitima;
new vitimac;
vitima = ReturnUser(tmp);
if(vitima != INVALID_PLAYER_ID)
{
if(playerid == vitima){SendClientMessage(playerid, COLOR_RED, "Não pode usar este comando em você mesmo!"); return 1;}
vitimac = gLastCar[vitima];
matador = playerid;
if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8) // verificar se no seu gm hitmam eh esse valor e se não é pMember ou pLeader ou outra coisa
{
if (PlayerInfo[playerid][pCargo] >= 3)
{
if (carrobb1 == 0)
{
new usando = 1;
new Float:vX,Float:vY,Float:vZ;
GetVehiclePos(vitimac,vX,vY,vZ);
if(PlayerToPoint(3.5,playerid,vX,vY,vZ))
{
if (ProxDetectorS(5.0, playerid, vitima))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new ncar;
ncar = GetPlayerVehicleID(i);
if(!IsPlayerInVehicle(i, ncar))
{
usando = 0;
}
else
{
SendClientMessage(matador, COLOR_RED, "A bomba não pode ser plantada com a pessoa no carro");
return 1;
}
}
if(usando == 0)
{
vitimacarro = vitimac;
carrobb1 = 1;
SetTimer("tempocarrobb1", 120000, 0); // 000 = milésimos então 1000 = 1 segundo, logo 300000 = 5 minutos
usando = 1;
SendClientMessage(playerid,0xFFFF00AA,"Bomba plantada.");
return 1;
}
else
{
SendClientMessage(matador, COLOR_RED, "A bomba não pode ser plantada com a pessoa no carro");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "A vítima está muito próxima á você.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Você não está perto do carro da vítima.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Aguém usou este comando, aguarde alguns minutos.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Deve ser cargo 3+");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Você não é Hitman, para usar este comando.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Número Inválido.");
return 1;
}
}
return 1;
}
|
|
|
|
|
|
#7 |
|
Big Clucker
![]() ![]() Join Date: Nov 2011
Posts: 192
Reputation: 4
|
pawn Code:
|
|
|
|
|
|
#8 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: Brasília
Posts: 4,258
Reputation: 474
|
pawn Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Erro no pawn | pedrocavaco | Português/Portuguese | 2 | 01/12/2011 05:17 PM |
| [AJUDA] Erro pawn | Vinicius. | Português/Portuguese | 7 | 30/10/2011 03:42 AM |
| [Ajuda]GM Deu grande erro em Pawn | [Dk]TuReTOo | Português/Portuguese | 2 | 23/02/2011 11:24 PM |
| [DUV]Erro no pawn | Lucas_Brasil | Português/Portuguese | 10 | 10/02/2010 06:04 AM |