[HELP!] error 017: undefined symbol
#1

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!
Reply
#2

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

What you mean? XD
Reply
#4

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

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
Reply
#6

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
Reply
#7

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

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)