Macro 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: Macro Error (
/showthread.php?tid=314338)
Macro Error -
rexarlet - 29.01.2012
Код:
#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)")
Re: Macro Error - T0pAz - 29.01.2012
#define stricpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
Re: Macro Error -
Konstantinos - 29.01.2012
I think strcpy is already defined.
Re: Macro Error -
rexarlet - 29.01.2012
Код:
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.
Re: Macro Error -
Tamao_Serizawa - 29.01.2012
What is a Macro Error...Can someone tell me.
Re: Macro Error -
Konstantinos - 29.01.2012
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)
Re: Macro Error -
rexarlet - 29.01.2012
@Dwane
No, not already defined.