Making a stock
#4

pawn Код:
stock getfile(playerid)
{
    new file[64], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(file,sizeof(file),"/users/%s.txt",name);
    return file;
}

public OnPlayerConnect(playerid)
{
    if (dini_Exists(getfile(playerid)))
    {
        // exists
    }
    else
    {
        // not exists
    }
}
Reply


Messages In This Thread
Making a stock - by MarinacMrcina - 08.06.2012, 14:09
Re: Making a stock - by HuSs3n - 08.06.2012, 14:13
Re: Making a stock - by FalconX - 08.06.2012, 14:13
Re: Making a stock - by CptK - 08.06.2012, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)