02.09.2010, 00:32
Well everything appart from the loading of the floats looks fine to me.
Should technically be
Since that data is a float and not an integer.
I actually see that for some reason you use floatround on the floats? Why do you do that? Especially when you're storing them as a float anyway.
Is what it should be when storing a float.
pawn Код:
SetPlayerPos (playerid, dUserINT(PlayerName2(playerid)).("SpawnX"), dUserINT(PlayerName2(playerid)).("SpawnY"), dUserINT(PlayerName2(playerid)).("SpawnZ"));
SetPlayerFacingAngle (playerid, dUserINT(PlayerName2(playerid)).("SpawnAngle"));
pawn Код:
SetPlayerPos (playerid, dUserFloat(PlayerName2(playerid)).("SpawnX"), dUserFloat(PlayerName2(playerid)).("SpawnY"), dUserFloat(PlayerName2(playerid)).("SpawnZ"));
SetPlayerFacingAngle (playerid, dUserFloat(PlayerName2(playerid)).("SpawnAngle"));
I actually see that for some reason you use floatround on the floats? Why do you do that? Especially when you're storing them as a float anyway.
pawn Код:
dUserSetFLOAT ( PlayerName2( playerid ) ).( "SpawnX", X );
dUserSetFLOAT ( PlayerName2( playerid ) ).( "SpawnY", Y );
dUserSetFLOAT ( PlayerName2( playerid ) ).( "SpawnZ", Z );
dUserSetFLOAT ( PlayerName2( playerid ) ).( "SpawnAngle", A );