LoadPos PROBLEM ?
#2

Okay there's some syntax errors here in your code, first of all this:

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);
I don't know what you're trying to do here, but I suggest doing this:

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]);
You should also be using FloatSet instead of IntSet, as otherwise it won't record it properly.

Next is here:

pawn Код:
PlayerInfo[playerid][posx] == x;
PlayerInfo[playerid][posx] == y;
PlayerInfo[playerid][posx] == z;
== 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:

pawn Код:
PlayerInfo[playerid][posx] = x;
PlayerInfo[playerid][posx] = y;
PlayerInfo[playerid][posx] = z;
I recommend you take another read through the Pawn manual, assuming you already have, and make sure you're aware of the Pawn syntax
Reply


Messages In This Thread
LoadPos PROBLEM [SOLVED] - by park4bmx - 09.01.2011, 13:39
Re: LoadPos PROBLEM ? - by JaTochNietDan - 09.01.2011, 13:44
Re: LoadPos PROBLEM ? - by Alex_Valde - 09.01.2011, 13:47
Re: LoadPos PROBLEM ? - by Mr.Stranger - 09.01.2011, 13:48
Re: LoadPos PROBLEM ? - by park4bmx - 09.01.2011, 15:22
Re: LoadPos PROBLEM ? - by Alex_Valde - 09.01.2011, 15:38
Re: LoadPos PROBLEM ? - by park4bmx - 09.01.2011, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)