[Ajuda] Server: Unknown Command -
paulor - 31.12.2011
Код:
cmd_orgs(playerid, params[])
{
new org[128],org2[128],string[2048],tmp[32],giveid;
for(new i = 1; i < MAX_ORGS; ++i)
{
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[i]);
format(tmp,32,"%s",dini_Get(org, OrgsCargos[0]));
/*if(strcmp(tmp,"Nenhum",true)==0 || strlen(tmp) < 3)
{
format(org2,128,"{C2A2DA}%s: Nenhum\n",OrgsNames[i]);
continue;
}*/
if(strlen(tmp) < 3)
tmp = "Ninguйm";
giveid = ReturnUser(tmp);
if(IsPlayerConnected(giveid))
format(org2,128,"{C2A2DA} %d = %s: %s - {00D900}Online\n", i, OrgsNames[i], tmp, Player[i][pName]);
else
format(org2,128,"{C2A2DA} %d = %s: %s - {AA3333}Offline\n", i, OrgsNames[i], tmp, Player[i][pName]);
strcat(string, org2);
}
#pragma unused params
return ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Organizaзхes", string, "Fechar", "");
}
oq ta de errado ai me ajude digito /orgs e da Server: Unknown Command pq sera ? ++ REP
Re: Server: Unknown Command -
Lуs - 31.12.2011
return 1;
Re: Server: Unknown Command -
paulor - 31.12.2011
nгo deu certo.
ele ja retorna entao troquei o return ShowPlayerDialog para return 1 e nгo adiantou nao й outra coisa
Re: [Ajuda] Server: Unknown Command -
paulor - 01.01.2012
ajuda ae na moral alguem ?? ++ REP
Re: [Ajuda] Server: Unknown Command -
Lуs - 01.01.2012
pawn Код:
cmd:orgs(playerid)
{
new org[128],org2[128],string[2048],tmp[32],giveid;
for(new i = 1; i < MAX_ORGS; ++i)
{
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[i]);
format(tmp,32,"%s",dini_Get(org, OrgsCargos[0]));
/*if(strcmp(tmp,"Nenhum",true)==0 || strlen(tmp) < 3)
{
format(org2,128,"{C2A2DA}%s: Nenhum\n",OrgsNames[i]);
continue;
}*/
tmp = "Ninguйm";
giveid = ReturnUser(tmp);
if(IsPlayerConnected(giveid)) return format(org2,128,"{C2A2DA} %d = %s: %s - {00D900}Online\n", i, OrgsNames[i], tmp, Player[i][pName]);
format(org2,128,"{C2A2DA} %d = %s: %s - {AA3333}Offline\n", i, OrgsNames[i], tmp, Player[i][pName]);
strcat(string, org2);
ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Organizaзхes", string, "Fechar", "");
}
return 1;
}
Re: [Ajuda] Server: Unknown Command -
paulor - 01.01.2012
nгo deu certo se nгo for o cmd axo q eh outro cmd q ta bugando !
Re: [Ajuda] Server: Unknown Command -
paulor - 02.01.2012
alguem me ajuda ae pf
Re: [Ajuda] Server: Unknown Command -
Don_Speed - 07.01.2012
Tenta Troca isso
pawn Код:
#define dcmd(%1,%2,%3) if(!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Re: [Ajuda] Server: Unknown Command -
paulor - 07.01.2012
Nгo deu nгo alguem me ajude ja cansei de tentar !