SA-MP Forums Archive
Userpath 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: Userpath Error ! (/showthread.php?tid=465642)



Userpath Error ! - hassantariq73 - 23.09.2013

THIS TUT
STEP IX

Getting these errors

pawn Код:
error 017: undefined symbol "Userpath"
error 017: undefined symbol "UserPath"
I replaced the "Userpath" with my path but still not fixed!


Re: Userpath Error ! - CesarLT - 23.09.2013

EDIT: Never mind.

Try following the tutorial again, and not replacing the Path, check out that everything works than try changing it again.


Re: Userpath Error ! - x96664 - 23.09.2013

Maybe you havent defined it ?


Re: Userpath Error ! - hassantariq73 - 23.09.2013

Quote:
Originally Posted by CesarLT
Посмотреть сообщение
Try using UserPath instead of Userpath
Still same problem !


Re: Userpath Error ! - hassantariq73 - 23.09.2013

Quote:
Originally Posted by x96664
Посмотреть сообщение
Maybe you havent defined it ?
What do you mean by I havent defined it !
I did it !s


Re: Userpath Error ! - x96664 - 23.09.2013

Quote:
Originally Posted by hassantariq73
Посмотреть сообщение
What do you mean by I havent defined it !
I did it !s
I mean:
pawn Код:
#define Path "/Users/%.ini"

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



Re: Userpath Error ! - hassantariq73 - 23.09.2013

Quote:
pawn Код:
#define Path "/Users/%.ini"
Already defined there !


Re: Userpath Error ! - x96664 - 23.09.2013

Quote:
Originally Posted by hassantariq73
Посмотреть сообщение
Already defined there !
What about the stock function ? "Path" was defined with capital letters in that tut so its different.


Re: Userpath Error ! - hassantariq73 - 23.09.2013

PASTEBIN

Get the code, Get the error, Fix the error, and gimme new code!


Re: Userpath Error ! - x96664 - 23.09.2013

Quote:
Originally Posted by hassantariq73
Посмотреть сообщение
PASTEBIN

Get the code, Get the error, Fix the error, and gimme new code!
Im not at home if you are able to wait 4 hours I will fix it for you when I get back.