problem with dialog skin - 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: problem with dialog skin (
/showthread.php?tid=651778)
problem with dialog skin -
wallen - 27.03.2018
PHP код:
if(dialogid == 20){
if(response)
{
new skinid, message[64];
skinid = strval(inputtext);
if(skinid < 0 || skinid > 299)
{
SendClientMessage(playerid, -1, "{ff8000}(INFO) Skin id may be between 0 and 299.");
}
else
{
skincmd[playerid] = true;
SetPlayerSkin(playerid, skinid);
format(message, sizeof(message), "{ff8000}(INFO) You have changed your skin id to %d.", skinid);
SendClientMessage(playerid, -1, message);
}
}
}
When i do /skin this dialog shows up, but when i input a skin id for example "23", it doesnt load neither shows any messages.
Re: problem with dialog skin -
Lokii - 27.03.2018
do you return 0 ondialogresponse if not change all of you'r scripts ondialogresponse return 0;
Re: problem with dialog skin -
wallen - 27.03.2018
The call back returns 1, so i returned 0 that skin dialog, same issue
Re: problem with dialog skin -
ivndosos - 27.03.2018
What about your filterscripts are they returned 0 aswell?
Re: problem with dialog skin -
wallen - 27.03.2018
I dont have any FS's
Re: problem with dialog skin -
Lokii - 27.03.2018
Quote:
Originally Posted by wallen
I dont have any FS's
|
maybe GM? return 1
Re: problem with dialog skin -
FuNkYTheGreat - 27.03.2018
Show us the code in which you are showing this dialog, I think that it's a problem in showing..
Re: problem with dialog skin -
jasperschellekens - 27.03.2018
Dont put return 0 on where you call the dialog.
return 0 must be like this:
PHP код:
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
{
if(dialogid==id)
{
if(response)
{
}
return 1;
}
return 0;
}