SA-MP Forums Archive
Ayuda, registro en dialog - 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: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Ayuda, registro en dialog (/showthread.php?tid=356378)



[Ayuda] Registro de Datos en dialog - GhOzT - 03.07.2012

Hola, quiero ver si me dicen como puedo poner un sistema de registro en dialog, pero registro por ejemplo: Edad, Origen, Caminar. Se los agradezco


Respuesta: Ayuda, registro en dialog - Bu11Sh0t - 03.07.2012

https://sampforum.blast.hk/showthread.php?tid=273088


Re: Respuesta: Ayuda, registro en dialog - GhOzT - 03.07.2012

Quote:
Originally Posted by Bu11Sh0t
Посмотреть сообщение
Pero registro de edad, sexo, esque tengo un problema que no me guarda la edad cuando se escribe en el dialog
Quote:

if(dialogid == DATOS)//Especificamos el id del dialogo.
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_RED2, "Masculino");
SetPlayerSkin(playerid, 26);
PlayerInfo[playerid][pChar] = 26;
Freezed[playerid] = 1;
ShowPlayerDialog(playerid, DATOS1, DIALOG_STYLE_INPUT, "Edad", "Escribe Tu Edad", "Aceptar", "");
}
if(listitem == 1)
{
SendClientMessage(playerid, COLOR_RED2, "Femenino");
SetPlayerSkin(playerid, 193);
PlayerInfo[playerid][pChar] = 193;
Freezed[playerid] = 1;
ShowPlayerDialog(playerid, DATOS1, DIALOG_STYLE_INPUT, "Edad", "Escribe Tu Edad", "Aceptar", "");
}
return 1;
}
if(dialogid == DATOS1)
{
if(strlen(inputtext))
{
new tmp[256];
new idx;
tmp = strtok(inputtext, idx);
if(!strlen(tmp))
format(string, sizeof(string), "Tu Edad Es %d", pAge);
SendClientMessage(playerid, COLOR_WHITE, string);
ShowPlayerDialog(playerid,SIST_CAMINAR,DIALOG_STYL E_LIST,"Elije Tu forma de Caminar","Caminar Normal\nCaminar Pandillero\nCaminar Gatillero\nCaminar Criminal\nCaminar viejo\nCaminar Viejo Gordo\nCaminar Femenino\nCaminar Gay\nCaminar Borracho","Aceptar","Cancelar");
}
return 1;
}




Respuesta: Re: Respuesta: Ayuda, registro en dialog - GhOzT - 03.07.2012

Ya lo solucione, gracias Bu11Sh0t por aportar