creando archivo ini
#1

hola como puedo hacer para que cuando escriba /comando
cree un archivo algo haci
pawn Код:
new usuario[MAX_PLAYER_NAME];
    new tmp1[128], tmp2[128], jugador, usador, string1[256], string2[256], nombreusador[MAX_PLAYER_NAME], nombrejugador[MAX_PLAYER_NAME], archivo[256];
    GetPlayerName(playerid, usuario, MAX_PLAYER_NAME);
    format(archivo, 256, "carpeta/Usuarios/%s.ini", usuario);
    if (!dini_Exists(archivo))
    {
    SendClientMessage(playerid, COLOR_BLANCO, "mensaje lool");
    format(archivo, 256, "carpeta/Usuarios/%s.ini", usuario);
    dini_Create(archivo);
    dini_Set(archivo, "Usuario", usuario);
    dini_IntSet(archivo, "Cuenta", 0);
    dini_IntSet(archivo, "Puntaje", 0);
    dini_IntSet(archivo, "UsaSkin", 0);
    dini_IntSet(archivo, "Skin", 0);
    }
    else
    {
    Login(playerid);
    }
aqui lo que sucede es que cuando pongo el comando se crea el archivo a el nombre del jugador! que lo ejecuta y lo que necesito es de que lo cree a nombre del jugador que se le da la cuenta
Reply


Messages In This Thread
creando archivo ini - by chucho - 29.03.2012, 01:40
Re: creando archivo ini - by ViniBorn - 29.03.2012, 02:52
Respuesta: creando archivo ini - by chucho - 29.03.2012, 03:00
Re: creando archivo ini - by ViniBorn - 29.03.2012, 03:10
Respuesta: creando archivo ini - by TheChaoz - 29.03.2012, 03:54

Forum Jump:


Users browsing this thread: 1 Guest(s)