09.01.2011, 13:44
Okay there's some syntax errors here in your code, first of all this:
I don't know what you're trying to do here, but I suggest doing this:
You should also be using FloatSet instead of IntSet, as otherwise it won't record it properly.
Next is here:
== is a check operator it means to check if something is equal to something, it is not used in assigning a value to a variable.
= is used in assigning a value to a variable, so therefore the correct code is:
I recommend you take another read through the Pawn manual, assuming you already have, and make sure you're aware of the Pawn syntax
pawn Код:
dini_IntSet(file,"posx", PlayerInfo[playerid][posx]= x);
dini_IntSet(file,"posy", PlayerInfo[playerid][posy]= y);
dini_IntSet(file,"posz", PlayerInfo[playerid][posz]= z);
pawn Код:
PlayerInfo[playerid][posx] = x;
PlayerInfo[playerid][posy] = y;
PlayerInfo[playerid][posz] = z;
dini_FloatSet(file,"posx", PlayerInfo[playerid][posx]);
dini_FloatSet(file,"posy", PlayerInfo[playerid][posy]);
dini_FloatSet(file,"posz", PlayerInfo[playerid][posz]);
Next is here:
pawn Код:
PlayerInfo[playerid][posx] == x;
PlayerInfo[playerid][posx] == y;
PlayerInfo[playerid][posx] == z;
= is used in assigning a value to a variable, so therefore the correct code is:
pawn Код:
PlayerInfo[playerid][posx] = x;
PlayerInfo[playerid][posx] = y;
PlayerInfo[playerid][posx] = z;