Posts: 171
Threads: 49
Joined: Jul 2011
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)
Posts: 140
Threads: 0
Joined: Mar 2012
Reputation:
0
It's defined twice, find the first instance.
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
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.
Posts: 171
Threads: 49
Joined: Jul 2011
There is only one:
strcpy(%0,%1,%2)
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
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)
Posts: 171
Threads: 49
Joined: Jul 2011
This is why I should never start pawno because it too hard to script this shit.
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
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.
Posts: 171
Threads: 49
Joined: Jul 2011
My includes is like
100 files
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
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.
Posts: 171
Threads: 49
Joined: Jul 2011
I finished the problem.
Thanks