dcmd Errors !
#1

Hello,

Getting these errors :
Код:
E:\Server\gamemodes\galaxy.pwn(228) : error 017: undefined symbol "dcmd_acmds"
E:\Server\gamemodes\galaxy.pwn(229) : error 017: undefined symbol "dcmd_settime"
E:\Server\gamemodes\galaxy.pwn(230) : error 017: undefined symbol "dcmd_setweather"
E:\Server\gamemodes\galaxy.pwn(231) : error 017: undefined symbol "dcmd_kick"
E:\Server\gamemodes\galaxy.pwn(232) : error 017: undefined symbol "dcmd_ban"
E:\Server\gamemodes\galaxy.pwn(233) : error 017: undefined symbol "dcmd_givemoney"
E:\Server\gamemodes\galaxy.pwn(234) : error 017: undefined symbol "dcmd_setmoney"
E:\Server\gamemodes\galaxy.pwn(235) : error 017: undefined symbol "dcmd_jail"
E:\Server\gamemodes\galaxy.pwn(236) : error 017: undefined symbol "dcmd_unjail"
E:\Server\gamemodes\galaxy.pwn(237) : error 017: undefined symbol "dcmd_freeze"
E:\Server\gamemodes\galaxy.pwn(238) : error 017: undefined symbol "dcmd_unfreeze"
E:\Server\gamemodes\galaxy.pwn(239) : error 017: undefined symbol "dcmd_sethealth"
E:\Server\gamemodes\galaxy.pwn(240) : error 017: undefined symbol "dcmd_setarmour"
E:\Server\gamemodes\galaxy.pwn(241) : error 017: undefined symbol "dcmd_setname"
E:\Server\gamemodes\galaxy.pwn(242) : error 017: undefined symbol "dcmd_admins"
E:\Server\gamemodes\galaxy.pwn(243) : error 017: undefined symbol "dcmd_akill"
E:\Server\gamemodes\galaxy.pwn(244) : error 017: undefined symbol "dcmd_setplayerscores"
E:\Server\gamemodes\galaxy.pwn(245) : error 017: undefined symbol "dcmd_resetplayerscores"
E:\Server\gamemodes\galaxy.pwn(246) : error 017: undefined symbol "dcmd_setwantedlvl"
E:\Server\gamemodes\galaxy.pwn(247) : error 017: undefined symbol "dcmd_me"
E:\Server\gamemodes\galaxy.pwn(248) : error 017: undefined symbol "dcmd_ip"
E:\Server\gamemodes\galaxy.pwn(249) : error 017: undefined symbol "dcmd_goto"
E:\Server\gamemodes\galaxy.pwn(250) : error 017: undefined symbol "dcmd_announce"
E:\Server\gamemodes\galaxy.pwn(251) : error 017: undefined symbol "dcmd_slap"
E:\Server\gamemodes\galaxy.pwn(252) : error 017: undefined symbol "dcmd_heal"
E:\Server\gamemodes\galaxy.pwn(253) : error 017: undefined symbol "dcmd_healall"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
i also added :
Код:
#include <dcmd>
and also define :
Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
and also this under OnPlayerCommandText:
Код:
	dcmd(acmds,5,cmdtext);
	dcmd(settime,7,cmdtext);
	dcmd(setweather,10,cmdtext);
	dcmd(kick,4,cmdtext);
	dcmd(ban,3,cmdtext);
	dcmd(givemoney,9,cmdtext);
	dcmd(setmoney,8,cmdtext);
	dcmd(jail,4,cmdtext);
	dcmd(unjail,6,cmdtext);
	dcmd(freeze,6,cmdtext);
	dcmd(unfreeze,8,cmdtext);
	dcmd(sethealth,9,cmdtext);
	dcmd(setarmour,9,cmdtext);
	dcmd(setname,7,cmdtext);
	dcmd(admins,6,cmdtext);
	dcmd(akill,5,cmdtext);
	dcmd(setplayerscores,19,cmdtext);
	dcmd(resetplayerscores,17,cmdtext);
	dcmd(setwantedlvl,12,cmdtext);
	dcmd(me,2,cmdtext);
	dcmd(ip,2,cmdtext);
	dcmd(goto,4,cmdtext);
	dcmd(announce,8,cmdtext);
	dcmd(slap,4,cmdtext);
	dcmd(heal,4,cmdtext);
	dcmd(healall,7,cmdtext);
	dcmd(armourall,9,cmdtext);
	dcmd(giveallmoney,12,cmdtext);
	dcmd(get,3,cmdtext);
	dcmd(unban,5,cmdtext);
	dcmd(setlevel,8,cmdtext);
Hope you help me
Reply
#2

Your cmd define looks a bit off. Try this:

pawn Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Probably not a reason, figured I'd just point it out. Otherwise, (pretty sure DCMD isn't an include, so why include it?) I have nothing to tell you.
Reply
#3

still same errors !
Guys Help !
Reply
#4

The commands don't exist, duh.

if you have a command:
pawn Код:
dcmd(command, 7, cmdtext);
somewhere in the script it needs to be defined ofcourse:
pawn Код:
dcmd_command(playerid, params[]) {
    // command
}
Reply
#5

Make sure you have added those dcmd_acmds commands in your script properly.

I think you only defined them under OnPlayerCommandText and forgot to add the actual commands.
Reply
#6

Show this command : 'acmds'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)