Small question /cmds = /commands - 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: Small question /cmds = /commands (
/showthread.php?tid=412109)
Small question /cmds = /commands -
se7evolution - 31.01.2013
This is my script:
pawn Код:
CMD:cmds(playerid,params[])
{
new stringtwo[1024];
strcat(stringtwo,"/cmds - Show you a dialog with all the commands\n/kill - kills your character.\n",sizeof(stringtwo));
strcat(stringtwo,"/credits - Shows you a dialog with the credits from SERVER\n/adminlist - Shows you a dialog with all the admins\n",sizeof(stringtwo));
strcat(stringtwo,"/heal - Heals player for $400\n/myid - Will show you your current ID\n* se7evolution <text> - Used to tell players you're doing an action\n",sizeof(stringtwo));
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"Server Commands",stringtwo,"Close","");
return 1;
}
Currently the commands is /cmds how can make it so the player can use it as cmds or commands?
Friendly regards,
Paco
Re: Small question /cmds = /commands -
tyler12 - 31.01.2013
CMD:commands(playerid,params[]){
{
return cmd_cmds(playerid,params);
}
Re: Small question /cmds = /commands -
se7evolution - 31.01.2013
Quote:
Originally Posted by tyler12
CMD:commands(playerid,params[]){
{
return cmd_cmds(playerid,params);
}
|
what do you mean? Could you edit if from my script?
Re: Small question /cmds = /commands -
tyler12 - 31.01.2013
Just add that into your script..
Re: Small question /cmds = /commands -
LarzI - 31.01.2013
https://sampforum.blast.hk/showthread.php?tid=91354
Quote:
Originally Posted by Zeex
How to make two different commands doing the same thing
For example, you have /something cmd:
pawn Код:
COMMAND:something(playerid, params[]) { // some stuff here return 1; }
and you want to create another one such as /another that does what /something does. The simpliest way of doing that is:
pawn Код:
COMMAND:another(playerid, params[]) { return cmd_something(playerid, params); }
|
Re: Small question /cmds = /commands -
se7evolution - 31.01.2013
C:\Users\sduser\Desktop\My Own Server\gamemodes\Server.pwn(423) : error 017: undefined symbol "cmd_cmds"
C:\Users\sduser\Desktop\My Own Server\gamemodes\Server.pwn(424) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase