Y_INI + WinSCP
#1

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

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).
Reply
#3

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

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

Quote:
Originally Posted by Kyance
Посмотреть сообщение
Well uh, sorry for double-posting, but i just found another bug.

http://www.youtube.com/watch?v=CNiz-xGDkbc

Basically, the textdraw shows my and my friends ping/score .. any way to fix this?
Mind showing codes?
Reply
#6

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

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);
Reply
#8

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)