[PEDIDO]Dialog,Por favor,LEIAM! -
roginho_97 - 14.08.2010
Olб, eu Queria UM DialogBox para meu Servidor, como Etapas do diбlogo seriam:
Код:
Vocк й Mulher Homem ? "Homem" "Mulher"
//----------------------Homem--------------------------------
if((strcmp("homem", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Homem")))
{
PlayerInfo[playerid][pSex] = 1;
SetPlayerSkin(playerid, 23);
PlayerInfo[playerid][pModel] = 23;
SendClientMessage(playerid, COLOR_YELLOW, "Ok, Voce e macho!.");
RegistrationStep[playerid] = 2;
return 0;
}
//===========================Mulher------------------------------------------------
else if((strcmp("mulher", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Mulher")))
{
PlayerInfo[playerid][pSex] = 2;
SetPlayerSkin(playerid, 226);
PlayerInfo[playerid][pModel] = 226;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Voce e mulher");
RegistrationStep[playerid] = 2;
return 0;
*A 2 Є Etapa sйria :
Код:
Em que Cidade deseja interagir? "Los Santos " San Fierro "
E ai:
if((strcmp("San Fierro", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("san fierro")))
{
PlayerInfo[playerid][pOrigem] = 1;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Vocк interagira em San Fierro.");
SendClientMessage(playerid, COLOR_YELLOW, "Poderб mudar a cidade na Prefeitura!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Obrigado pelas respostas !, Siga o tutorial");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("Los Santos", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("los santos")))
{
PlayerInfo[playerid][pOrigem] = 2;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк interagira em Los Santos.");
SendClientMessage(playerid, COLOR_YELLOW, "Podera mudar a cidade na Prefeitura!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Obrigado pelas respostas !, Siga o tutorial");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
Pela Mor de deus,me ajudem Plix!
Ja tebtei com geradores mas mer.cadoria nenhuma!
Re: [PEDIDO]Dialog,Por favor,LEIAM! -
sergio_xd - 14.08.2010
Para com o double post poha!!! Leia as regras do forum, e use o search tem isso ai nele.
Re: [PEDIDO]Dialog,Por favor,LEIAM! -
Ricop522 - 14.08.2010
Cria vocк mesmo, um sistema desse й simples e fбcil, olha o meu exemplo :
Код:
public SetPlayerSpawn...
ShowPlayerDialog(playerid, Nome do dialog, DIALOG_STYLE_LIST, "Escolha seu Sexo","Homem\nMulher ", "Selecionar", "Cancelar");
Dai vocк faz no public OnDialogResponse
if(dialogid == Nome do dialog)
{
if(response)
{
if(listitem == 0) // Aqui ele й homem, dai й sу vocк colocar as funзхes..
{
if(RegistrationStep[playerid] == 1) // Decifrei que o seu servidor й godfather, entгo edite para a etapa de registraзгo do seu mesmo.
{
PlayerInfo[playerid][pSex] = 1; // Sexo..
RegistrationStep[playerid] = 2; // Aqui ele vai para outra etapa, aonde vocк pode criar outro dialog, como abaixo
SetPlayerSkin(playerid, id..); //Sete a skin do cara, para uma masculina
ShowPlayerDialog(playerid, Outro dialog, DIALOG_STYLE_LIST, "Vocк nasceu aonde?","San Fierro\nLos Santos\nLas Venturas", "Selecionar", "Cancelar");
return 0;
}
}
// Faзa outro dialog para MULHER aqui.. olha sу o inicio..
if(listitem == 1) // Mulher
{
//Dados..
}
return 1;
}
Fim, simples nгo?
Re: [PEDIDO]Dialog,Por favor,LEIAM! -
roginho_97 - 14.08.2010
Vlw cara , ainda nao testei , Mas Uma Pergunta ,
O Nome coloco em formato de define?Ou so OnDialogResponse?
vlw
Re: [PEDIDO]Dialog,Por favor,LEIAM! -
Macintosh - 15.08.2010
Cria as public nй cara? Aff atй agora to com pena do coitado que pegou teu gm
se nгo era thug 2.6 xD
Re: [PEDIDO]Dialog,Por favor,LEIAM! -
roginho_97 - 15.08.2010
Thug 2.6?Ecaa
Re: [PEDIDO]Dialog,Por favor,LEIAM! -
Canabis - 15.08.2010
cara se vc pesquisar vc vai acha isso facil ^^
eu nem preciso ler o topico para ver que vc й preguiзoso!
link do topico de tutoriais
https://sampforum.blast.hk/showthread.php?tid=116484
link do Dialog's Sexo Pais Emprego
https://sampforum.blast.hk/showthread.php?tid=159525
Re: [PEDIDO]Dialog,Por favor,LEIAM! -
roginho_97 - 15.08.2010
kkk, sou pregicoso mesmo,mas ja vi este tuto e deu uns erro
To com outro problema agora!
Eu fiz umas faggios б colocar em meu Respawn Civil, mas quando entro,aparece::
Vocк nao й dos Ballas
Re: [PEDIDO]Dialog,Por favor,LEIAM! -
Ricop522 - 15.08.2010
Vocк tem que definir os IDS das motos, provavelmente, vocк estб com algum GM Thug Life, ou algo do tipo.
Procure a linha :
IsBallasCar, ou algo assim, e vai ter algo mais ou menos assim :
56 > 83
Retira esses nъmeros, coloca 0 > 0
Depois faz isso com o resto.
Re: [PEDIDO]Dialog,Por favor,LEIAM! -
roginho_97 - 15.08.2010
Esse tutorial deu esses erros:
Код:
C:\Documents and Settings\Familia\Desktop\Nao mover roger\Nova Pasta\Thug Life City RPG 2.3\gamemodes\Thug.pwn(12163) : error 010: invalid function or declaration
C:\Documents and Settings\Familia\Desktop\Nao mover roger\Nova Pasta\Thug Life City RPG 2.3\gamemodes\Thug.pwn(12171) : error 010: invalid function or declaration
C:\Documents and Settings\Familia\Desktop\Nao mover roger\Nova Pasta\Thug Life City RPG 2.3\gamemodes\Thug.pwn(12179) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Linhas:
Код:
12163- if(dialogid == DIALOG_SEXO && response == 0)
12171- if(dialogid == DIALOG_SEXO && response == 1)
12179- return 0;