if(strcmp(cmd, "/prender", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
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") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "(ERRO) Use: /prender [id]");
return 1;
}
plid = strval(tmp);
if(IsPlayerInAnyVehicle(plid) == 1 || IsPlayerInAnyVehicle(playerid) == 1){
SendClientMessage(playerid, Vermelho, "(ERRO) Alguem estб dentro de um carro.");
return 1 ;
}
if(plid == playerid){
SendClientMessage(playerid, Vermelho, "(ERRO) Vocк nгo pode fazer isto com si mesmo.");
return 1 ;
}
if(!IsPlayerConnected(plid)){
SendClientMessage(playerid, Vermelho, "(ERRO) O jogador nгo estб conectado");
return 1;
} else {
if(GetDistanceBetweenPlayers(plid,playerid) < 10){
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
format(string, sizeof(string), "(INFO) O Policial %s te prendeu.", aname);
SendClientMessage(plid, Blue, string);
SetPlayerPos(plid, 263.8820,77.4002,1001.0391);
SetPlayerInterior(plid, 6);
SetPlayerHealth(plid, 99999);
ResetPlayerWeapons(plid);
dini_IntSet(file2, "Preso", 1);
SendClientMessage(playerid, COLOR_GREEN, "(INFO) Preso com sucesso.");
SetPlayerWantedLevel(plid, 0);
preso[plid] = 1;
TogglePlayerControllable(plid, 1);
if(Procurados[plid] == 1){
GivePlayerGrana(playerid,5000);
Procurados[plid] = 0;
SendClientMessage(playerid, Verde, "(INFO) Vocк prendeu um jogador procurado e ganhou 5 mil!");
dini_IntSet(file2, "Procurado", 0);
}
return 1;
} else {
SendClientMessage(playerid,Vermelho,"(ERRO) Chegue mais perto para prender!");
return 1;
}
}
} else {
SendClientMessage(playerid,Vermelho,"(ERRO) Apenas policiais podem usar este comando!");
return 1;
}
}
else if(WantedPoints[giveid] < 1)
return SendClientMessage(playerid, -1, "[ERRO] Este jogador nгo й um suspeito.");
new WantedPoints[MAX_PLAYERS];
pawn Код:
Caso der erro.. pawn Код:
|
pawn Код:
Caso der erro.. pawn Код:
|
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(7119) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(7123) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(7127) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(7142) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(7146) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(7150) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(7165) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(7169) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(7173) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Familia\MEUSDO~1\MVV\GAMEMO~1\MVV.pwn(8171) : error 017: undefined symbol "giveid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
new giveid;