y_ini question
#7

In case you have zcmd and sscanf you could do something like:

pawn Code:
COMMAND:checkadmin(playerid, params[])
{
    new targetname[MAX_PLAYER_NAME];
    if(sscanf(params, "s[MAX_PLAYER_NAME]", targetname)) return SendClientMessage(playerid, -1, "/checkadmin [name]");
   
    // I have no experience with y_ini so from here you have to do it youself. I don't know if there's a function to check if
    // a file with the targetname exists. If the file does not exists send a clientmessage to say that that player does not exist
    // and if the file is found, read the data with INI_Int.
    return 1;
}
Reply


Messages In This Thread
y_ini question - by Brooks1 - 16.01.2015, 20:34
Re: y_ini question - by Lynn - 16.01.2015, 22:19
Re: y_ini question - by Brooks1 - 16.01.2015, 22:58
Re: y_ini question - by RedFusion - 16.01.2015, 23:22
Re: y_ini question - by Brooks1 - 18.01.2015, 20:01
Re: y_ini question - by RedFusion - 18.01.2015, 20:07
Re: y_ini question - by Schneider - 18.01.2015, 20:17
Re: y_ini question - by Brooks1 - 19.01.2015, 14:02
Re: y_ini question - by Schneider - 19.01.2015, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)