[AJUDA] Dialog de Sexo
#1

Bom toda veiz que compilo da esses erros tudo da mesma coisa if(dialogid == DIALOG_SEXO && response == 0)

C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50521) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50529) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50537) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50545) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50553) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

Coloque o cуdigo para nуs vermos, assim podemos lhe ajudar, ninguйm aqui й vidente.
Reply
#3

Quote:
Originally Posted by victorxd12
Bom toda veiz que compilo da esses erros tudo da mesma coisa if(dialogid == DIALOG_SEXO && response == 0)

C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50521) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50529) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50537) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50545) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50553) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Код:
#define DIALOG_SEXO 4//topo gm (pode colocar outro numero, que nao seja o mesmo de outros dialogs)
linha do erro:
Код:
if(dialogid == DIALOG_SEXO && response)
Reply
#4

Код:
//-Dialog
#define DIALOG_SEXO 2
#define DIALOG_PAIS 1
Код:
//Dialog Sexo
      gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
			TogglePlayerControllable(playerid, 0);
			SetPlayerVirtualWorld(playerid,playerid+1);
			RegistrationStep[playerid] = 1;
      ShowPlayerDialog(playerid,DIALOG_SEXO,DIALOG_STYLE_MSGBOX,"Registro"," - Seja bem vindo ao "Nome do Seu Serve aki" \n - Primeiro escolha seu sexo \n\n - Voce й Homem ou Mulher?\n\n","Homem","Mulher");
			ClearChatbox(playerid, 2);
Код:
//Selecionar Sexo Por DiaLog
  if(dialogid == DIALOG_SEXO && response == 0)
  {
//    SendClientMessage(playerid,COLOR_DBLUE,"Ok,Voce й Mulher.");
    PlayerInfo[playerid][pSex] = 2;
    SetPlayerSkin(playerid, 13);
    PlayerInfo[playerid][pModel] = 193;
    RegistrationStep[playerid] = 2;
    ShowPlayerDialog(playerid,DIALOG_PAIS,DIALOG_STYLE_MSGBOX,"Registro"," - Ok,Voce й Mulher. \n - Agora escolha seu Pais \n\n - Voce й Do Brasil ou Outros?\n\n","Brasil","Outros");
}
  if(dialogid == DIALOG_SEXO && response == 1)
{
//    SendClientMessage(playerid,0xFF0000AA,"Ok,Voce й Homem.");
    PlayerInfo[playerid][pSex] = 1;
    SetPlayerSkin(playerid, 0);
    PlayerInfo[playerid][pModel] = 23;
    RegistrationStep[playerid] = 2;
    ShowPlayerDialog(playerid,DIALOG_PAIS,DIALOG_STYLE_MSGBOX,"Registro"," - Ok,Voce й Homem. \n - Agora escolha seu Pais \n\n - Voce й Do Brasil ou Outros?\n\n","Brasil","Outros");
//-------------------------------------------------------------------------------------------------------------------------------------
}//Selecionar pais Por DiaLog
  if(dialogid == DIALOG_PAIS && response == 0)
{
      PlayerInfo[playerid][pOrigem] = 1;
      SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Voce e De Outros.");
      SendClientMessage(playerid, COLOR_LIGHTRED, "Obrigado pelas respostas !, Siga o tutorial");
      RegistrationStep[playerid] = 0;
      TutTime[playerid] = 1;
}
  if(dialogid == DIALOG_PAIS && response == 1)
{
      PlayerInfo[playerid][pOrigem] = 1;
      SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Voce e De Brasil.");
      SendClientMessage(playerid, COLOR_LIGHTRED, "Obrigado pelas respostas !, Siga o tutorial");
      RegistrationStep[playerid] = 0;
      TutTime[playerid] = 1;
    }
return 0;
}
Reply
#5

Quote:
Originally Posted by [BEP
GeoPilot ]
Quote:
Originally Posted by victorxd12
Bom toda veiz que compilo da esses erros tudo da mesma coisa if(dialogid == DIALOG_SEXO && response == 0)

C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50521) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50529) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50537) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50545) : error 010: invalid function or declaration
C:\Documents and Settings\Viitor\Desktop\SAMP RP\gamemodes\BPX3.pwn(50553) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Код:
#define DIALOG_SEXO 4//topo gm (pode colocar outro numero, que nao seja o mesmo de outros dialogs)
linha do erro:
Код:
if(dialogid == DIALOG_SEXO && response)
nao funfou tio .
Reply
#6

Help Please .
Reply
#7

Quote:
Originally Posted by victorxd12
Help Please .
bom vo postar aki pq fui eu mesno que criei esse dialog =)
No topo do GM
pawn Код:
#define DIALOG_SEXO   2
em
public SetPlayerSpawn(playerid)
pawn Код:
ShowPlayerDialog(playerid,DIALOG_SEXO,DIALOG_STYLE_MSGBOX,"BRC - Registro"," - Seja bem vindo ao BRC \n - Primeiro escolha seu sexo \n\n - Voce й Homem ou Mulher?\n\n","Homem","Mulher");
Em
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
pawn Код:
}//Selecionar Sexo Por DiaLog
  if(dialogid == DIALOG_SEXO && response == 0)
  {
//    SendClientMessage(playerid,COLOR_DBLUE,"Ok,Voce й Mulher.");
    PlayerInfo[playerid][pSex] = 2;
    SetPlayerSkin(playerid, 13);
    PlayerInfo[playerid][pModel] = 193;
    RegistrationStep[playerid] = 2;
    ShowPlayerDialog(playerid,DIALOG_PAIS,DIALOG_STYLE_MSGBOX,"BrC - Registro"," - Ok,Voce й Mulher. \n - Agora escolha seu Pais \n\n - Voce й Do Brasil ou Outros?\n\n","Brasil","Outros");
}
  if(dialogid == DIALOG_SEXO && response == 1)
{
//    SendClientMessage(playerid,0xFF0000AA,"Ok,Voce й Homem.");
    PlayerInfo[playerid][pSex] = 1;
    SetPlayerSkin(playerid, 0);
    PlayerInfo[playerid][pModel] = 23;
    RegistrationStep[playerid] = 2;
    ShowPlayerDialog(playerid,DIALOG_PAIS,DIALOG_STYLE_MSGBOX,"BrC - Registro"," - Ok,Voce й Homem. \n - Agora escolha seu Pais \n\n - Voce й Do Brasil ou Outros?\n\n","Brasil","Outros");
eu tb Criei o dialog de pais e outro das profissгo
acho que eu vo postar aki no forum
Reply
#8

Nгo respeitas as regras, locked!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)