What's the problem, it doesn't load the money when the player logs in..
#1

Here is the pastebin link :

LINK REMOVES FOR COPYRIGHT

The position doesnt work, and how can i do that the player
spawns via a script like SpawnPlayer(playerid) or something?
Reply
#2

Код:
X = dini_Float(file, "PosX");
Y = dini_Float(file, "PosY");
Z = dini_Float(file, "PosZ");
You had dini loading the float as an integer. As for the money not saving, you've not got it saving in the disconnect callback.
Reply
#3

Quote:
Originally Posted by big comfy couch
Код:
X = dini_Float(file, "PosX");
Y = dini_Float(file, "PosY");
Z = dini_Float(file, "PosZ");
You had dini loading the float as an integer. As for the money not saving, you've not got it saving in the disconnect callback.
How can i save it then?
dini_IntSet(file,"Cash", 0);??
Reply
#4

Quote:
Originally Posted by Ihsan_Cingisiz
Quote:
Originally Posted by big comfy couch
Код:
X = dini_Float(file, "PosX");
Y = dini_Float(file, "PosY");
Z = dini_Float(file, "PosZ");
You had dini loading the float as an integer. As for the money not saving, you've not got it saving in the disconnect callback.
How can i save it then?
dini_IntSet(file,"Cash", 0);??
Or something with format(?? Please
Reply
#5

Quote:
Originally Posted by Ihsan_Cingisiz
Quote:
Originally Posted by big comfy couch
Код:
X = dini_Float(file, "PosX");
Y = dini_Float(file, "PosY");
Z = dini_Float(file, "PosZ");
You had dini loading the float as an integer. As for the money not saving, you've not got it saving in the disconnect callback.
How can i save it then?
dini_IntSet(file,"Cash", 0);??
I'd say
Код:
dini_IntSet(file, "Cash", GetPlayerMoney(playerid));
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)