Error on this code? Dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error on this code? Dialog (
/showthread.php?tid=640679)
Error on this code? Dialog -
Dello - 05.09.2017
Code:
Код:
case dEAccesorios_0:
{
if(!response) return 0;
if(!InfoJugador[playerid][jAttachModel][listitem]) return Error(playerid,"ЎNo tienes nada en ese slot!");
EditarAccesorio(playerid,listitem);
SetPVarInt(playerid,"OBJ_EDITAR",listitem);
return 1;
}
Code of: "EditarAccesorio"
Код:
stock EditarAccesorio(playerid,id_accesorio)
{
new Str[140];
A_Format(Str,"Editar personalizadamente\nElejir parte "#CINFO"(%s)\nAjustar posiciуn\nOcultar/Mostrar\nEliminar accesorio",AttachmentBones[InfoJugador[playerid][jAttachBone][id_accesorio]-1]);
Dialog(playerid,dEAccesorios_1,DIALOG_STYLE_LIST,""#CAZUL2"Editar accesorio",Str,"Aceptar","Cancelar");
return 1;
}
My script show the dialog "dEAccesorio_0" but when i choice one of the list, dont show me anything.
((Pawno dont show me a error.))
Respuesta: Error on this code? Dialog -
Dello - 05.09.2017
Up...
Respuesta: Error on this code? Dialog -
Dello - 06.09.2017
......
Re: Error on this code? Dialog -
JasonRiggs - 06.09.2017
Go Under OnPlayerDialogResponse and add the response you want for this dialog above..