28.12.2010, 13:05
Well, I made a command, which gets player pos, interior and virtual world. With the command /save (server sided), the pos is wrote on a file called "savedpositions.txt".
My command:
But I just could see that these positions are shown on float. On the file "savepositions", the positions are shown like this:
But I can teleport to them with my command /lgoto simply using that:
instead
So how do I save:
2036.32,1283.87,10.82
instead
2036.3229,1283.8787,10.8203
Sorry if I typed too much e_e. Thx.
My command:
pawn Код:
if(strcmp("/get",cmdtext,true,10) == 0)
{
new Float:x,Float:y,Float:z;
new string[128],nome[MAX_PLAYER_NAME];
GetPlayerName(playerid,nome,sizeof(nome));
format(file,sizeof(file),SERVER_USER_FILE,nome);
GetPlayerPos(playerid, x,y,z);
format(string,sizeof(string),"your position x: %f | y: %f | z: %f | Interior: %d | Virtual world: %d | Spawnou: %d",x,y,z,GetPlayerInterior(playerid),GetPlayerVirtualWorld(playerid),dini_Int(file,"Spawnou"));
SendClientMessage(playerid, 0x33CCFFAA, string);
PlayerPlaySound(playerid, 1139, 0.0,0.0,0.0);
return 1;
}
Код:
2036.3229,1283.8787,10.8203
Код:
/lgoto 2036.32,1283.87,10.82
Код:
/lgoto 2036.3229,1283.8787,10.8203
2036.32,1283.87,10.82
instead
2036.3229,1283.8787,10.8203
Sorry if I typed too much e_e. Thx.