C:\Users\Natan\Desktop\Servidor\gamemodes\GM.pwn(18520) : warning 202: number of arguments does not match definition C:\Users\Natan\Desktop\Servidor\gamemodes\GM.pwn(18538) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
CMD:abseg(playerid){
if(NaFaculdade[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб na biblioteca e estб incapacitado de fazer isto.");
if(preso[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб preso.");
if(algemado[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб algemado.");
if(cercado[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб cercado.");
if(nogame[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб em um game!");
if(autoescola[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб na Auto-Escola!");
if(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)
if(IsPlayerInRangeOfPoint(playerid, 10.0, 3152.6001, -604.59998, 13.8) || IsPlayerInRangeOfPoint(playerid, 10.0, 3163.7, -609, 13.6) || IsPlayerInRangeOfPoint(playerid, 10.0, 3190.5, -566.29999, 13.6) || IsPlayerInRangeOfPoint(playerid, 10.0, 3201, -609.79999, 9.8) || IsPlayerInRangeOfPoint(playerid, 10.0, 3163.7, -600.09998, 13.6))
{
OpenPrisonGate();
SendClientMessage(playerid, Azul, "Portхes abrindo, para fechar use /fcseg.");
}else{
SendClientMessage(playerid, COR_ERRO, "Vocк nгo estб na Prisгo de seguranзa maxima!");
}
return 1;
}
CMD:fcseg(playerid){
if(NaFaculdade[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб na biblioteca e estб incapacitado de fazer isto.");
if(preso[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб preso.");
if(algemado[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб algemado.");
if(cercado[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб cercado.");
if(nogame[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб em um game!");
if(autoescola[playerid] == 1) return SendClientMessage(playerid, Vermelho, "Vocк estб incapacitado de fazer isto pois estб na Auto-Escola!");
if(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)
if(IsPlayerInRangeOfPoint(playerid, 10.0, 3152.6001, -604.59998, 13.8) || IsPlayerInRangeOfPoint(playerid, 10.0, 3163.7, -609, 13.6) || IsPlayerInRangeOfPoint(playerid, 10.0, 3190.5, -566.29999, 13.6) || IsPlayerInRangeOfPoint(playerid, 10.0, 3201, -609.79999, 9.8) || IsPlayerInRangeOfPoint(playerid, 10.0, 3163.7, -600.09998, 13.6))
{
ClosePrisonGate();
SendClientMessage(playerid, Azul, "Portхes abertos, para abrir use /abseg.");
}else{
SendClientMessage(playerid, COR_ERRO, "Vocк nгo estб na Prisгo de seguranзa maxima!");
}
return 1;
}
//Publics
forward OpenPrisonGate(gateid);
public OpenPrisonGate(gateid)
{
switch(gateid)
{
case 1:MoveDynamicObject(MSP_Gates[1], 3152.6001, -590.40, 13.8, 1.0, 0, 0, 90);
case 2:MoveDynamicObject(MSP_Gates[2],3163.7, -617.2999, 13.6, 1.0, 0, 0, 270), MoveDynamicObject(MSP_Gates[3], 3163.7, -591.5996, 13.6, 1.0, 0, 0, 90);
case 3:MoveDynamicObject(MSP_Gates[4], 3197.8999, -566.29999, 13.6, 1.0, 0, 0, 0);
case 4:MoveDynamicObject(MSP_Gates[5], 3201, -613, 9.8, 1.0, 0, 0, 90);
}
return 1;
}
forward ClosePrisonGate(gateid);
public ClosePrisonGate(gateid)
{
switch(gateid)
{
case 1:MoveDynamicObject(MSP_Gates[1], 3152.6001, -604.59998, 13.8, 1.0, 0, 0, 90);
case 2:MoveDynamicObject(MSP_Gates[2],3163.7, -609, 13.6, 1.0, 0, 0, 270), MoveDynamicObject(MSP_Gates[3], 3163.7, -600.09998, 13.6, 1.0, 0, 0, 90);
case 3:MoveDynamicObject(MSP_Gates[4], 3190.5, -566.29999, 13.6, 1.0, 0, 0, 0);
case 4:MoveDynamicObject(MSP_Gates[5], 3201, -609.79999, 9.8, 1.0, 0, 0, 90);
}
return 1;
}
new gate; if(isnull(gate) || gate > 4) return SendClientMessage(playerid, Vermelho, "Use /abseg [Portгo: 1-4]"); OpenPrisonGate(gate);
new gate; if(isnull(gate) || gate > 4) return SendClientMessage(playerid, Vermelho, "Use /fcseg [Portгo: 1-4]"); ClosePrisonGate(gate);
warning 202: number of arguments does not match definition
numeros de argumenrtos nao batem com a definiзao, alguma funзao esta com parametros a menos ou a mais |