Gamemode works only in home hosted server.
#1

My dini register system does only work in my home hosted server.
Please help me.

It has trouble to write and read from files so my server keeps crashing.

Is there anyone who had this kind of problems?
please tell me how.
this is the format: users/%s.acc
Reply
#2

Check your server.log
Check if you have uploaded all plugins etc.
Reply
#3

Did you make a /users directory in your /scriptfiles folder on the ACTUAL host?
Reply
#4

Additionally, you might need to make the folder writable by the process owner. Look up "chmod" for this.
Reply
#5

first thing to check on linux: the directory "users" caption. its case sensitive. "Users" != "users"
Reply
#6

Well it seems find it when folder name is "users".
But saving & loading some data from there doesn't work.
And when i tried like folder name was "Users" it said Account File was not found when i connected.

ps. I don't use plugin needed stuff and i have "users" folder in my scriptfiles folder.
#define PLAYERFILE "/users/%s.acc" //on top of my script
AccountFile[256]; //on top of my script



//these are under something but doesn't work
pawn Код:
new Message[256];
    new iName[MAX_PLAYER_NAME];
    GetPlayerName(id,iName,sizeof(iName));
    format(Message,sizeof(Message),"* %s's data was succefully refreshed.",iName);
    SendClientMessage(playerid,COLOR_GREEN,Message);
    format(AccountFile, sizeof(AccountFile), PLAYERFILE, iName);
    if(dini_Exists(AccountFile))
    {
    Deaths[id] = dini_Int(AccountFile,"deaths");
    }
Reply
#7

If you have SSH access, run the following command in the scriptfiles directory:

Код:
chmod -R 777 users
If you only have FTP, right click on the folder and there should be some option to change the permissions. Make sure all of them are checked or if it lets you input a number, then put in 777.
Reply
#8

problem is that it loads only my score and money but other value it doesn't load it loads other values only with my /refreshplayerdata command only if accountfile was reuploaded to ftp server when server was on. + it says unknown command.

but in home hostd server this gamemode worked without any problem.

I use filezilla to draging files to my ftp server.
Reply
#9

And when i select language from my /languages in my home server it works well. And translates texts from txt file.
But when i try to select language in volthost server it crashes server.

I have every file in and in right places. I have no idea why doesn' it work in other systems like in my pc.
Reply
#10

show some of the loading code, also the translator.
But possible because the VPS ur server is located on doesn't support the language format which is being saved as, or saved as UTF-8 format.

Show some more code cant speak like this ;X
But it could be a fault with dini which cant wright it or read it as it reads unknown/unreadable characters.
Also have u ever checked what is saved in the scriptfiles ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)