Help Dialog :(
#1

I maked this command : if(strcmp(cmdtext, "/help", true) == 0)
{
new BigString15[1900];
strcat(BigString15, ""R"--------->Comenzi(/cmds)<---------\n", 1900 );
strcat(BigString15, ""L"--------->Creatori(/credits)<---------!\n", 1900 );
strcat(BigString15, ""V"--------->Reguli(/rules)<---------\n", 1900 );
strcat(BigString15, ""O"--------->Teleporturi(/teles)<---------\n", 1900 );
ShowPlayerDialog(playerid,222,DIALOG_STYLE_LIST, ""W"\t\t\t^^^Help^^^",BigString15,"Next", "Close");
return 1;
}

But I want : when a player click "comenzi(/cmds)" the dialog with cmds appear
Sorry for my english :-"
Reply
#2

https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply
#3

You can improve that a LOT.

pawn Код:
if(strcmp(cmdtext, "/help", true) == 0)
{
    new BigString15[] =
        ""R"--------->Comenzi(/cmds)<---------\n\
        "
L"--------->Creatori(/credits)<---------!\n\
        "
V"--------->Reguli(/rules)<---------\n\
        "
O"--------->Teleporturi(/teles)<---------"
    ;
   
    ShowPlayerDialog(playerid,222,DIALOG_STYLE_LIST, ""W"\t\t\t^^^Help^^^", BigString15,"Next", "Close");
    return 1;
}
Reply
#4

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
Ok , thank's but what I need to put at " }
// Add the rest of your dialogs here

}
return 0; // If you put return 1 here the callback will not continue to be called in other scripts (filterscripts, etc.).
}"
Add the rest of your dialogs here ? O_o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)