SA-MP Forums Archive
Problem with LuxAdmin new command - 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: Problem with LuxAdmin new command (/showthread.php?tid=332546)



Problem with LuxAdmin new command - NickTaSpy - 08.04.2012

I tried to make a command that gives you an admin skin.

pawn Код:
dcmd_paskin(playerid,params[])
{
    #pragma unused params
    if(AccInfo[playerid][Level] >= 1)
     {
          SetPlayerSkin(playerid, 217);
          return 1;
     }
    return 0;
}

Then I added this line where all the commands are added in the same format.

pawn Код:
dcmd(paskin,1,cmdtext);
Then I have no errors BUT, I go ingame and the command is unknown.I tried changing the command and the level but it didnt work.


Re: Problem with LuxAdmin new command - emokidx - 08.04.2012

i don't use dcmd but as far as i know
pawn Код:
dcmd(paskin,1,cmdtext);// this should be

dcmd(paskin,6,cmdtext); //this



Re: Problem with LuxAdmin new command - NickTaSpy - 08.04.2012

Quote:
Originally Posted by emokidx111
Посмотреть сообщение
i don't use dcmd but as far as i know
pawn Код:
dcmd(paskin,1,cmdtext);// this should be

dcmd(paskin,6,cmdtext); //this
Thanks, I just realised that the number counts the command's characters.