SA-MP Forums Archive
Code error - 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: Code error (/showthread.php?tid=331774)



Code error - sanrock - 05.04.2012

I need help:
C:\Users\Luke\Downloads\Roleplay\gamemodes\rp.pwn( 52) : warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1,%2)")

Code:
#define strcpy(%0,%1,%2) %0="",strcat(%0,%2,%1)


Re: Code error - blank. - 05.04.2012

It's defined twice, find the first instance.


Re: Code error - Kindred - 05.04.2012

That simply states you redefined the code (two of the same code). Simply remove one of the "strcpy(%0,%1,%2)" 's. Not quite certain if this is why, but its worth a shot.


Re: Code error - sanrock - 05.04.2012

There is only one:
strcpy(%0,%1,%2)


Re: Code error - Kindred - 05.04.2012

Then its probably being used in one of your includes, I presume. Check through the includes that are in your include list above the script. (not quite certain, never used strcpy or whatever it is)


Re: Code error - sanrock - 05.04.2012

This is why I should never start pawno because it too hard to script this shit.


Re: Code error - Kindred - 05.04.2012

Quite easy when you get used to it (on certain aspects).

I'm guessing that didn't fix your problem, or because you don't want to look through the includes.


Re: Code error - sanrock - 05.04.2012

My includes is like

100 files


Re: Code error - Kindred - 05.04.2012

You have 100 includes defined in your script? You serious, you need that much? Even if thats true, most "notepad" type programs have the find function, simply find strcpy in your includes and see if it is there.


Re: Code error - sanrock - 05.04.2012

I finished the problem.
Thanks