[HELP] /savepos command
#8

Quote:
Originally Posted by Clive
Посмотреть сообщение
pawn Код:
if (strcmp(cmdtext, "/savepos", true)==0)
{
    new string[128];
    new Float:X, Float:Z, Float:Y;
    GetPlayerPos(playerid, X, Y, Z);
    SendClientMessage(playerid,COLOR_GREEN,"Player Pos Should Be Saved.");
    new File:pos=fopen("SavedPos.log", io_append);
    format(string, sizeof(string), "%f, %f, %f\r\n", X, Y, Z);
    fwrite(pos, string);
    fclose(pos);
    return 1;
}
This works perfect, Thanks alot man.
Reply


Messages In This Thread
[HELP] /savepos command - by Rolyy - 01.03.2011, 11:47
Re: [HELP] /savepos command - by Hashski - 01.03.2011, 11:52
Re: [HELP] /savepos command - by Rolyy - 01.03.2011, 11:53
Re: [HELP] /savepos command - by Hashski - 01.03.2011, 11:55
Re: [HELP] /savepos command - by Rolyy - 01.03.2011, 12:00
Re: [HELP] /savepos command - by Rolyy - 01.03.2011, 12:05
Re: [HELP] /savepos command - by HyperZ - 01.03.2011, 12:40
Re: [HELP] /savepos command - by Rolyy - 01.03.2011, 12:46
Re: [HELP] /savepos command - by HyperZ - 01.03.2011, 12:47
Re: [HELP] /savepos command - by Rolyy - 01.03.2011, 12:53

Forum Jump:


Users browsing this thread: 2 Guest(s)