SA-MP Forums Archive
[ajuda] FCreat - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [ajuda] FCreat (/showthread.php?tid=248077)



[ajuda] FCreat - JOKERBOY - 12.04.2011

pawn Код:
new pname[24], File:ftw=fopen("/Users/Files.txt", io_write);
    new File:pos=fopen("/Users/Files.txt", io_append);
    new string[128];
    new Float:X, Float:Z, Float:Y, Float:Rotation;
    format(string, 256, "AddPlayerClass(0, %f, %f, %f, %f, 0,0,0,0,0,0);", X, Y, Z,Rotation);
    format(string, 30, "User:%s", pname);
    fwrite(ftw, string);
    fwrite(pos, string);
    GetPlayerName(playerid, pname, 24);
    fwrite(ftw, pname);
    fclose(ftw);
    fclose(pos);
Alguem pode organizar para isso salvar em um arquivo o nome do usuario e o X,Y e Z ??


Re: [ajuda] FCreat - JOKERBOY - 12.04.2011

Alйm do arquivo com o nome do player dentro do .txt ou .ini assim

User: ---
X:---
Y:---
Z:---
A:---

-- Estou muito perdido em fCreat.


Re: [ajuda] FCreat - JOKERBOY - 12.04.2011

Obrigado, Drakins vocк salvou !!