Problem with Position saving ((Dini))
#1

Hello, i want to save the position of the player on Disconnect
but i'm stuck now, everything what i do it's not working, i know
it's simple but i can't find it.. I have this script under OnPlayerDisconnect
Quote:

if(IsLogged[playerid] == 1) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
dini_FloatSet(file, "PosX", X);
dini_FloatSet(file, "PosY", Y);
dini_FloatSet(file, "PosZ", Z);
IsLogged[playerid] = 0;
}

But i get this 3 errors :
Quote:

undefined symbol "file"
undefined symbol "file"
undefined symbol "file"

Where should i else replace with??
or where sould i put the script in?

Reply
#2

As the error says you need to define "file".

pawn Код:
new playername[24];
GetPlayerName(playerid, playername, sizeof(playername));
new file[64];
format(file, sizeof(file), "%s.ini", playername);
Reply
#3

at the top of this script what you post:

pawn Код:
new file
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)