SA-MP Forums Archive
C:\Users\Taha\Desktop\Cop System\filterscripts\cs.pwn(57) : error 017: undefined symbol "UPATH" - 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: C:\Users\Taha\Desktop\Cop System\filterscripts\cs.pwn(57) : error 017: undefined symbol "UPATH" (/showthread.php?tid=500762)



C:\Users\Taha\Desktop\Cop System\filterscripts\cs.pwn(57) : error 017: undefined symbol "UPATH" - UnknownOwner - 15.03.2014

Getting this error:
Код:
C:\Users\Taha\Desktop\Cop System\filterscripts\cs.pwn(57) : error 017: undefined symbol "UPATH"
Line 57:
PHP код:
    new string[128],playername[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,playername,sizeof(playername));
    
format(string,sizeof(string),UPATH,playername); //This one 
While i have defined it:
Код:
#define UPATH "/Cops/%s.ini"



Re: C:\Users\Taha\Desktop\Cop System\filterscripts\cs.pwn(57) : error 017: undefined symbol "UPATH" - UnknownOwner - 15.03.2014

Fixed it by placing the defined code under includes...


Re: C:\Users\Taha\Desktop\Cop System\filterscripts\cs.pwn(57) : error 017: undefined symbol "UPATH" - DarkLored - 15.03.2014

Make Sure the define is on top of line 57
because it dosent read what was defined below it