About inserting a filterscript into my GM. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: About inserting a filterscript into my GM. (
/showthread.php?tid=147439)
About inserting a filterscript into my GM. -
Apply - 12.05.2010
Hi all,
I'm trying to insert a filterscript into my gamemode, but it says that
symbol already defined: "idx"
symbol already defined: "strtok"
local variable "tmp" shadows a variable at a preceding level
& when i try to delete the-
new cmd[256];
new idx;
new tmp[256];
cmd = strtok(cmdtext, idx);
it says they are not defined, how do i fix this?
Re: About inserting a filterscript into my GM. -
DJDhan - 12.05.2010
I know it can be pretty hard to insert a fs into a gm sometimes.

Try renaming the string arrays for example:
new cmd2[256];
new idx2;
new tmp2[256]
cmd2= strtok(cmdtext, idx2);
I maybe wrong coz i don't know if these can be renamed or not.