SA-MP Forums Archive
[HELP!] error 017: undefined symbol - 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: [HELP!] error 017: undefined symbol (/showthread.php?tid=395528)



[HELP!] error 017: undefined symbol - Veeco - 26.11.2012

Hey
I got error :
Quote:

error 017: undefined symbol "Path"



Here is the code :
Quote:

stock UserPath(playerid)
{
new str[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),Path,name);
return str;
}

format(str,sizeof(str),Path,name); Its that line i got error on

Help!


Respuesta: [HELP!] error 017: undefined symbol - adri1 - 26.11.2012

You declared "Path"?
(new Path?)
[#define Path "/users?"


Re: [HELP!] error 017: undefined symbol - Veeco - 26.11.2012

What you mean? XD


Re: [HELP!] error 017: undefined symbol - Gangster-rocks - 26.11.2012

You must do this:
pawn Код:
#define Path %.ini // Add this line on top of your gm



AW: [HELP!] error 017: undefined symbol - Skimmer - 26.11.2012

Here, copy this top of the script.
pawn Код:
#define Path "yourpath" // top of the script
Here's an example.
pawn Код:
#define Path "users/%s.ini" // top of the script



Re: [HELP!] error 017: undefined symbol - Gangster-rocks - 26.11.2012

Here is an examble:
pawn Код:
#define Path users/%s.ini
You need to create a file on scriptfiles folder with users
To create a new file click right click on the mouse and chose new>
And chose new folder and rename it to users


Re: [HELP!] error 017: undefined symbol - Veeco - 26.11.2012

Ahh xD That was something i missed :P I dont remember what. 1 rep to all!


Re: [HELP!] error 017: undefined symbol - lolcik - 05.07.2015

Help me pliz,

C:\Users\catalin\Desktop\original\gamemodes\RolePl ay.pwn(55) : error 017: undefined symbol "PATH"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.



code

stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string,sizeof(string),PATH,playername);
return string;
}