03.09.2016, 09:53
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_WEAPONS) { if(response) // If they clicked 'Select' or double-clicked a weapon { // Give them the weapon switch(listitem) { case 0: cmd_sf(playerid, ""); case 1: cmd_lv(playerid, ""); case 2: cmd_ls(playerid, ""); case 3: cmd_sfa(playerid, ""); case 4: cmd_lva(playerid, ""); case 5: cmd_lsa(playerid, ""); case 6: cmd_aa(playerid, ""); case 7: cmd_beach(playerid, ""); case 8: cmd_drift1(playerid, ""); case 9: cmd_4dragons(playerid, ""); case 10: cmd_lvtune(playerid, ""); case 11: cmd_sftune(playerid, ""); case 12: cmd_mc(playerid, ""); case 13: cmd_arch(playerid, ""); case 14: cmd_loco(playerid, ""); case 15: cmd_doherty(playerid, ""); } } return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText. } return 0; // You MUST return 0 here! Just like OnPlayerCommandText. }
Код:
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3853) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3854) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3855) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3857) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3858) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3859) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3860) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3861) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3862) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3863) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3864) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3866) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3867) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3868) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 14 Errors.