coordonatesavecommand problem
#1

ok i made a coodonatessavecommand:
Код:
if(!strcmp(cmd, "/ssave", true))
	{
		if(IsPlayerAdmin(playerid))
		{
			//Position
			new string1[128];
			new Float:XCoordsSave, Float:YCoordsSave, Float:ZCoordsSave;	
			GetPlayerPos(playerid, XCoordsSave, YCoordsSave, ZCoordsSave);
			
			//Sound
			new Float:XCoordsSaveSound, Float:ZCoordsSaveSound, Float:YCoordsSaveSound
			GetPlayerPos(playerid, XCoordsSaveSound, YCoordsSaveSound, ZCoordsSaveSound);
			PlayerPlaySound(playerid,1150,XCoordsSaveSound, YCoordsSaveSound, ZCoordsSaveSound);
			
			//Position
			new File:pos=fopen("CoordonatesSaves.txt", io_append);
			format(string1, 256, "%s\r\n {%f, %f, %f}", XCoordsSave, YCoordsSave, ZCoordsSave);
			fwrite(pos, string1);
			fclose(pos);
			SendClientMessage(playerid,COLOR_RED,"Racepoint gespeichert!");
		}
		else
		{
			SendClientMessage(playerid,COLOR_RED,"Du musst Admin sein um das machen zu kцnnen!");
		}
		return 1;
	}
Нt save the Coordonates, but with Errors:

Код:
{-1655.850708, 13.881608, 0.000000}
{-1654.343261, 13.994992, 0.000000}ч
{-1657.223510, 13.926807, 0.000000}Š
{-1580.377563, 24.313919, 0.000000}л
{-1668.388549, 13.343750, 0.000000}

{-1670.535888, 13.335947, 0.000000}
Код:
1. -> (л,ч,) ????
2. there is something wrong with the Z Angle, what??


BMGP
Reply


Messages In This Thread
coordonatesavecommand problem - by BMGP - 30.09.2009, 16:49
Re: coordonatesavecommand problem - by dice7 - 30.09.2009, 16:51
Re: coordonatesavecommand problem - by BMGP - 30.09.2009, 16:56
Re: coordonatesavecommand problem - by dice7 - 30.09.2009, 17:00
Re: coordonatesavecommand problem - by yom - 30.09.2009, 17:10
Re: coordonatesavecommand problem - by dice7 - 30.09.2009, 17:15
Re: coordonatesavecommand problem - by BMGP - 30.09.2009, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)