Code error
#1

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)
Reply
#2

It's defined twice, find the first instance.
Reply
#3

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.
Reply
#4

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

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)
Reply
#6

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

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.
Reply
#8

My includes is like

100 files
Reply
#9

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.
Reply
#10

I finished the problem.
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)