Well, this is embarassing.. - 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: Well, this is embarassing.. (
/showthread.php?tid=369428)
Well, this is embarassing.. -
2KY - 17.08.2012
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?
Re: Well, this is embarassing.. -
iGetty - 17.08.2012
That should work from what it seems?
Re: Well, this is embarassing.. -
2KY - 17.08.2012
Should work, but unfortunately it doesn't.
my.pwn(1170) : error 017: undefined symbol "cmd_selclass"
Re: Well, this is embarassing.. -
iGetty - 17.08.2012
Did you say that you get an error from it?
Edit: Talk on MSN, I'll help you there.
Re: Well, this is embarassing.. -
kbalor - 17.08.2012
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);