Saving JUST coordinates to a file
#2

pawn Code:
if(!strcmp(cmdtext,"/save2",true))
{
    new Float:x,Float:y,Float:z,Stringy[128];
    GetPlayerPos(playerid,x,y,z);
    new File:Saves = fopen("savedcoordinates.txt", io_append);
    format(Stringy,128,"%f , %f , %f,\r\n",x,y,z);
    fwrite(Saves,Stringy);
    fclose(Saves);
}
Reply


Messages In This Thread
Saving JUST coordinates to a file - by Enzo_Ferrari_V12 - 13.05.2009, 03:02
Re: Saving JUST coordinates to a file - by Backwardsman97 - 13.05.2009, 03:04

Forum Jump:


Users browsing this thread: 1 Guest(s)