[Duda]Porque Esto No anda? - 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: [Duda]Porque Esto No anda? (
/showthread.php?tid=444282)
[Duda]Porque Esto No anda? -
matias770 - 16.06.2013
Hola, Hoy estaba Creando Un Sistema De Concesionario Para RP, Y yo antes Habia Creado un sistema de tarjeta de credito con un PIN Aleatoreo que se guarda y bueno sirve, Pero hoy al tratar de ponerselo al Sistema De Concesionario si el Usuario Ponia El Pin Incorrecto Igual Le mostraba las demas opciones aca esta el code
Код:
case DIALOG_AUTOS:
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, DIALOG_SLOTS_AUTOS, DIALOG_STYLE_LIST, "Elije el slot del coche a comprar", "Slot - 1\nSlot - 2\nSlot - 3", "Aceptar", "Cerrar");
}
case 1:
{
ShowPlayerDialog(playerid, DIALOG_SLOTS_AUTOS1, DIALOG_STYLE_INPUT, "Tarjeta De Credito", "Escribe El numero de Tu tarjeta", "Aceptar", "Cancelar");
}
}
}
}
Код:
case DIALOG_SLOTS_AUTOS1:
{
if(response)
{
if(strval(inputtext) == PlayerInfo[playerid][pTarjetaCredito]) return Message(playerid, COLOR_GRAD2, "ЎClave Incorrecta!");
{
ShowPlayerDialog(playerid, DIALOG_SLOTS_AUTOS, DIALOG_STYLE_LIST, "Elije El Slot de tu nuevo auto", "Slot 1\nSlot 2\nSlot 3", "ok", "cerrar");
}
}
}
Que Es lo que Sucede?, Porque no anda?, Ya he ocupado antes el strval Para el mismo sistema pero en los 24-7 y tiendas, pero aca no funciona, que Es?
Respuesta: [Duda]Porque Esto No anda? -
OTACON - 16.06.2013
pawn Код:
case DIALOG_SLOTS_AUTOS1: {
if(response) {
if(strcmp(PlayerInfo[playerid][pTarjetaCredito], strval(inputtext), true, 10) == 0) {
Message(playerid, COLOR_GRAD2, "ЎClave correcta!");
}
else {
Message(playerid, COLOR_GRAD2, "ЎClave Incorrecta!");
ShowPlayerDialog(playerid, DIALOG_SLOTS_AUTOS, DIALOG_STYLE_LIST, "Elije El Slot de tu nuevo auto", "Slot 1\nSlot 2\nSlot 3", "ok", "cerrar");
}
}
}