SA-MP Forums Archive
Problem with YCMDS - 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: Problem with YCMDS (/showthread.php?tid=468063)



Problem with YCMDS - -Shifty- - 06.10.2013

Hello Everyone,

Today I tried to change my gamemode commands from ZCMD to YCMD but on a strange way a couple of commands are bugging, I'll post one of them because they're giving the same error, guess If I have for one the solution I'll have them all fixed...


Quote:

error 017: undefined symbol "cmd_groupcreate"

The line:
PHP код:
YCMD:grc(playerid,params[], help)
    return 
cmd_groupcreate(playeridparams); 
Links trough:
PHP код:
YCMD:groupcreate(playerid,params[], help)
{
      if(
group[playerid][gid] != -1) return SendClientMessage(playerid0xFF0000AA"* Leave your group with /groupleave before creating a new one!");
      if(
strlen(params) > 49 || strlen(params) < 3) return SendClientMessage(playerid0xFF7300AA"* Usage: /groupcreate (Group name 3-50 characters)!");
    if(
IsGroupTaken(params)) return SendClientMessage(playerid0xFF0000AA"* Group name is already in use, please use another name!");
    
CreateGroup(paramsplayerid);
      return 
1;

Does anyone knows what the problem is?


Re: Problem with YCMDS - Danialdano - 06.10.2013

Change This
pawn Код:
YCMD:grc(playerid,params[], help)
    return cmd_groupcreate(playerid, params);
To



This
pawn Код:
YCMD:grc(playerid,params[], help)
    return ycmd_groupcreate(playerid, params);



Re: Problem with YCMDS - Danialdano - 06.10.2013

If i'm wrong change it to
pawn Код:
YCMD:grc(playerid,params[], help)
    return cmd_groupcreate(playerid, params, help);



Re: Problem with YCMDS - -Shifty- - 06.10.2013

Quote:

undefined symbol "ycmd_groupcreate"

Now I get this...


Re: Problem with YCMDS - Danialdano - 06.10.2013

Do this
pawn Код:
YCMD:grc(playerid,params[], help)
    return cmd_groupcreate(playerid, params, help);



Re: Problem with YCMDS - -Shifty- - 06.10.2013

Still same error


Re: Problem with YCMDS - Konstantinos - 06.10.2013

pawn Код:
// In OnGameModeInit/OnFilterScriptInit (depending on what you're using it for)
Command_AddAltNamed("groupcreate", "grc");
@Danialdano: Okay, I understand you want to help but atleast take a loot at y_commands' thread about renaming the commands. It's not the same way as ZCMD like you're trying to do.


Re: Problem with YCMDS - Danialdano - 06.10.2013

Alright
pawn Код:
YCMD:grc(playerid,params[], help)
    return cmd_groupcreate(playerid, params[], help);
Try thiss


Re: Problem with YCMDS - Dragonsaurus - 06.10.2013

pawn Код:
public OnFilterScriptInit()
{
    Command_AddAltNamed("groupcreate", "grc");
    return 1;
}
Use OnGameModeInit if you are using this at your gamemode.

Edit: Wow, I lost connection but the message was sent 0.0


Re: Problem with YCMDS - -Shifty- - 06.10.2013

Still the same error, lol....