Y_INI reading (INI_LOAD) issue.
#4

Oh, I know the problem.

pawn Code:
forward LoadOneUser(playerid, tag[], name[], value[]);
public LoadOneUser(playerid, tag[], name[], value[])
{
   printf("%s has been loaded",playerfile);
   INI_String("Name", PlayerInfo[playerid], Name);
   INI_Int("Cash", PlayerInfo[playerid][Cash]);
   return 0;
}

CMD:status(playerid,params[])
{
    format(playerfile,sizeof(playerfile),PLAYER,GetMyName(playerid)) && printf("PLAYERFILE: %s | playerfile: %s",PLAYER,playerfile);
    INI_ParseFile(playerfile, "LoadOneUser", .bExtra = true, .extra = playerid, .bPassTag = true);
    print("the CMD:status has been processed . . . ");
    return 1;
}
Reply


Messages In This Thread
Y_INI reading (INI_LOAD) issue. - by blackwave - 13.01.2011, 17:07
Re: Y_INI reading (INI_LOAD) issue. - by Finn - 13.01.2011, 17:25
Re: Y_INI reading (INI_LOAD) issue. - by blackwave - 13.01.2011, 17:27
Re: Y_INI reading (INI_LOAD) issue. - by Finn - 13.01.2011, 17:33
Re: Y_INI reading (INI_LOAD) issue. - by blackwave - 13.01.2011, 17:42
Re: Y_INI reading (INI_LOAD) issue. - by blackwave - 14.01.2011, 00:14

Forum Jump:


Users browsing this thread: 1 Guest(s)