dini - File extension missing
#1

This is the code I have:

pawn Код:
new pFile[MAX_PLAY][48];

OnPlayerConnect:

format(pFile[playerid], sizeof(pFile), "Users/%s.ini", pName);

/register:

dini_Create(pFile[playerid]);
If I join with a 20 character name, it will only create 'xxxxxxxxxxxxxxxxxxxx.'

If I try this instead:

pawn Код:
dini_Create("xxxxxxxxxxxxxxxxxxxx.ini");
.. it works fine.

Help please.
Reply
#2

sizeof(pFile) returns MAX_PLAY, replace with sizeof(pFile[playerid]).
Reply
#3

Holy fuck, was it really that? Thank you, really.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)