DCMD???
#1

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

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

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
Reply
#4

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

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;
}
Reply
#6

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

Код:
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.
Reply
#8

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

Put in both commands:

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)