[Ajuda] Rank !
#1

- Olб pessoal, entгo tem um /rank solto ai pela internet.
Estou estudando em cima dele, para ver se posso mudar algumas coisas etc no '' MEU ''.
-
Bom mais nesse tem uns "#" que nem o print abaixo.
Tem como retirar??
OBS: Nгo tem nos code, pawno.

Reply
#2

Sim , apenas alterar na dialog !
Reply
#3

Quote:
Originally Posted by teteu99
Посмотреть сообщение
Sim , apenas alterar na dialog !
Mas no caso desse rank nгo estб no dialog.

Код:
 }
    if(dialogid == 5008)
	{
	    return OnPlayerCommandText(playerid,"/rank");
	}
	
 	if(dialogid == 5009)
	{
		if(!response)return 1;
	    switch(listitem)
	    {
	        case 0:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Nнvel", getrank("nivel", "Nнveis"), "Voltar", "");
	        }
	        case 1:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Horas Jogadas", getrank("horasjogadas", "Horas"), "Voltar", "");
	        }
	        case 2:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Kills", getrank("kills", "Kills"), "Voltar", "");
	        }
	        case 3:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Vezes que morreu", getrank("mortes", "Morreu"), "Voltar", "");
	        }
	        case 4:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Dinheiro", getrank("banco", "Grana"), "Voltar", "");
	        }
	        case 5:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Crimes Cometidos", getrank("crimes", "Crimes"), "Voltar", "");
	        }
	        case 6:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Materiais", getrank("materiais", "Materiais"), "Voltar", "");
	        }
	        case 7:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Maconha", getrank("maconha", "Gramas"), "Voltar", "");
	        }
	        case 8:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Cocaina", getrank("cocaina", "Pу"), "Voltar", "");
	        }
	        case 9:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Crack", getrank("crack", "Pedras"), "Voltar", "");
	        }
	        case 10:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Contratos Cumpridos", getrank("contratos", "Contratos"), "Voltar", "");
	        }
		}
	    return 1;
	}
Reply
#4

Quote:
Originally Posted by FalcaoNC
Посмотреть сообщение
Mas no caso desse rank nгo estб no dialog.

Код:
 }
    if(dialogid == 5008)
	{
	    return OnPlayerCommandText(playerid,"/rank");
	}
	
 	if(dialogid == 5009)
	{
		if(!response)return 1;
	    switch(listitem)
	    {
	        case 0:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Nнvel", getrank("nivel", "Nнveis"), "Voltar", "");
	        }
	        case 1:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Horas Jogadas", getrank("horasjogadas", "Horas"), "Voltar", "");
	        }
	        case 2:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Kills", getrank("kills", "Kills"), "Voltar", "");
	        }
	        case 3:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Vezes que morreu", getrank("mortes", "Morreu"), "Voltar", "");
	        }
	        case 4:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Dinheiro", getrank("banco", "Grana"), "Voltar", "");
	        }
	        case 5:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Crimes Cometidos", getrank("crimes", "Crimes"), "Voltar", "");
	        }
	        case 6:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Materiais", getrank("materiais", "Materiais"), "Voltar", "");
	        }
	        case 7:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Maconha", getrank("maconha", "Gramas"), "Voltar", "");
	        }
	        case 8:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Cocaina", getrank("cocaina", "Pу"), "Voltar", "");
	        }
	        case 9:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Crack", getrank("crack", "Pedras"), "Voltar", "");
	        }
	        case 10:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Contratos Cumpridos", getrank("contratos", "Contratos"), "Voltar", "");
	        }
		}
	    return 1;
	}
Mostre o
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 5008)
provavelmente estб no
pawn Код:
format(String, sizeof(String), "#1: ninguem 0 kill"...
Reply
#5

posta a funcao getrank para a gente te ajudar...
Reply
#6

Код:
    if(dialogid == 5008)
	{
	    return OnPlayerCommandText(playerid,"/rank");
	}
	
 	if(dialogid == 5009)
	{
		if(!response)return 1;
	    switch(listitem)
	    {
	        case 0:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Nнvel", getrank("nivel", "Nнveis"), "Voltar", "");
	        }
	        case 1:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Horas Jogadas", getrank("horasjogadas", "Horas"), "Voltar", "");
	        }
	        case 2:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Kills", getrank("kills", "Kills"), "Voltar", "");
	        }
	        case 3:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Vezes que morreu", getrank("mortes", "Morreu"), "Voltar", "");
	        }
	        case 4:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Dinheiro", getrank("banco", "Grana"), "Voltar", "");
	        }
	        case 5:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Crimes Cometidos", getrank("crimes", "Crimes"), "Voltar", "");
	        }
	        case 6:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Materiais", getrank("materiais", "Materiais"), "Voltar", "");
	        }
	        case 7:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Maconha", getrank("maconha", "Gramas"), "Voltar", "");
	        }
	        case 8:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Cocaina", getrank("cocaina", "Pу"), "Voltar", "");
	        }
	        case 9:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Crack", getrank("crack", "Pedras"), "Voltar", "");
	        }
	        case 10:
	        {
	            ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Contratos Cumpridos", getrank("contratos", "Contratos"), "Voltar", "");
	        }
		}
	    return 1;
	}
Reply
#7

isso nao e a funcao que eu pedi.
Reply
#8

Quote:
Originally Posted by PT
Посмотреть сообщение
isso nao e a funcao que eu pedi.
A getrank, sу estб no dialog...
Reply
#9

entao deve estar numa include
Reply
#10

Quote:
Originally Posted by PT
Посмотреть сообщение
entao deve estar numa include
Verdade, achei agora mesmo vlw !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)