03.09.2016, 09:43
Код:
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. }
PHP код:
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3853) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3854) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3855) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3856) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3857) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3858) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3859) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3860) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3861) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3862) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3863) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3864) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3865) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3866) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3867) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3868) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
16 Warnings.