Problem with YCMDS
#1

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?
Reply
#2

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);
Reply
#3

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

Quote:

undefined symbol "ycmd_groupcreate"

Now I get this...
Reply
#5

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

Still same error
Reply
#7

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.
Reply
#8

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

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
Reply
#10

Still the same error, lol....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)