[HELP] DCMD command error - 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: [HELP] DCMD command error (
/showthread.php?tid=204992)
[SOLVED] DCMD command error -
XxCozzaxX - 31.12.2010
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;
but i'm getting 'argument type mismatch (argument 1)' on the line;
All of my other dcmd commands work perfectly using the same method.
Any ideas?
Regards,
XxCozzaxX
Re: [HELP] DCMD command error -
scripter1 - 31.12.2010
Its
pawn Код:
dcmd_command(playerid, params[])
Your missing the playerid.
Re: [HELP] DCMD command error -
XxCozzaxX - 31.12.2010
Perfect, and do i just #pragma unused playerid?
Also, thanks for the instant reply!
Regards,
XxCozzaxX
Re: [HELP] DCMD command error -
scripter1 - 31.12.2010
Yes.
Re: [HELP] DCMD command error -
XxCozzaxX - 31.12.2010
Quote:
Originally Posted by scripter1
Yes.
|
Thankyou.
Regards,
XxCozzaxX