24.01.2014, 19:39
Galera na PPC_Trucking o /cmds q agora estб /comandos eles aparece em uma box preta que й a DIALOG_STYLE_LIST, porйm quero mudar para a DIALOG_STYLE_MSGBOX, sу que o cуdigo nгo aparece nada escrito DIALOG_STYLE_LIST para que eu possa modificar a DIALOG, oque eu faзo ? aqui estб a parte que digo.
Код:
Dialog_PlayerCommands(playerid, response, listitem) { // Just close the dialog if the player clicked "Cancel" if(!response) { // Reset the FirstCommand (so the list won't start at an unexpected location in the list, but back at the start of the list) APlayerData[playerid][DialogFirstItem] = 0; return 1; // Exit the function } // Process the selected listitem switch (listitem) { case 11: // Player chooses "Proximo ..." { // Add 5 to the FirstCommand, so the list will start further down the array (will show the next 5 commands) APlayerData[playerid][DialogFirstItem] = APlayerData[playerid][DialogFirstItem] + 5; // Create a new list of commands and show the dialog CommandList_Create(playerid); } } return 1; }