26.03.2010, 17:28
Hey!
When I do /jobs, the menu pops up well and things work great, UNTIL
When I select any of those "Police, Pilot, Taxi" -> NOTHING pops up, what should happen is that SendClientMessage sends the message for that selection.
It Compiles without errors or warnings.
Anyone knows whats wrong?
Regards,
Assyria
Код:
#include <a_samp> #if defined FILTERSCRIPT #else public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/Jobs", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 157, DIALOG_STYLE_LIST, "Job information", "Police \nPilot \nTaxi", "Select", "Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 157 && response) { switch(listitem) { case 0: { SendClientMessageToAll(0xAA0000AA,"Type /Police to see information about police job!"); } case 1: { SendClientMessage(playerid,0xAA0000AA,"Type /Pilot to see information about pilot job!"); } case 2: { SendClientMessage(playerid,0xAA0000AA,"Type /Taxi to see information about taxi job!"); } } } return 1; } #endif
When I select any of those "Police, Pilot, Taxi" -> NOTHING pops up, what should happen is that SendClientMessage sends the message for that selection.
It Compiles without errors or warnings.
Anyone knows whats wrong?
Regards,
Assyria