26.12.2010, 11:23
I've got this code (It's in the right place)
And when they select listitem 0, this is printed out:
Yet I get told to "stay inside the world boundaries" and my game freezes.
This is what is saved to my character file, also:
Код:
if(listitem == 0) { pInfo[playerid][spawnX] = -2336.1174; pInfo[playerid][spawnY] = 2292.6160; pInfo[playerid][spawnZ] = 4.9844;//Boat printf("X: %f, Y: %f, Z: %f", pInfo[playerid][spawnX], pInfo[playerid][spawnY], pInfo[playerid][spawnZ]); SetPlayerPos(playerid, pInfo[playerid][spawnX], pInfo[playerid][spawnY], pInfo[playerid][spawnZ]); }
Quote:
X: -2336.117431, Y: 2292.615966, Z: 4.984399 |
This is what is saved to my character file, also:
Код:
spawnX=-988675584.000000 spawnY=1158629888.000000 spawnZ=1084194816.000000