Position Saving
#1

SOLVED
Reply
#2

Search......
http://forum.sa-mp.com/index.php?act...topic=169012.0
Reply
#3

Quote:
Originally Posted by Sascha
Hi...
I wanted to save a player position, to reload it later...
Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
PlayerData[playerid][coord[1]] = x;
PlayerData[playerid][coord[2]] = y;
PlayerData[playerid][coord[3]] = z;

(defined as under enum with: coord[3]
if you need more information to fix please let me know
You should put a Float tag before coords[3] (Float:coords[3])

if you create an array with 3 cells, the cell are 0, 1 and 2

And here would be the right notation of your code
pawn Код:
GetPlayerPos(playerid, PlayerData[playerid][coord][0], PlayerData[playerid][coord][1], PlayerData[playerid][coord][2]);
if you want to save it to the file, like DraKoN thought, just click on the link

PS: just the remove the "action=printpage;" part in the url if you want to see the normal side and I expect that "Salvar" means save
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)