SA-MP Forums Archive
DCMD??? - 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: DCMD??? (/showthread.php?tid=117789)



DCMD??? - JoeDaDude - 01.01.2010

pawn Код:
dcmd(goto,4,cmdtext);
dcmd(setcash,7,cmdtext);
dcmd(spectate,8,cmdtext);
dcmd(spectateoff,11,cmdtext);
dcmd(close,5,cmdtext);
dcmd(open,4,cmdtext);
Код:
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(406) : warning 202: number of arguments does not match definition
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(406) : warning 202: number of arguments does not match definition
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(406) : warning 202: number of arguments does not match definition
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(406) : warning 202: number of arguments does not match definition
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(407) : warning 202: number of arguments does not match definition
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(407) : warning 202: number of arguments does not match definition
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(407) : warning 202: number of arguments does not match definition
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(407) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.



Re: DCMD??? - MerLow - 01.01.2010

Quoted errors refer to two lines, not six, check it again.


Re: DCMD??? - JoeDaDude - 01.01.2010

Quote:
Originally Posted by Merlо
Quoted errors refer to two lines, not six, check it again.
I knwo i just posted all that,
But i cant work out whats wrong


Re: DCMD??? - MerLow - 01.01.2010

Quote:
Originally Posted by JoeDaDude
Quote:
Originally Posted by Merlо
Quoted errors refer to two lines, not six, check it again.
I knwo i just posted all that,
But i cant work out whats wrong
I think the error is somewhere else.


Re: DCMD??? - JoeDaDude - 01.01.2010

pawn Код:
dcmd_open()
{
  //OpenLVPDGate(3.0);
  return 1;
}

dcmd_close()
{
  //CloseLVPDGate(3.0);
  return 1;
}
Thats what i have now,

But a minute ago it was,

pawn Код:
dcmd_open(playerid)
{
  //OpenLVPDGate(3.0);
  return 1;
}

dcmd_close(playerid)
{
  //CloseLVPDGate(3.0);
  return 1;
}
But first it was

pawn Код:
dcmd_open(playerid, params[])
{
  //OpenLVPDGate(3.0);
  return 1;
}

dcmd_close(playerid, params[])
{
  //CloseLVPDGate(3.0);
  return 1;
}
But the first 2 brung loads errors,
So now im just using

pawn Код:
dcmd_open()
{
  //OpenLVPDGate(3.0);
  return 1;
}

dcmd_close()
{
  //CloseLVPDGate(3.0);
  return 1;
}



Re: DCMD??? - Correlli - 01.01.2010

Quote:
Originally Posted by JoeDaDude
pawn Код:
dcmd_open(playerid, params[])
{
  //OpenLVPDGate(3.0);
  return 1;
}

dcmd_close(playerid, params[])
{
  //CloseLVPDGate(3.0);
  return 1;
}
This is the correct way.


Re: DCMD??? - JoeDaDude - 01.01.2010

Код:
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(887) : warning 203: symbol is never used: "params"
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(887) : warning 203: symbol is never used: "playerid"
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(893) : warning 203: symbol is never used: "params"
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(893) : warning 203: symbol is never used: "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.



Re: DCMD??? - MadeMan - 01.01.2010

Quote:
Originally Posted by JoeDaDude
Код:
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(887) : warning 203: symbol is never used: "params"
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(887) : warning 203: symbol is never used: "playerid"
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(893) : warning 203: symbol is never used: "params"
C:\Users\Torran\Documents\Server\gamemodes\CnR.pwn(893) : warning 203: symbol is never used: "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
This is because you are not using playerid or params in your command. You can ignore these warnings.


Re: DCMD??? - MerLow - 01.01.2010

Put in both commands:

pawn Код:
#pragma unused playerid
#pragma unused params



Re: DCMD??? - Correlli - 01.01.2010

Quote:
Originally Posted by MadeMan
You can ignore these warnings.
Never ignore the warnings.