07.09.2013, 14:13
Ajuda, foi editando o GM com o tmepo foi surgindo warnings, com essa linha: ClearAnimations(playerid);
vou botar aqui os codigos, mas o warning ta na linha onde tem o ClearAnimations(playerid);
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17437) : warning 202: number of arguments does not match definition
ClearAnimations(playerid);
Dentro disso
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17465) : warning 202: number of arguments does not match definition
ClearAnimations(playerid);
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17493) : warning 202: number of arguments does not match definition
ClearAnimations(playerid);
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17521) : warning 202: number of arguments does not match definition
ClearAnimations(playerid);
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17549) : warning 202: number of arguments does not match definition
ClearAnimations(playerid);
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17577) : warning 202: number of arguments does not match definition
ClearAnimations(playerid);
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(60347) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(63712) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(63760) : warning 202: number of arguments does not match definition
/\
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(63819) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(63879) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(63939) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(6399 : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(64057) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(76534) : warning 202: number of arguments does not match definition
[/pawn]
vou botar aqui os codigos, mas o warning ta na linha onde tem o ClearAnimations(playerid);
pawn Код:
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(17409) : warning 202: number of arguments does not match definition
ClearAnimations(playerid);
Dentro disso
[pawn]
if(WantedPoints[playerid] >= 1)
{
new price = WantedPoints[playerid] * 100;
if(PlayerInfo[killerid][pMembro] == 1 || PlayerInfo[killerid][pLider] == 1)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Militar, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
if(PlayerCuffed[playerid])
{
ClearAnimations(playerid);
RemovePlayerAttachedObject(playerid,4);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
TogglePlayerControllable(playerid, 1);
PlayerCuffed[playerid] = 0;
PlayerInfo[playerid][pMuted] = 0;
}
}
ClearAnimations(playerid);
Dentro disso
pawn Код:
if(PlayerInfo[killerid][pMembro] == 2 || PlayerInfo[killerid][pLider] == 2)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 3;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na HQ Brigada Militar, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
if(PlayerCuffed[playerid])
{
ClearAnimations(playerid);
RemovePlayerAttachedObject(playerid,4);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
TogglePlayerControllable(playerid, 1);
PlayerCuffed[playerid] = 0;
PlayerInfo[playerid][pMuted] = 0;
}
}
ClearAnimations(playerid);
pawn Код:
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 7;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos no Exercito, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
if(PlayerCuffed[playerid])
{
ClearAnimations(playerid);
RemovePlayerAttachedObject(playerid,4);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
TogglePlayerControllable(playerid, 1);
PlayerCuffed[playerid] = 0;
PlayerInfo[playerid][pMuted] = 0;
}
}
ClearAnimations(playerid);
pawn Код:
if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 4;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Civil, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
if(PlayerCuffed[playerid])
{
ClearAnimations(playerid);
RemovePlayerAttachedObject(playerid,4);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
TogglePlayerControllable(playerid, 1);
PlayerCuffed[playerid] = 0;
PlayerInfo[playerid][pMuted] = 0;
}
}
ClearAnimations(playerid);
pawn Код:
if(PlayerInfo[killerid][pMembro] == 11 || PlayerInfo[killerid][pLider] == 11)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 5;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Federal, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
if(PlayerCuffed[playerid])
{
ClearAnimations(playerid);
RemovePlayerAttachedObject(playerid,4);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
TogglePlayerControllable(playerid, 1);
PlayerCuffed[playerid] = 0;
PlayerInfo[playerid][pMuted] = 0;
}
}
ClearAnimations(playerid);
pawn Код:
if(PlayerInfo[killerid][pMembro] == 26 || PlayerInfo[killerid][pLider] == 26)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na D.E.T.R.A.N, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
if(PlayerCuffed[playerid])
{
ClearAnimations(playerid);
RemovePlayerAttachedObject(playerid,4);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
TogglePlayerControllable(playerid, 1);
PlayerCuffed[playerid] = 0;
PlayerInfo[playerid][pMuted] = 0;
}
}
ClearAnimations(playerid);
pawn Код:
if(PlayerInfo[killerid][pMembro] == 29 || PlayerInfo[killerid][pLider] == 29)
{
format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
GameTextForPlayer(killerid, gstring, 5000, 1);
ConsumingMoney[killerid] = 1;
GivePlayerMoney(killerid, price / 2);
PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos no Departamento de Policia, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
WantedPoints[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pDrogas] = 0;
PlayerInfo[playerid][pDrogas2] = 0;
PlayerInfo[playerid][pDrogas3] = 0;
PlayerInfo[playerid][pMats] = 0;
if(PlayerCuffed[playerid])
{
ClearAnimations(playerid);
RemovePlayerAttachedObject(playerid,4);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
TogglePlayerControllable(playerid, 1);
PlayerCuffed[playerid] = 0;
PlayerInfo[playerid][pMuted] = 0;
}
}
//}
}
pawn Код:
if(strcmp(cmd, "/desalgemar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Use: /desalgemar [id]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo pode se desalgemar!"); return 1; }
if(PlayerCuffed[giveplayerid])
{
ClearAnimations(giveplayerid);
RemovePlayerAttachedObject(giveplayerid,4);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Vocк foi desalgemado pelo: %s.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Vocк desalgemou %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GameTextForPlayer(giveplayerid, "~g~Desalgemado", 2500, 3);
TogglePlayerControllable(giveplayerid, 1);
PlayerCuffed[giveplayerid] = 0;
PlayerInfo[giveplayerid][pMuted] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Este jogador nгo estб algemado !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador estб longe de vocк !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador Estб Offline !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й PM/PF/PC/Exercito !");
}
}
return 1;
}
pawn Код:
if(strcmp(cmd, "/prender", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
if(OnDuty[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo Bateu o cartгo!");
return 1;
}
if(!PlayerToPoint(5.0, playerid, 268.3327,77.8972,1001.0391) && !PlayerToPoint(5.0, playerid, 1545.4073,-1607.9791,13.3828) && !PlayerToPoint(5.0, playerid, 324.3141,-1496.9177,24.9219) && !PlayerToPoint(5.0, playerid, 920.5212,-1184.8267,16.9766) && !PlayerToPoint(5.0, playerid, 218.7284,123.7327,999.0216) && !PlayerToPoint(5.0, playerid, 1545.7220,-1609.4769,13.3828)
&& !PlayerToPoint(5.0, playerid, 1019.6051,-317.6436,73.9922)
&& !PlayerToPoint(5.0, playerid, -1298.8188,490.5014,11.1953) && !PlayerToPoint(5.0, playerid, 264.1557,77.5797,1001.0391) && !PlayerToPoint(5.0, playerid, 1361,175.1075,1003.0234) && !PlayerToPoint(5.0, playerid, 321.8284,315.6733,999.1484) && !PlayerToPoint(5.0, playerid, 916.9683,-1203.0712,16.9832))
{// Jail spot
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new time = strval(tmp);
if(time < 1 || time > 20) { SendClientMessage(playerid, COLOR_GREY, " O Tempo nгo pode ser menor que 1 nem maior que 20 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new bail = strval(tmp);
if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, " Fianзa Tem Que ser 0=Nгo ou 1=Sim !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new bailprice = strval(tmp);
if(bailprice < 0 || bailprice > 300000) { SendClientMessage(playerid, COLOR_GREY, " O Preзo nгo pode ser menor que 0 nem maior que R$300000 !"); return 1; }
new suspect = giveplayerid;
if(PlayerCuffed[giveplayerid])
{
ClearAnimations(giveplayerid);
RemovePlayerAttachedObject(giveplayerid,4);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
TogglePlayerControllable(giveplayerid, 1);
PlayerCuffed[giveplayerid] = 0;
PlayerInfo[giveplayerid][pMuted] = 0;
}
pawn Код:
if(strcmp(cmd, "/prender", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
if(OnDuty[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo Bateu o cartгo!");
return 1;
}
if(!PlayerToPoint(5.0, playerid, 268.3327,77.8972,1001.0391) && !PlayerToPoint(5.0, playerid, 1545.4073,-1607.9791,13.3828) && !PlayerToPoint(5.0, playerid, 324.3141,-1496.9177,24.9219) && !PlayerToPoint(5.0, playerid, 920.5212,-1184.8267,16.9766) && !PlayerToPoint(5.0, playerid, 218.7284,123.7327,999.0216) && !PlayerToPoint(5.0, playerid, 1545.7220,-1609.4769,13.3828)
&& !PlayerToPoint(5.0, playerid, 1019.6051,-317.6436,73.9922)
&& !PlayerToPoint(5.0, playerid, -1298.8188,490.5014,11.1953) && !PlayerToPoint(5.0, playerid, 264.1557,77.5797,1001.0391) && !PlayerToPoint(5.0, playerid, 1361,175.1075,1003.0234) && !PlayerToPoint(5.0, playerid, 321.8284,315.6733,999.1484) && !PlayerToPoint(5.0, playerid, 916.9683,-1203.0712,16.9832))
{// Jail spot
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб perto da cela, nгo pode prender o suspeito !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new time = strval(tmp);
if(time < 1 || time > 20) { SendClientMessage(playerid, COLOR_GREY, " O Tempo nгo pode ser menor que 1 nem maior que 20 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new bail = strval(tmp);
if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, " Fianзa Tem Que ser 0=Nгo ou 1=Sim !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id] [tempo (minutos)] [fianca (0=nao 1=sim)] [preco da fianca]");
return 1;
}
new bailprice = strval(tmp);
if(bailprice < 0 || bailprice > 300000) { SendClientMessage(playerid, COLOR_GREY, " O Preзo nгo pode ser menor que 0 nem maior que R$300000 !"); return 1; }
new suspect = giveplayerid;
if(PlayerCuffed[giveplayerid])
{
ClearAnimations(giveplayerid);
RemovePlayerAttachedObject(giveplayerid,4);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
TogglePlayerControllable(giveplayerid, 1);
PlayerCuffed[giveplayerid] = 0;
PlayerInfo[giveplayerid][pMuted] = 0;
}
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 15)
{
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador deve ter no mнnimo 1 nнvel de procurado!");
return 1;
}
format(string, sizeof(string), "* Vocк Prendeu %s !", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
//GivePlayerMoney(suspect, -moneys);
format(string, sizeof(string), "Preso por %s", sendername);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeaponsEx(suspect);
if(PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pLider]==1)
{
format(string, sizeof(string), "<< Policial Militar %s prendeu o suspeito %s >>", sendername, giveplayer);
OOCNews(COLOR_LIGHTRED, string);
}
SetPlayerInterior(suspect, 6);
SetPlayerPos(suspect,227.5300,114.2930,999.0156);
PlayerInfo[suspect][pJailTime] = time * 60;
if(bail == 1)
{
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: R$%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Vocк foi preso por %d Segundos. Fianзa: Desativada", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
if(PlayerCuffed[giveplayerid])
{
ClearAnimations(giveplayerid);
RemovePlayerAttachedObject(giveplayerid,4);
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
GameTextForPlayer(giveplayerid, "~g~Desalgemado", 2500, 3);
TogglePlayerControllable(giveplayerid, 1);
PlayerCuffed[giveplayerid] = 0;
PlayerInfo[giveplayerid][pMuted] = 0;
}
PlayerInfo[suspect][pJailed] = 1;
SetPlayerFree(suspect,playerid, "Foi Preso");
WantedPoints[suspect] = 0;
SetPlayerWantedLevel(suspect, 0);
WantAdvogado[suspect] = 1;
PlayerInfo[suspect][pMuted] = 0;
TogglePlayerControllable(suspect, 1);
PlayerCuffed[suspect] = 0;
PlayerInfo[suspect][pDrogas] = 0;
PlayerInfo[suspect][pDrogas2] = 0;
PlayerInfo[suspect][pDrogas3] = 0;
PlayerInfo[suspect][pMats] = 0;
return 1;
}
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(63819) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(63879) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(63939) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(6399 : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(64057) : warning 202: number of arguments does not match definition
D:\Documents and Settings\PC\Desktop\RPPG\pawno\ULTRA2.pwn(76534) : warning 202: number of arguments does not match definition
[/pawn]