define PATH warning - 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: define PATH warning (
/showthread.php?tid=407236)
define PATH warning -
AphexCCFC - 13.01.2013
pawn Код:
C:\Documents and Settings\Aphex\Desktop\DRP\gamemodes\dominationrp.pwn(28) : warning 201: redefinition of constant/macro (symbol "PATH")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
I get this warning when I use these:
pawn Код:
#define PATH "/Users/%s.ini"
#define PATH "Weapons"
Any way to define them both without an error?
Re: define PATH warning -
Threshold - 13.01.2013
You have defined 'PATH' twice...
#define
PATH ...
#define
PATH ...
You need to change it to something like:
pawn Код:
#define PATH "/Users/%s.ini"
#define WEP "Weapons"