I Need Help!
#1

Well Hello There!

i got a little bit of a problem

In my server when i type "/kill" or "/cmds" it works but it says "cmd doesn't exist etc.."

But.. the cmd works it just works and says it don't at the same time
Reply
#2

Code
Reply
#3

Код:
CMD:cmds(playerid,params[])
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Server Commands", "{00cc00}/HP,/Admins,/Dm1-4,{ff0000}/dmq,/afk,/back,{ff0000}/animlist,/updates,/s,{00cc00}/sync,/ls,/kill", "OK", "Exit");
}
Код:
CMD:kill(playerid, params[])
{
  SetPlayerHealth(playerid, -100);
}
Reply
#4

Please...

Quote:

- Provide Details - If you do not get help, please re-evaluate the explanation of the issue you provided, it may not be providing enough information for people to help you.
- Provide Code - People are not psychic, if there's an issue in your code they need to see that code.
-

Reply
#5

ahm.. i posted the things that make me that unknown cmd.. what else should i posst
Reply
#6

Quote:
Originally Posted by YanLanger
Посмотреть сообщение
ahm.. i posted the things that make me that unknown cmd.. what else should i posst
Sorry, i just late posing
Reply
#7

You should return at end of command preformed

pawn Код:
CMD:kill(playerid, params[])
{
    SetPlayerHealth(playerid, -100);
    return true;
}
Reply
#8

I'm also new in scripting, but try use this

pawn Код:
CMD:kill(playerid, params[])
{
  SetPlayerHealth(playerid, -100);
  return 1;
}
pawn Код:
CMD:cmds(playerid,params[])
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Server Commands", "{00cc00}/HP,/Admins,/Dm1-4,{ff0000}/dmq,/afk,/back,{ff0000}/animlist,/updates,/s,{00cc00}/sync,/ls,/kill", "OK", "Exit");
    return 1;
}
Reply
#9

OHHH I didn't notice lmfao thanks!!! rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)