[Ajuda] Comando /orgs
#1

Bom tenho o GM do PH 1.7 e o /orgs eu ativo ele e Buga o GM Completamente, vocк nгo leva multas, some os radares, some mais coisas que nгo lembro, enfim buga tudo.
Caso alguйm arrume ele eu agradeзo ^^
Код:
dcmd_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);

		    else
		        format(org2,128,"{C2A2DA} %d >> %s: %s - {AA3333}Offline\n", i, OrgsNames[i], tmp);

		    strcat(string, org2);
		}
		#pragma unused params
		return ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Organizaзхes", string, "Fechar", "");
    }
Reply
#2

apague tudo q tiver 'frename'. isso buga o GM inteiro!
Reply
#3

nгo й isso, sу se bugar quando eu ativar o /orgs
Reply
#4

Comando Toscooooooo LOL TROLL

pawn Код:
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);
    }
    else
    {
        format(org2,128,"{C2A2DA} %d >> %s: %s - {AA3333}Offline\n", i, OrgsNames[i], tmp);
    }
    strcat(string, org2);
    #pragma unused params
    ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Organizaзхes", string, "Fechar", "");
    return 1;
}


Acho que ta tudo errado !
Reply
#5

Troll continua nao pegando
Reply
#6

Sistema de /orgs mais pobre que ja fiz Preguiзa e foda ! srsrsrr e So trocar o nome depois !
pawn Код:
if(strcmp(cmd, "/orgs", true) == 0)//Troll Face
{
    if(IsPlayerConnected(playerid))//Depois e so trocar o nome das ORGS !
    {
        SendClientMessage(playerid, TROLL_FACE, "*** Policia Militar - 1");
        SendClientMessage(playerid, TROLL_FACE, "*** B.O.P.E - 2");
        SendClientMessage(playerid, TROLL_FACE, "*** Exercito- 3");
        SendClientMessage(playerid, TROLL_FACE, "*** Medico - 4");
        SendClientMessage(playerid, TROLL_FACE, "*** Loz Astecas - 5");
        SendClientMessage(playerid, TROLL_FACE, "*** Taliban - 6");
        SendClientMessage(playerid, TROLL_FACE, "*** Prefeito - 7");
        SendClientMessage(playerid, TROLL_FACE, "*** Hitmans - 8");
        SendClientMessage(playerid, TROLL_FACE, "*** Reporter - 9");
        SendClientMessage(playerid, TROLL_FACE, "*** Taxista - 10");
        SendClientMessage(playerid, TROLL_FACE, "*** Auto Escola - 11");
        SendClientMessage(playerid, TROLL_FACE, "*** PCC - 12");
        SendClientMessage(playerid, TROLL_FACE, "*** Mecanicos  - 13");
        SendClientMessage(playerid, TROLL_FACE, "*** Polнcia Rodoviбria Federal - 14");
        SendClientMessage(playerid, TROLL_FACE, "*** Groove Street  - 15");
        SendClientMessage(playerid, TROLL_FACE, "*** Al'qaeda  - 16");
        SendClientMessage(playerid, TROLL_FACE, "*** Policia Civil - 17");
        SendClientMessage(playerid, TROLL_FACE, "*** Ballas - 18");
        SendClientMessage(playerid, TROLL_FACE,"*** Vagos - 19");
    }
    return 1;
}


Colocar no Topo do gameMode :
pawn Код:
#define TROLL_FACE 0xFF0A00FF
Reply
#7

Eu queria que aparecesse o nick do Lider do lado '-'
Reply
#8

Pow velho se eu falei aquilo pois й q ja aconteceu comigo. faзa oq eu te falei q vc vai se surpreender! basta apagar tudo q tem com 'freename'. se axa q quando aconteceu comigo eu tambem paguei um pau danado. graзas o Don_Speed consegui resolver. Faзa oq eu te falei e veja o resultado.
Reply
#9

Olha o que da quando tirei os frename
Код:
C:\Documents and Settings\XPUser\Desktop\GM PH1\gamemodes\PL.pwn(26449) : warning 215: expression has no effect
C:\Documents and Settings\XPUser\Desktop\GM PH1\gamemodes\PL.pwn(26458) : warning 215: expression has no effect
Linhas 26449 e 26458:
26449:
Код:
	(oldcarro, newcarro);
(Aqui tinha um frename)
26458:
Код:
(oldfile, file);
(Outro frename que tirei)
E eu esqueci de por o Warning do /orgs que aparece na hora de compilar ._.
Код:
C:\Documents and Settings\XPUser\Desktop\GM PH1\gamemodes\PL.pwn(48275) : warning 203: symbol is never used: "orgs"
Reply
#10

Vo Te ajudar ja #Edito !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)