11.08.2011, 17:13
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; }