Ladmin Problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Ladmin Problem (
/showthread.php?tid=232314)
Ladmin Problem -
Rock18 - 27.02.2011
Hey , i use Lethal Admin System (Ladmin) . I've tryed to put new commands in it but the commands won't work .
I've tryed with dcmd , strcmp and zcmd... nothing , don't work.
What could be the problem ?
Re: Ladmin Problem -
Stigg - 27.02.2011
It's 'dcmd' In ladmin. Can we see 1 of the commands your trying to put in ?
Re: Ladmin Problem -
Rock18 - 27.02.2011
Код:
CMD:test( playerid ,params[ ] )
{
SendClientMessage( playerid , COLOR_WHITE , " It works ! " ) ;
return 1;
}
I've tested , it doesn't work.
It says
SERVER:Unknown Command
Re: Ladmin Problem -
Stigg - 27.02.2011
Try:
Код:
dcmd_test(playerid,params[])
{
#pragma unused params
SendClientMessage( playerid , COLOR_WHITE , " It works ! " ) ;
return 1;
}
Works in my ladmin setup.
Re: Ladmin Problem -
Davz*|*Criss - 27.02.2011
yeah try this
Re: Ladmin Problem -
Rock18 - 27.02.2011
I have found the problem , no commands works in ladmin if i #include <zcmd> ...
Thanks , works with dcmd
Re: Ladmin Problem -
Stigg - 27.02.2011
Quote:
Originally Posted by Davz*|*Criss
yeah try this
|
Dont forget to add:
Код:
dcmd(test,4cmdtext);
Under:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
Re: Ladmin Problem -
Rock18 - 27.02.2011
Stigg...i know that , thanks anyway
Re: Ladmin Problem -
Stigg - 27.02.2011
Lol. No prob's, glad you got it sorted.