[ajuda]Registro em Dialog dando erro
#1

bom galera eu estou fasendo o registro do meu gm em dialog entгo agora tenho 3 probleminhas vejam abaixo.

Код:
C:\Documents and Settings\Administrador\Meus documentos\jonas\Brasil Play Matrix Ownando\gamemodes\bpm.pwn(2913) : error 010: invalid function or declaration
C:\Documents and Settings\Administrador\Meus documentos\jonas\Brasil Play Matrix Ownando\gamemodes\bpm.pwn(2915) : error 010: invalid function or declaration
C:\Documents and Settings\Administrador\Meus documentos\jonas\Brasil Play Matrix Ownando\gamemodes\bpm.pwn(2921) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
pawn Код:
if(dialogid == 9)
    {
        if(response == 0)
        {
              PlayerInfo[playerid][pSex] = 1;
              SetPlayerSkin(playerid, 23);
              ShowPlayerDialog(playerid, 46, DIALOG_STYLE_MSGBOX, "Sexo:", "Vocк й um Homem", "OK","Sair");
        }
        if(response == 1)
        {
              PlayerInfo[playerid][pSex] = 2;
              SetPlayerSkin(playerid, 56);
              ShowPlayerDialog(playerid, 45, DIALOG_STYLE_MSGBOX, "Sexo:", "Vocк й uma Mulher", "OK","Sair");
        }
linhas

Код:
	if(dialogid == 9)
Код:
		if(response == 0)
Код:
		if(response == 1)
Reply
#2

pega esse de um gm que tenho aqui



Код:
if(dialogid == 2)// Dialogo de Registro
    {
        if(response == 0)
        {
            //GetPlayerName(playerid,plname,sizeof(plname));
            //format(string,sizeof(string),"%s Seja Bem Vindo ao\nLaw and Crime RPG Digite sua Senha para Registrar!",plname);
            //ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Registrar", string, "Registrar", "Sair");
            SendClientMessage(playerid, COLOR_GRAD2, "Vocк pode registrar pelo o /registrar");
            return 1;
        }
        if(response >= 1)
        {
            if(strlen(inputtext) == 0)
            {
                GetPlayerName(playerid,plname,sizeof(plname));
                format(string,sizeof(string),"%s Seja Bem Vindo ao\nLaw and Crime RPG Digite sua Senha para Registrar!",plname);
                ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Registrar", string, "Registrar", "Sair");
                return 1;
            }
            if(strval(inputtext) > 0)
            {
                format(string,sizeof(string),"/registrar %d",strval(inputtext));
                OnPlayerCommandText(playerid,string);
                return 1;
            }
            format(string,sizeof(string),"/registrar %s",inputtext);
            OnPlayerCommandText(playerid,string);
            return 1;
        }
        return 1;
       }
    if(dialogid == 3)// Dialogo da Escolha de Sexo
    {
        if(response == 0)
         {
             if(PlayerInfo[playerid][pTut] >= 1) { SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк e Mulher."); PlayerInfo[playerid][pSex] = 2; return 1; }
             OnPlayerText(playerid,"mulher");
             return 1;
        }
        if(response == 1)
         {
             if(PlayerInfo[playerid][pTut] >= 1) { SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк e Homem."); PlayerInfo[playerid][pSex] = 1; return 1; }
             OnPlayerText(playerid,"homem");
             return 1;
        }
        if(response > 1)
        {
            format(string,sizeof(string),"~b~       Seja Bem Vindo~n~~w~Agora voce tem que preencher~n~Algumas informacoes necessarias~n~Para completar seu Cadastro.~n~E depois acompanhara,~n~O Tutorial Esplicando como~n~Ser um bom Jogador.");
            TextDrawSetString(TutuText[playerid], string);
            TextDrawHideForPlayer(playerid, TutuBox[playerid]);
            TextDrawHideForPlayer(playerid, TutuText[playerid]);
            TextDrawShowForPlayer(playerid, TutuBox[playerid]);
            TextDrawShowForPlayer(playerid, TutuText[playerid]);
            ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Law and Crime RPG", "Escolha Seu Sexo Por Favor.", "Masculino", "Femino");
            return 1;
        }
        return 1;
    }
    if(dialogid == 4)// Dialogo da Escolha de Idade
    {
        if(response == 0)
         {
            OnPlayerText(playerid,"28/02/1996");
             return 1;
        }
        if(response == 1)
         {
             OnPlayerText(playerid,"Law and Crime RPG");
             return 1;
        }
        return 1;
    }
    if(dialogid == 5)// Dialogo da Escolha da Cidade
    {
        if(response == 0)
         {
            OnPlayerText(playerid,"Law and Crime RPG");
            return 1;
        }
        if(response == 1)
         {
             if(listitem == 0)
            {
                 OnPlayerText(playerid,"ls");
                 return 1;
             }
             if(listitem == 1)
            {
                 OnPlayerText(playerid,"lv");
                 return 1;
             }
             if(listitem == 2)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Cidade Bloqueada no Momento!");
                ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Law and Crime RPG", "Los Santos\nLas Venturas\nSan Fierro", "Confirmar", "Cancelar");
                 //OnPlayerText(playerid,"sf");
                 return 1;
             }
        }
        return 1;
    }
Reply
#3

Quote:
Originally Posted by Rodolfo_Halls
Посмотреть сообщение
pega esse de um gm que tenho aqui



Код:
if(dialogid == 2)// Dialogo de Registro
    {
        if(response == 0)
        {
            //GetPlayerName(playerid,plname,sizeof(plname));
            //format(string,sizeof(string),"%s Seja Bem Vindo ao\nLaw and Crime RPG Digite sua Senha para Registrar!",plname);
            //ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Registrar", string, "Registrar", "Sair");
            SendClientMessage(playerid, COLOR_GRAD2, "Vocк pode registrar pelo o /registrar");
            return 1;
        }
        if(response >= 1)
        {
            if(strlen(inputtext) == 0)
            {
                GetPlayerName(playerid,plname,sizeof(plname));
                format(string,sizeof(string),"%s Seja Bem Vindo ao\nLaw and Crime RPG Digite sua Senha para Registrar!",plname);
                ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Registrar", string, "Registrar", "Sair");
                return 1;
            }
            if(strval(inputtext) > 0)
            {
                format(string,sizeof(string),"/registrar %d",strval(inputtext));
                OnPlayerCommandText(playerid,string);
                return 1;
            }
            format(string,sizeof(string),"/registrar %s",inputtext);
            OnPlayerCommandText(playerid,string);
            return 1;
        }
        return 1;
       }
    if(dialogid == 3)// Dialogo da Escolha de Sexo
    {
        if(response == 0)
         {
             if(PlayerInfo[playerid][pTut] >= 1) { SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк e Mulher."); PlayerInfo[playerid][pSex] = 2; return 1; }
             OnPlayerText(playerid,"mulher");
             return 1;
        }
        if(response == 1)
         {
             if(PlayerInfo[playerid][pTut] >= 1) { SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк e Homem."); PlayerInfo[playerid][pSex] = 1; return 1; }
             OnPlayerText(playerid,"homem");
             return 1;
        }
        if(response > 1)
        {
            format(string,sizeof(string),"~b~       Seja Bem Vindo~n~~w~Agora voce tem que preencher~n~Algumas informacoes necessarias~n~Para completar seu Cadastro.~n~E depois acompanhara,~n~O Tutorial Esplicando como~n~Ser um bom Jogador.");
            TextDrawSetString(TutuText[playerid], string);
            TextDrawHideForPlayer(playerid, TutuBox[playerid]);
            TextDrawHideForPlayer(playerid, TutuText[playerid]);
            TextDrawShowForPlayer(playerid, TutuBox[playerid]);
            TextDrawShowForPlayer(playerid, TutuText[playerid]);
            ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Law and Crime RPG", "Escolha Seu Sexo Por Favor.", "Masculino", "Femino");
            return 1;
        }
        return 1;
    }
    if(dialogid == 4)// Dialogo da Escolha de Idade
    {
        if(response == 0)
         {
            OnPlayerText(playerid,"28/02/1996");
             return 1;
        }
        if(response == 1)
         {
             OnPlayerText(playerid,"Law and Crime RPG");
             return 1;
        }
        return 1;
    }
    if(dialogid == 5)// Dialogo da Escolha da Cidade
    {
        if(response == 0)
         {
            OnPlayerText(playerid,"Law and Crime RPG");
            return 1;
        }
        if(response == 1)
         {
             if(listitem == 0)
            {
                 OnPlayerText(playerid,"ls");
                 return 1;
             }
             if(listitem == 1)
            {
                 OnPlayerText(playerid,"lv");
                 return 1;
             }
             if(listitem == 2)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Cidade Bloqueada no Momento!");
                ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Law and Crime RPG", "Los Santos\nLas Venturas\nSan Fierro", "Confirmar", "Cancelar");
                 //OnPlayerText(playerid,"sf");
                 return 1;
             }
        }
        return 1;
    }
C ta loko mermao?Se o poderoso Chefao te pega akii tu ta fuuu
Reply
#4

isso e apenas um coodigo nгo um gm
Reply
#5

iso funзгo explo codigos sua lingua xD
Reply
#6

Bom, ja que й assim tudo bem ^^.

Mesmo assim nao me arriscaria tanto^^.

Po Rodolfo, to vendo tu akii no forum, mу funзгo, parabens, para quem atй ontem(modo de falar)pedia ajuda pra colocar infoOrg...Parabens
Reply
#7

vlw + nгo conseguir por infoorg ainda
Reply
#8

problema resolvido consegui arumar.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)