Not working
#1

Error:
pawn Код:
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\Zcmd.pwn(93) : error 017: undefined symbol "dcmd_setvip"
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\Zcmd.pwn(94) : error 017: undefined symbol "dcmd_viplevel"
C:\Users\Administrator\Desktop\XFreedom V.0.1\filterscripts\Zcmd.pwn(95) : error 017: undefined symbol "dmcd"
Lines:

pawn Код:
dcmd(setvip,6,cmdtext);
dcmd(viplevel,8,cmdtext);
dmcd(admins,6,cmdtext);
I even put:
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
But it doesn't work so i wish someone can help me. Thanks.
Reply
#2

You put that dcmd(..... In where?


And did you created dcmd_setvip(playerid,params[]) ?
Reply
#3

Check here to understand how to do it: https://sampforum.blast.hk/showthread.php?tid=75763
Reply
#4

Quote:
Originally Posted by RedCrossER
Посмотреть сообщение
You put that dcmd(..... In where?


And did you created dcmd_setvip(playerid,params[]) ?
Thanks for reminding me to cut it now the problem is the third error only

I put the dcmd define under includes

@aslan i don't have "main()". so now?
Reply
#5

You have to put that that dcmd(........ On OnPlayerCommandText(playerid,cmdtext[]).
Reply
#6

main() or before gamemodeinit
Reply
#7

I only have OnFilterScriptInit()
Reply
#8

Ok then out it before that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)