problem with dialog skin
#1

PHP код:
    if(dialogid == 20){
          if(
response)
            {
                        new 
skinidmessage[64];
                        
skinid strval(inputtext);
                        if(
skinid || skinid 299)
                        {
                            
SendClientMessage(playerid, -1"{ff8000}(INFO) Skin id may be between 0 and 299.");
                        }
                        else
                        {
                            
skincmd[playerid] = true;
                            
SetPlayerSkin(playeridskinid);
                            
format(messagesizeof(message), "{ff8000}(INFO) You have changed your skin id to %d."skinid);
                            
SendClientMessage(playerid, -1message);
            }
           }
    } 
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.
Reply
#2

do you return 0 ondialogresponse if not change all of you'r scripts ondialogresponse return 0;
Reply
#3

The call back returns 1, so i returned 0 that skin dialog, same issue
Reply
#4

What about your filterscripts are they returned 0 aswell?
Reply
#5

I dont have any FS's
Reply
#6

Quote:
Originally Posted by wallen
Посмотреть сообщение
I dont have any FS's
maybe GM? return 1
Reply
#7

Show us the code in which you are showing this dialog, I think that it's a problem in showing..
Reply
#8

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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)