Another problem with mysql - Load info
#3

Do you mean this?

Код:
stock SavePInfo(playerid)
{
	if(APlayerData[playerid][LoggedIn] == true)
	{
		new	Query[600],
			yreu[600];
			
			
		format(yreu, sizeof(yreu), "DELETE FROM playerinfo WHERE Nick = '%s'", pName(playerid));
		mysql_query(yreu);
		mysql_free_result();
		
		format(Query, sizeof(Query), "INSERT INTO `playerinfo` (Nick, Name, FavAdmin, Status, Age, WantLevel, Views) values ('%s', '%s', '%s', '%s', '%d', '%d', '%d')", // Also remember to update this...
        pName(playerid),
        PVar[playerid][pRealName],
        PVar[playerid][pFavAdmin],
		PVar[playerid][pStatus],
		PVar[playerid][pAge],
		PVar[playerid][pWantedLevel],
		PVar[playerid][pViews]);
		

		mysql_query(Query);
		mysql_free_result();
		return 1;
	}
	else return 0;
}
Reply


Messages In This Thread
[SOLVED] Another problem with mysql - Load info - by scuess - 11.08.2011, 17:09
Re: Another problem with mysql - Load info - by JaTochNietDan - 11.08.2011, 17:10
Re: Another problem with mysql - Load info - by scuess - 11.08.2011, 17:13
Re: Another problem with mysql - Load info - by JaTochNietDan - 11.08.2011, 17:15
Re: Another problem with mysql - Load info - by scuess - 11.08.2011, 17:18
Re: Another problem with mysql - Load info - by JaTochNietDan - 11.08.2011, 17:21
Re: Another problem with mysql - Load info - by scuess - 11.08.2011, 17:25
Re: Another problem with mysql - Load info - by JaTochNietDan - 11.08.2011, 17:29
Re: Another problem with mysql - Load info - by scuess - 11.08.2011, 17:34

Forum Jump:


Users browsing this thread: 2 Guest(s)