This is the script, did not see anything wrong, help please.
public SearchingHit(playerid)
{
new string[256];
new giveplayer[128];
new searchhit = 0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(searchhit == 0)
{
if(InfoJugador[i][pHeadValue] > 0 && GotHit[i] == 0 && InfoJugador[i][pMember] !=
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
Replace(giveplayer, "_", "*");
searchhit = 1;
//hitfound = 1;
//hitid = i;
for(new k=0; k<MAX_PLAYERS; k++)
{
if(IsPlayerConnected(k))
{
if(InfoJugador[k][pMember] == 8 || InfoJugador[k][pLeader] ==
{
SendClientMessage(k, COLOR_WHITE, "|__________________ Agencia de Sicarios __________________|");
SendClientMessage(k, COLOR_DBLUE, "*** Mensaje entrante: Nuevo trabajo disponible. ***");
format(string, sizeof(string), "Persona: %s ID: %d Valor: %d$", giveplayer, i, InfoJugador[i][pHeadValue]);
SendClientMessage(k, COLOR_DBLUE, string);
SendClientMessage(k, COLOR_YELLOW, "Usa Golpe ID, para asignar un contrato a un Sicario.");
SendClientMessage(k, COLOR_WHITE, "|________________________________________________ ________|");
}
}
}
return 0;
}
}
}
}
if(searchhit == 0)
{
SendClientMessage(playerid, COLOR_GREY, " No hay contratos disponibles!");
}
return 0;
}