#1

i was here on the forum watching a guy and he had problem on score me too my stuff never writes nothing
look
my code
Код:
new file[MAX_PLAYER_NAME+25], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), "scriptfiles/mygamemode/users/%s.txt", name);
    dini_IntSet(file, "Score", GetPlayerScore(playerid));
and iv tryed
Код:
new file[MAX_PLAYER_NAME+25], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), "mygamemode/users/%s.txt", name);
    dini_IntSet(file, "Score", GetPlayerScore(playerid));
and a proof

but it dosnt save
i have
Код:
#include <dini>
but still
it dosnt write
Reply
#2

fwrite automatically stores in the scriptfolder and it's subfolders. So you need to remove the "scriptfiles\" part lol.
Reply
#3

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
fwrite automatically stores in the scriptfolder and it's subfolders. So you need to remove the "scriptfiles\" part lol.
lol if u see i sayed i tryed the 2 ways -.- but still it dosnt write
Reply
#4

:P have u created the file? as in register?

Код:
dini_Create(file);
like that?
Reply
#5

Quote:
Originally Posted by Mike_Peterson
Посмотреть сообщение
:P have u created the file? as in register?

Код:
dini_Create(file);
like that?
where do i put ?
Код:
dini_Create(file);
dini_Create(file);
Reply
#6

on /register command so it will create a file named for example FireCat.txt
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)