24.07.2012, 15:27
Hello,
Getting these errors :
i also added :
and also define :
and also this under OnPlayerCommandText:
Hope you help me
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.
Код:
#include <dcmd>
Код:
#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
Код:
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);