[HELP] DCMD command error
#1

This is at the bottom of my code:
pawn Код:
dcmd_bond(params[])
    {
        if(lifted == 0)
        {
        MoveObject(bondlift,268.54293823242,1884.3603515625,16.081565856934,50000.0); //007lift up
        lifted = 1;
        }
        else
        {
            MoveObject(bondlift,268.70651245117,1884.0992431641,6.9150552749634,50000.0);//007lift down
            lifted = 0;
        }
        return 1;
        #pragma unused params
    }
And this is in onplayercommandtext;

pawn Код:
dcmd(bond,4,cmdtext);
but i'm getting 'argument type mismatch (argument 1)' on the line;
pawn Код:
dcmd(bond,4,cmdtext);
All of my other dcmd commands work perfectly using the same method.

Any ideas?

Regards,
XxCozzaxX
Reply
#2

Its
pawn Код:
dcmd_command(playerid, params[])
Your missing the playerid.
Reply
#3

Perfect, and do i just #pragma unused playerid?

Also, thanks for the instant reply!

Regards,
XxCozzaxX
Reply
#4

Yes.
Reply
#5

Quote:
Originally Posted by scripter1
Посмотреть сообщение
Yes.
Thankyou.

Regards,
XxCozzaxX
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)