27.08.2015, 16:42
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.
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.
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;
}
I got:
X: 0.000000 | Y: 0.000000 | Z: 0.000000 | Money: 63634_
Why is this not working? I have no errors.