comecei a mecher agora e nao to conseguindo usar os comandos de adm voce conseguiu?
vou encaminhar o codigo a baixo se alguem conseguir me explicar a leitura que o codigo faz eu agradeço. eu modifiquei o ip nos arquivos txt porem msm assim o adm nao ativa. des de ja obrigado!
"void ProcessImple(int conn, int level, char* str)
{
char cmd[128];
char sval1[128];
char sval2[128];
char sval3[128];
char sval4[128];
char sval5[128];
char sval6[128];
char sval7[128];
char sval8[128];
char sval9[128];
unsigned int ival1 = 0;
unsigned int ival2 = 0;
long long dval2 = 0;
unsigned int ival3 = 0;
unsigned int ival4 = 0;
unsigned int ival5 = 0;
unsigned int ival6 = 0;
unsigned int ival7 = 0;
unsigned int ival8 = 0;
sscanf(str + 1, "%s %s %s %s %s %s %s %s %s", cmd, sval1, sval2, sval3, sval4, sval5, sval6, sval7, sval8);
sscanf(sval1, "%d", &ival1);
sscanf(sval2, "%llu", &dval2);
sscanf(sval2, "%d", &ival2);
sscanf(sval3, "%d", &ival3);
sscanf(sval4, "%d", &ival4);
sscanf(sval5, "%d", &ival5);
sscanf(sval6, "%d", &ival6);
sscanf(sval7, "%d", &ival7);
sscanf(sval8, "%d", &ival8);
char logtemp[256];
snprintf(logtemp, sizeof(logtemp), "adm %s", str);
if (conn != 0)
SystemLog(pUser[conn].AccountName, pUser[conn].MacAddress, pUser[conn].IP, logtemp);
else
SystemLog("-system", "-", 0, logtemp);
if (level != 2000)
{
if (conn <= 0 && conn >= MAX_USER)
return;
if (!strcmp(cmd, "set"))
{
if (!strcmp(sval1, "sanc"))
{
if (pMob[conn].MOB.Equip[0].sIndex != 0) { pMob[conn].MOB.Equip[0].stEffect[0].cEffect = EF_SANC; pMob[conn].MOB.Equip[0].stEffect[0].cValue = ival2; }
if (pMob[conn].MOB.Equip[1].sIndex != 0) { pMob[conn].MOB.Equip[1].stEffect[0].cEffect = EF_SANC; pMob[conn].MOB.Equip[1].stEffect[0].cValue = ival2; }
if (pMob[conn].MOB.Equip[2].sIndex != 0) { pMob[conn].MOB.Equip[2].stEffect[0].cEffect = EF_SANC; pMob[conn].MOB.Equip[2].stEffect[0].cValue = ival2; }
if (pMob[conn].MOB.Equip[3].sIndex != 0) { pMob[conn].MOB.Equip[3].stEffect[0].cEffect = EF_SANC; pMob[conn].MOB.Equip[3].stEffect[0].cValue = ival2; }
if (pMob[conn].MOB.Equip[4].sIndex != 0) { pMob[conn].MOB.Equip[4].stEffect[0].cEffect = EF_SANC; pMob[conn].MOB.Equip[4].stEffect[0].cValue = ival2; }
if (pMob[conn].MOB.Equip[5].sIndex != 0) { pMob[conn].MOB.Equip[5].stEffect[0].cEffect = EF_SANC; pMob[conn].MOB.Equip[5].stEffect[0].cValue = ival2; }
if (pMob[conn].MOB.Equip[6].sIndex != 0) { pMob[conn].MOB.Equip[6].stEffect[0].cEffect = EF_SANC; pMob[conn].MOB.Equip[6].stEffect[0].cValue = ival2; }
if (pMob[conn].MOB.Equip[7].sIndex != 0) { pMob[conn].MOB.Equip[7].stEffect[0].cEffect = EF_SANC; pMob[conn].MOB.Equip[7].stEffect[0].cValue = ival2; }
SendClientMessage(conn, "set sanc");
}"