SA-MP Forums Archive
[ZCMD] Need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [ZCMD] Need help (/showthread.php?tid=345927)



[ZCMD] Need help - Gangs_Rocks - 26.05.2012

pawn Код:
else if(dialogid == LosSantosTeleportsDialog)
    {
        if(!response) return ShowPlayerDialog(playerid,TeleportDialog, DIALOG_STYLE_LIST,"Teleports","Los Santos\r\nSan Fierro\r\nLas Venturas\r\nBone County\r\nStunts\r\nDeathmatch arena's\r\nRace Tracks\r\nTuning Shops","Close", "Choose");
        switch(listitem)
        {
            case 0: return cmd_grovestreet(playerid);
            case 1: return cmd_mullholand(playerid);
            case 2: return cmd_unitystation(playerid);
            case 3: return cmd_lsairport(playerid);
        }
    }
Quote:

C:\Users\ADMIN\Desktop\Gangwars\gamemodes\US.pwn(5 60) : warning 202: number of arguments does not match definition
C:\Users\ADMIN\Desktop\Gangwars\gamemodes\US.pwn(5 61) : warning 202: number of arguments does not match definition
C:\Users\ADMIN\Desktop\Gangwars\gamemodes\US.pwn(5 62) : warning 202: number of arguments does not match definition
C:\Users\ADMIN\Desktop\Gangwars\gamemodes\US.pwn(5 63) : warning 202: number of arguments does not match definition

on adding ,params after playerid:

Quote:

undefined symbol 'params'

Need to fix these, help will be appreciated.


Re: [ZCMD] Need help - Moh_ - 26.05.2012

pawn Код:
else if(dialogid == LosSantosTeleportsDialog)
    {
        if(!response) return ShowPlayerDialog(playerid,TeleportDialog, DIALOG_STYLE_LIST,"Teleports","Los Santos\r\nSan Fierro\r\nLas Venturas\r\nBone County\r\nStunts\r\nDeathmatch arena's\r\nRace Tracks\r\nTuning Shops","Close", "Choose");
        switch(listitem)
        {
            case 0: return cmd_grovestreet(playerid, "");
            case 1: return cmd_mullholand(playerid, "");
            case 2: return cmd_unitystation(playerid, "");
            case 3: return cmd_lsairport(playerid, "");
        }
    }