Y_INI + WinSCP -
Kyance - 14.12.2013
I'm having this weird bug with Y_INI, while using WinSCP(My friend is hosting the server for me via WinSCP).
I keep getting this
"[12:11:24] *** YSI Error: INI_Open could not find or create file /Users/iKyance.ini
[12:53:13] *** YSI Error: INI_Open could not find or create file /Users/Matiss_Svingerbergs.ini"
etc etc.
But on my localhost it works perfectly, any ideas?
Re: Y_INI + WinSCP -
Jstylezzz - 14.12.2013
Probably has to do with permissions. Is the Users directory created already? If not, create it yourself. Don't forget that the name is case sensitive, so make it '
Users'. If it doesn't work after that, make sure the permissions are set correctly (try running as admin or something).
Re: Y_INI + WinSCP -
Kyance - 14.12.2013
Quote:
Originally Posted by Jstylezzz
Probably has to do with permissions. Is the Users directory created already? If not, create it yourself. Don't forget that the name is case sensitive, so make it 'Users'. If it doesn't work after that, make sure the permissions are set correctly (try running as admin or something).
|
Sorry for the (possibly) late answer.
Yes, there is a /users/ folder inside of the "scriptfiles".
Well, i have it as
users, and not as
Users in both of my locations(in WinSCP, and in my localhost server)
I will rename them to
Users now.
And, yeah, if that won't work, then i will try running it as an admin, i will edit this post when I've tried this.
EDIT: Thank you so much, now it works!
+REP'd.
Re: Y_INI + WinSCP -
Kyance - 14.12.2013
Well uh, sorry for double-posting, but i just found another bug.
[ame]http://www.youtube.com/watch?v=CNiz-xGDkbc[/ame]
Basically, the textdraw shows my and my friends ping/score .. any way to fix this?
Re: Y_INI + WinSCP -
MagedXp - 14.12.2013
Quote:
Originally Posted by Kyance
|
Mind showing codes?
Re: Y_INI + WinSCP -
Jstylezzz - 14.12.2013
Welcome (:
The problem here is probably a mixed up variable while formatting the textdraw string. Could you post the textdraw code? Try finding the code where you format it with data.
Re: Y_INI + WinSCP -
Kyance - 14.12.2013
Quote:
Originally Posted by MagedXp
Mind showing codes?
|
pawn Код:
//local
new Text:PingScore = Text:INVALID_TEXT_DRAW;
pawn Код:
//OnGameModeInit
PingScore = TextDrawCreate(315.000000, 13.500000, ".::~w~PING:~g~ ~r~- ~w~SCORE:~g~");//485, 10 is the original thing | before test - 475.000000, 12.500000
TextDrawBackgroundColor(PingScore, 255);
TextDrawFont(PingScore, 1);
TextDrawLetterSize(PingScore, 0.330000, 1.200000);
TextDrawColor(PingScore, -1);
TextDrawSetOutline(PingScore, 1);
TextDrawSetProportional(PingScore, 1);
TextDrawSetShadow(PingScore,1);
return 1;
}
pawn Код:
//OnPlayerSpawn
TextDrawShowForPlayer(playerid, PingScore);
pawn Код:
//OnPlayerUpdate
new score;
score = GetPlayerScore(playerid);
new ping;
ping = GetPlayerPing(playerid);
format(string, sizeof(string), ".:: ~b~PING:~w~ %d ~r~- ~b~SCORE:~w~ %d ~r~-", ping, score);
TextDrawSetString(PingScore, string);
Re: Y_INI + WinSCP -
Kyance - 15.12.2013
Quote:
Originally Posted by Kyance
pawn Код:
//local new Text:PingScore = Text:INVALID_TEXT_DRAW;
pawn Код:
//OnGameModeInit PingScore = TextDrawCreate(315.000000, 13.500000, ".::~w~PING:~g~ ~r~- ~w~SCORE:~g~");//485, 10 is the original thing | before test - 475.000000, 12.500000 TextDrawBackgroundColor(PingScore, 255); TextDrawFont(PingScore, 1); TextDrawLetterSize(PingScore, 0.330000, 1.200000); TextDrawColor(PingScore, -1); TextDrawSetOutline(PingScore, 1); TextDrawSetProportional(PingScore, 1); TextDrawSetShadow(PingScore,1); return 1; }
pawn Код:
//OnPlayerSpawn TextDrawShowForPlayer(playerid, PingScore);
pawn Код:
//OnPlayerUpdate new score; score = GetPlayerScore(playerid); new ping; ping = GetPlayerPing(playerid); format(string, sizeof(string), ".:: ~b~PING:~w~ %d ~r~- ~b~SCORE:~w~ %d ~r~-", ping, score); TextDrawSetString(PingScore, string);
|
/bump
Re: Y_INI + WinSCP -
Wizzy951 - 15.12.2013
Quote:
Originally Posted by Kyance
/bump
|
I assume that you need
Per-player textdraws and a loop to check whether the player is connected or not.