Problem in dcmd
#1

Quote:

D:\Server\filterscripts\MYSCRIPT.pwn(400) : error 017: undefined symbol "dcmd"
D:\Server\filterscripts\MYSCRIPT.pwn(426) : error 010: invalid function or declaration
D:\Server\filterscripts\MYSCRIPT.pwn(563) : warning 203: symbol is never used: "dcmd_heal"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Plz how to fix it
Reply
#2

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
@NumbSkull,
It wouldn't say
pawn Код:
error 017: undefined symbol "dcmd"
then, but "DCMD".
Reply
#3

i already define it
Reply
#4

show the lines then..
Reply
#5

if you defined it DCMD that is different than dcmd check the capitalization
@dwane i ment if he #define DCMD and in script wrote dcmd would give that error
Reply
#6

You need to define it at the top of your script, under the includes. Otherwise, it will keep giving you errors.
Reply
#7

Quote:

dcmd(heal,4,cmdtext);

1 error (343)
2
495 is last line of script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)