Problem with LuxAdmin new command
#1

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

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

dcmd(paskin,6,cmdtext); //this
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)