Small question /cmds = /commands
#1

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

CMD:commands(playerid,params[]){
{
return cmd_cmds(playerid,params);
}
Reply
#3

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

Just add that into your script..
Reply
#5

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)