BPH:emitirInfoOrg(name[]) { new file[64], str[128]; for(new i = 1; i < sizeof(InfoOrg); i++) { format(file, sizeof(file), MembrosOrg, i); if(strcmp(name,InfoOrg[i][Lider],true)==0) { strmid(InfoOrg[i][Lider], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME); DOF2_SetString(file, "Lider", "Ninguem"); DOF2_SaveFile(); } if(strcmp(name,InfoOrg[i][SubLider],true)==0) { strmid(InfoOrg[i][SubLider], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME); DOF2_SetString(file, "SubLider", "Ninguem"); DOF2_SaveFile(); } if(strcmp(name,InfoOrg[i][SubLider2],true)==0) { strmid(InfoOrg[i][SubLider2], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME); DOF2_SetString(file,"SubLider2","Ninguem"); DOF2_SaveFile(); } for(new m = 1; m < MAX_MEMBROS; m++) { format(str, sizeof(str), "Membro%d", m); if(strcmp(name, InfoMembros[i][m], true) == 0) { strmid(InfoMembros[i][m], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME); DOF2_SetString(file, str, "Ninguem"); DOF2_SaveFile(); return 1; }}} return 1; } |
BPH:emitirInfoOrg(name[])
{
new file[64], str[128];
for(new i = 1; i < sizeof(InfoOrg); i++)
{
format(file, sizeof(file), MembrosOrg, i);
if(!strcmp(InfoOrg[i][Lider], name))
{
strmid(InfoOrg[i][Lider], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME);
DOF2_SetString(file, "Lider", "Ninguem");
DOF2_SaveFile();
}
if(!strcmp(InfoOrg[i][SubLider], name))
{
strmid(InfoOrg[i][SubLider], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME);
DOF2_SetString(file, "SubLider", "Ninguem");
DOF2_SaveFile();
}
if(!strcmp(InfoOrg[i][SubLider2], name))
{
strmid(InfoOrg[i][SubLider2], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME);
DOF2_SetString(file,"SubLider2","Ninguem");
DOF2_SaveFile();
}
for(new m = 1; m < MAX_MEMBROS; m++)
{
format(str, sizeof(str), "Membro%d", m);
if(!strcmp(InfoMembros[i][m], name))
{
strmid(InfoMembros[i][m], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME);
DOF2_SetString(file, str, "Ninguem");
DOF2_SaveFile();
return 1;
}
}
}
return 1;
}
if(strcmp(InfoOrg[i][Lider], MAX_PLAYER_NAME, name, true) == 0)
if(strcmp(InfoOrg[i][Lider], name, true) == 0)
BPH:DemitirInfoOrg(name[])
{
new file[64], str[128];
for(new i = 1; i < sizeof(InfoOrg); i++)
{
format(file, sizeof(file), MembrosOrg, i);
if(strcmp(InfoOrg[i][Lider], name, true == 0))
{
strmid(InfoOrg[i][Lider], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME);
DOF2_SetString(file, "Lider", "Ninguem");
}
if(strcmp(InfoOrg[i][SubLider], name, true == 0))
{
strmid(InfoOrg[i][SubLider], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME);
DOF2_SetString(file, "SubLider", "Ninguem");
}
if(strcmp(InfoOrg[i][SubLider2], name, true == 0))
{
strmid(InfoOrg[i][SubLider2], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME);
DOF2_SetString(file,"SubLider2","Ninguem");
}
for(new m = 1; m < MAX_MEMBROS; m++)
{
format(str, sizeof(str), "Membro%d", m);
if(strcmp(InfoMembros[i][m], name, true == 0))
{
strmid(InfoMembros[i][m], "Ninguem", 0, strlen("Ninguem"), MAX_PLAYER_NAME);
DOF2_SetString(file, str, "Ninguem");
}
}
DOF2_SaveFile();
}
return 1;
}
Olб, k2bi.
Faзa a alteraзгo para esta callback, compile e faзa o teste. PHP код:
|