Saving my pickups
#2

pawn Код:
forward PickupLog( string[] );
public PickupLog( string[] )
{
    new entry[ 256 ];
    format( entry, sizeof entry, "%s\n", string);
    new File:hFile;
    hFile = fopen("Pickups.txt", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}

//example
new string[128], Float:Pos[3];
GetPlayerPos( playerid, Pos[0], Pos[1], Pos[2] );
format( string, sizeof string, "Posx: %f, Posy: %f, Posz: %f ", Pos[0], Pos[1], Pos[2]);
PickupLog( string );
Reply


Messages In This Thread
Saving my pickups - by Sellize - 10.06.2013, 17:32
Respuesta: Saving my pickups - by Parka - 10.06.2013, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)