SA-MP Forums Archive
[Ajuda] Comando /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] Comando /orgs (/showthread.php?tid=411952)



Comando /orgs - vini_souza - 31.01.2013

Eae galera,Estou aqui por que gostaria de saber como criar um comando /orgs :/ bom nгo fasso a minima ideia, ja tentei pesquisar...etc mas nгo acho. Entaum so me resto pedir aqui pra alguem ajudar, Queria saber como criar um comando /orgs que aparece os lideres OFF e os lideres ON.Obrigado.
PS> Se fosse possivel gostaria de ajuda para criar o comando. Detalhadamente.


Re: Comando /orgs - mau.tito - 31.01.2013

IsPlayerConnected


Re: Comando /orgs - NuTShoT - 31.01.2013

Olб vini_souza!

Estб ai uma base:
pawn Код:
if(!strcmp(cmd, "/orgs", true))
    {
    format(string, sizeof (string), "|__________________________ Orgs __________________________|\n", 500, 500);
    format(string, sizeof (string), "%s 1 - Policia Militar LS: %s\n", string, InfoOrg[1][Lider]);
    format(string, sizeof (string), "%s 2 - Rotam: %s\n", string, InfoOrg[2][Lider]);
    format(string, sizeof (string), "%s 3 - Exercito: %s\n", string, InfoOrg[3][Lider]);
    format(string, sizeof (string), "%s 4 - Mйdicos LS: %s\n", string, InfoOrg[4][Lider]);
    format(string, sizeof (string), "%s 5 - Aztecas LS: %s\n", string, InfoOrg[5][Lider]);
    format(string, sizeof (string), "%s 6 - Guerrilheiros Israelitas: %s\n", string, InfoOrg[6][Lider]);
    format(string, sizeof (string), "%s 7 - Prefeito LS: %s\n", string, InfoOrg[7][Lider]);
    format(string, sizeof (string), "%s 8 - Hitmans: %s\n", string, InfoOrg[8][Lider]);
    format(string, sizeof (string), "%s 9 - Los Santos News: %s\n", string, InfoOrg[9][Lider]);
    format(string, sizeof (string), "%s 10 - Taxista LS: %s\n", string, InfoOrg[10][Lider]);
    format(string, sizeof (string), "%s 11 - Policia Federal: %s\n", string, InfoOrg[11][Lider]);
    format(string, sizeof (string), "%s 12 - Mбfia Cosa Nostra: %s\n", string, InfoOrg[12][Lider]);
    return ShowPlayerDialog(playerid, 1233210, DIALOG_STYLE_MSGBOX, "Orgs", string, "Ok", #);
Vlw!


Re: Comando /orgs - tonisantolia - 31.01.2013

Quote:
Originally Posted by NuTShoT
Посмотреть сообщение
Olб vini_souza!

Estб ai uma base:
pawn Код:
if(!strcmp(cmd, "/orgs", true))
    {
    format(string, sizeof (string), "|__________________________ Orgs __________________________|\n", 500, 500);
    format(string, sizeof (string), "%s 1 - Policia Militar LS: %s\n", string, InfoOrg[1][Lider]);
    format(string, sizeof (string), "%s 2 - Rotam: %s\n", string, InfoOrg[2][Lider]);
    format(string, sizeof (string), "%s 3 - Exercito: %s\n", string, InfoOrg[3][Lider]);
    format(string, sizeof (string), "%s 4 - Mйdicos LS: %s\n", string, InfoOrg[4][Lider]);
    format(string, sizeof (string), "%s 5 - Aztecas LS: %s\n", string, InfoOrg[5][Lider]);
    format(string, sizeof (string), "%s 6 - Guerrilheiros Israelitas: %s\n", string, InfoOrg[6][Lider]);
    format(string, sizeof (string), "%s 7 - Prefeito LS: %s\n", string, InfoOrg[7][Lider]);
    format(string, sizeof (string), "%s 8 - Hitmans: %s\n", string, InfoOrg[8][Lider]);
    format(string, sizeof (string), "%s 9 - Los Santos News: %s\n", string, InfoOrg[9][Lider]);
    format(string, sizeof (string), "%s 10 - Taxista LS: %s\n", string, InfoOrg[10][Lider]);
    format(string, sizeof (string), "%s 11 - Policia Federal: %s\n", string, InfoOrg[11][Lider]);
    format(string, sizeof (string), "%s 12 - Mбfia Cosa Nostra: %s\n", string, InfoOrg[12][Lider]);
    return ShowPlayerDialog(playerid, 1233210, DIALOG_STYLE_MSGBOX, "Orgs", string, "Ok", #);
Vlw!
Tem certeza que isso irб funcionar? Nгo ta faltando strcat ai nгo?


Re: Comando /orgs - sofina - 31.01.2013

Quote:
Originally Posted by tonisantolia
Посмотреть сообщение
Tem certeza que isso irб funcionar? Nгo ta faltando strcat ai nгo?
Se ele passa o code base por completo, ele ia dar CTRL C V e ia pedir ajuda aqui no fуrum depois.