symbol already defined: "cmd_refuel" - 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: symbol already defined: "cmd_refuel" (
/showthread.php?tid=545818)
symbol already defined: "cmd_refuel" -
Samieastwood - 10.11.2014
-fixed-
Re: symbol already defined: "cmd_refuel" -
Kwarde - 10.11.2014
Are you using ZCMD or something like that? Or more important; how do you define commands? If you use 'CMD:commandname' search for "CMD:refuel". Because before compiling, 'CMD:' is precompiled to 'cmd_' (atleast, in the most command processors like ZCMD)
Re: symbol already defined: "cmd_refuel" -
Samieastwood - 10.11.2014
yes iam using zcmd
so what should i do un-define cmd:refuel?
Re: symbol already defined: "cmd_refuel" -
Dziugsas - 10.11.2014
no , just search for this command , because it is already made somewhere in your script.
Re: symbol already defined: "cmd_refuel" -
Samieastwood - 10.11.2014
yh but there is three cmd:refuel should i just leave the first one?
Re: symbol already defined: "cmd_refuel" -
meta1 - 10.11.2014
Yes, there is no need to tell the compiler to do the exact thing 3 times: it won't understand it.
Just leave 1 of them.
Re: symbol already defined: "cmd_refuel" -
Samieastwood - 10.11.2014
-fixed-
Re: symbol already defined: "cmd_refuel" -
meta1 - 10.11.2014
Leave either the 2nd one or the 3rd one, but erase the other two.
Re: symbol already defined: "cmd_refuel" -
Samieastwood - 10.11.2014
thanks it worked!
Re: symbol already defined: "cmd_refuel" -
meta1 - 10.11.2014
No problem
Remember everytime that something is already defined that's what it literally means: you wrote the same piece of code twice.