Well, this is embarassing..
#1

I completely forgot how to do shortcut commands. I've ******d it a couple times and got the same result, but if I try using the result, I get an error that "cmd" is not defined.

pawn Код:
CMD:selclass( playerid, params[] )
{
    SelectTextDraw( playerid, Colour_Red );
    ShowClassSelection( playerid );
    plWaitingOnClassChange [ playerid ] = true;
    return true;
}
CMD:c( playerid, params[] )
{
    return cmd_selclass(playerid, params);
}
Is what I'm trying to do right now. /selclass works, I'm trying to make /c a shortcut to /selclass. What am I doing wrong boys and girls?
Reply
#2

That should work from what it seems?
Reply
#3

Should work, but unfortunately it doesn't.

my.pwn(1170) : error 017: undefined symbol "cmd_selclass"
Reply
#4

Did you say that you get an error from it?

Edit: Talk on MSN, I'll help you there.
Reply
#5

Quote:
Originally Posted by 2KY
Посмотреть сообщение
I completely forgot how to do shortcut commands. I've ******d it a couple times and got the same result, but if I try using the result, I get an error that "cmd" is not defined.

pawn Код:
CMD:selclass( playerid, params[] )
{
    SelectTextDraw( playerid, Colour_Red );
    ShowClassSelection( playerid );
    plWaitingOnClassChange [ playerid ] = true;
    return true;
}
CMD:c( playerid, params[] )
{
    return cmd_selclass(playerid, params);
}
Is what I'm trying to do right now. /selclass works, I'm trying to make /c a shortcut to /selclass. What am I doing wrong boys and girls?
pawn Код:
CMD:c(playerid, params[]) return cmd_selclass(playerid, params);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)