.ini -> MySQL
#3

this is a quick example:
pawn Код:
public OnPlayerConnect(playerid)
{
  new name[MAX_PLAYER_NAME],file[128];
  GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  format(file,sizeof(file),"saves/users/%s.ini",name);
  if(fexists(file))
  {
        new query[128];
        format(query,128,"SELECT * FROM USERS WHERE `name` = %s");
        mysql_query(query);
        if(mysql_numrows == 0) CopyData(playerid);
   }
}
I was planing on doing that to. So give me information on your luck later
I think you can do the CopyData function your self.
Reply


Messages In This Thread
.ini -> MySQL - by Ribber - 13.09.2010, 12:20
Re: .ini -> MySQL - by ft941 - 13.09.2010, 12:36
Re: .ini -> MySQL - by wups - 13.09.2010, 14:02
AW: .ini -> MySQL - by Ribber - 14.09.2010, 12:15

Forum Jump:


Users browsing this thread: 2 Guest(s)