08.09.2010, 20:12
So in the past I've been putting this piece of code under everything that required me to access player's dini file (commands, callbacks, etc.). I would much rather code some feature into the general server so I can just use "PlayerFile" without having this in the area i'm using it:
This is under just about everything that requires access to players files and I'm now realizing how much of a pain it is. Since I'm a bit rusty with pawno I'm not sure how I should do it.
Код:
new string[256], pName[24], PlayerFile[50]; GetPlayerName(playerid, pName, sizeof(pName)); format(PlayerFile, sizeof(PlayerFile), "AdminScript/Users/%s.ini", pName);