error 017: undefined symbol "dcmd"
#2

You have to do it like this:

OnPlayerCommandText: dcmd(register, 8, cmdtext)

BOTTOM OF SCRIPT(outside any other code): dcmd_register(playerid, params[])

EDIT: Also, add this line to the top of your script, right under your includes:
pawn Код:
#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
Reply


Messages In This Thread
error 017: undefined symbol "dcmd" - by Crayon - 09.10.2010, 01:06
Re: error 017: undefined symbol "dcmd" - by CrucixTM - 09.10.2010, 01:09
Re: error 017: undefined symbol "dcmd" - by Crayon - 09.10.2010, 01:11
Re: error 017: undefined symbol "dcmd" - by CrucixTM - 09.10.2010, 01:12
Re: error 017: undefined symbol "dcmd" - by Crayon - 09.10.2010, 01:13
Re: error 017: undefined symbol "dcmd" - by CrucixTM - 09.10.2010, 01:18
Re: error 017: undefined symbol "dcmd" - by Retardedwolf - 09.10.2010, 01:19
Re: error 017: undefined symbol "dcmd" - by CrucixTM - 09.10.2010, 01:20
Re: error 017: undefined symbol "dcmd" - by Crayon - 09.10.2010, 01:23
Re: error 017: undefined symbol "dcmd" - by CrucixTM - 09.10.2010, 01:32

Forum Jump:


Users browsing this thread: 1 Guest(s)