[Ajuda] Carregar posiзхes de jogado com a include "File"
#6

Quote:
Originally Posted by LiiPe
Посмотреть сообщение
ele nao esta carregando ?, como vc esta salvando essas posiзoes no txt ?
Dessa forma e salva
Код HTML:
CMD:sav(playerid,params[])
{
    new p;
    new str[100],Float:X,Float:Y,Float:Z,Float:Rotation;
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Rotation);
    new File:pos = fopen("positions.txt", io_append);
    if(!sscanf(params,"i",p))
    {
        format(str, 100, "%dX_%f,%dY_%f,%dZ_%f,%dR_%f\r\n", p,X,p,Y,p,Z,p,Rotation);
        fwrite(pos, str);
    }
    fclose(pos);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)