SA-MP Forums Archive
Not working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Not working (/showthread.php?tid=404912)



Not working - Affan - 04.01.2013

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.


Re: Not working - RedCrossER - 04.01.2013

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


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


Re: Not working - aslan890 - 04.01.2013

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


Re: Not working - Affan - 04.01.2013

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?


Re: Not working - RedCrossER - 04.01.2013

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


Re: Not working - RedCrossER - 04.01.2013

main() or before gamemodeinit


Re: Not working - Affan - 04.01.2013

I only have OnFilterScriptInit()


Re: Not working - RedCrossER - 04.01.2013

Ok then out it before that.