08.12.2011, 16:23
Como faz para os players que criarem conta, as contas irem para pasta players em vez de scriptfiles ?
#include <a_samp>
#include <a_npc>
#include <Dini>
#include <servermoneyGM>
#if defined MAX_VEHICLES
#undef MAX_VEHICLES
#define MAX_VEHICLES (1176) //Nъmero de CARROS
#endif
#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#define MAX_PLAYERS (101) //Nъmero de Slots + 1
#endif
#define F_MAX_OBJECTS 750 //maximum amount of objects the streamer will create; PLEASE change this to the amount of objects you are using.
#define UpdateTime 300 //update time in ms (milliseconds).
#define ObjectsToStream 400 //maximum number of objects that will be streamed for one player (maximum = 400 objects).
#define StreamRange 300.0
#define Pobreloko 123
#define trazerx1 124
#define conviteorg 125
#define proximoconf 126
#define helpercofre 127
#define andrewzika 128
O Que Vocк Acha De Prestar Atenзгo No Assunto ? Ja Existe A Pasta Players ,Meu Querido .
Desculpe, Codigo Criaзгo Do Arquivo ? Num Intindi '-' |
new Arquivo[ 100 ];
new Nome;
GetPlayerName(playerid, Nome, 24);
format(Arquivo, sizeof(Arquivo), "Players/%s.ini", Nome);
if(!DOF2_FileExists(Arquivo)) return DOF2_CreateFile(Arquivo);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 64, "contas/%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
Players/%s.ini
Desculpa amigo '-' eu achei esse у :
pawn Код:
pawn Код:
|
"contas/%s.ini"