Loading player position not working.
#1

Hello!

I am creating roleplay gamemode and i have a problem...

Problem is that the player position is not loading, but everything else is.
Player position is saved in .ini file but it won't load.

pawn Код:
public loaduser_user(playerid, name[], value[])
{
    INI_String("Pass", pInfo[playerid][Pass],129);
    INI_Int("Money", pInfo[playerid][Money]);
    INI_Float("PosX", pInfo[playerid][Pos][0]);
    INI_Float("PosY", pInfo[playerid][Pos][1]);
    INI_Float("PosZ", pInfo[playerid][Pos][2]);
    INI_Float("PosA", pInfo[playerid][Pos][3]);
 
   
    printf("X: %f | Y: %f | Z: %f | Money: %d$", pInfo[playerid][Pos][0], pInfo[playerid][Pos][1], pInfo[playerid][Pos][2], pInfo[playerid][Money]);
    return 1;
}
So i printed out the cordinates and money.

I got:
X: 0.000000 | Y: 0.000000 | Z: 0.000000 | Money: 63634_

Why is this not working? I have no errors.
Reply


Messages In This Thread
Loading player position not working. - by finelaq - 27.08.2015, 16:42
Re: Loading player position not working. - by nezo2001 - 27.08.2015, 16:43
Re: Loading player position not working. - by Dorito - 27.08.2015, 20:45

Forum Jump:


Users browsing this thread: 3 Guest(s)