SA-MP Forums Archive
I Need Help! - 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: I Need Help! (/showthread.php?tid=530970)



I Need Help! - YanLanger - 10.08.2014

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


Re: I Need Help! - Don_Cage - 10.08.2014

Code


Re: I Need Help! - YanLanger - 10.08.2014

Код:
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);
}



Re: I Need Help! - AzaMx - 10.08.2014

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.
-




Re: I Need Help! - YanLanger - 10.08.2014

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


Re: I Need Help! - AzaMx - 10.08.2014

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


Re: I Need Help! - Don_Cage - 10.08.2014

You should return at end of command preformed

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



Re: I Need Help! - AzaMx - 10.08.2014

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;
}



Re: I Need Help! - YanLanger - 10.08.2014

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