[Ajuda] /orgs mostrando 1 player em todas as orgs - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] /orgs mostrando 1 player em todas as orgs (
/showthread.php?tid=543414)
/orgs mostrando 1 player em todas as orgs -
Canema - 26.10.2014
Iai gente beleza ? Preciso de uma ajuda de vocкs,jб olhei esse code de pй a ponta e nгo encontro bug.
+REP pra quem puder me ajudar.
pawn Код:
CMD:orgs(playerid)
{
new org[150],org2[128],string[4096],tmp[32],giveid;
for(new i = 1; i < MAX_ORGS; ++i)
{
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[i]);
format(tmp,32,"%s",DOF2_GetString(org, OrgsCargos[0]));
if(strlen(tmp) < 3)
tmp = "Ninguem";
giveid = ReturnUser(tmp);
if(IsPlayerConnected(giveid))//C2A2DA
format(org2, 150, "{%s} %d >> %s: %s - {00D900}Online\n", OrgsColorTags[i], i, OrgsNames[i], tmp);
else
format(org2, 150, "{%s} %d >> %s: %s - {AA3333}Offline\n", OrgsColorTags[i], i, OrgsNames[i], tmp);
strcat(string, org2);
}
return ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Organizaзхes", string, "Fechar", "");
}
Re: /orgs mostrando 1 player em todas as orgs -
Bruno13 - 26.10.2014
Poderia pelo menos dizer o bug?
Re: /orgs mostrando 1 player em todas as orgs -
Canema - 26.10.2014
Eu coloco alguйm como lider e ele aparece em outras orgs.
Re: /orgs mostrando 1 player em todas as orgs -
Bruno13 - 26.10.2014
Qual o cmd de dar lider?