Macro Error
#1

Код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
It was works on 0.3c but now it's not works. Can anybody help me?

Warning:
Код:
...\gamemode.pwn(37) : warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1,%2)")
Reply
#2

#define stricpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
Reply
#3

I think strcpy is already defined.
Reply
#4

Код:
C:\Documents and Settings\Avc\Belgelerim\Resimlerim\Tuğberk\Photoshop\gta\Olimpos1\gamemodes\rp.pwn(2363) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Avc\Belgelerim\Resimlerim\Tuğberk\Photoshop\gta\Olimpos1\gamemodes\rp.pwn(2412) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Avc\Belgelerim\Resimlerim\Tuğberk\Photoshop\gta\Olimpos1\gamemodes\rp.pwn(2510) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Avc\Belgelerim\Resimlerim\Tuğberk\Photoshop\gta\Olimpos1\gamemodes\rp.pwn(2629) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Avc\Belgelerim\Resimlerim\Tuğberk\Photoshop\gta\Olimpos1\gamemodes\rp.pwn(5788) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Avc\Belgelerim\Resimlerim\Tuğberk\Photoshop\gta\Olimpos1\gamemodes\rp.pwn(5789) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#5

What is a Macro Error...Can someone tell me.
Reply
#6

Press Ctrl + F and search if you already have it as defined
Enter on the box this
pawn Код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
Reply
#7

@Dwane
No, not already defined.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)