[NEED HELP]Saving Players Pos into file!
#3

Try with small letters.

pawn Код:
if (strcmp(cmdtext, "/savepostofile", true)==0)
{
    new string[128];
    new Float:x, Float:z, Float:y, Float:Rotation;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, Rotation);
    new File:pos=fopen("Server/Save/onfoot", io_append);
    format(string, sizeof(string), "AddPlayerClass(0, %f, %f, %f, %f, 0,0,0,0,0,0);", x, y, z,Rotation);
    fwrite(pos, string);
    fclose(pos);
    return 1;
}
Reply


Messages In This Thread
[SOLVED]Saving Players Pos into file! - by [WSF]ThA_Devil - 19.10.2010, 18:29
Re: [NEED HELP]Saving Players Pos into file! - by iJumbo - 19.10.2010, 18:33
Re: [NEED HELP]Saving Players Pos into file! - by MadeMan - 19.10.2010, 18:33
Re: [NEED HELP]Saving Players Pos into file! - by [WSF]ThA_Devil - 19.10.2010, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)