if (strcmp(command, "/saveloc", true) ==0) { new File:pos=fopen("positions.txt", io_append); new Float:X, Float:Z, Float:Y, Float:Rotation; // Floats to save the pos in new string[256]; new pname[MAX_PLAYER_NAME]; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid,Rotation); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, 256, "%s AddPlayerClass(0, %f, %f, %f, %f, 22, 3000, 31, 3000, 32, 3000);\r\n",pname, X, Y, Z,Rotation); fwrite(pos, string); fclose(pos); SendInfMsg(playerid, "You location has been saved"); return 1; }