Advertisement
T4125Gamer

Untitled

Aug 20th, 2013
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.97 KB | None | 0 0
  1. stock SavePlayer(playerid)
  2. {
  3.     if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
  4.     {
  5.         if(GetPVarInt(playerid,"Eingeloggt") == 1)
  6.         {
  7.             new string[1024],sName[MAX_PLAYER_NAME],Float:Leben;
  8.             GetPlayerName(playerid,sName,sizeof(sName));
  9.             Leben = GetPlayerHealth(playerid);
  10.             format(string,sizeof(string),"UPDATE `accounts` SET `Level`='%d' `Geld`='%d' `Kills`='%d' `Tode`='%d' `Health`='%f' `AdminLevel`='%d' `Skin`='%d' `SupporterLevel`='%d' `Premiumrank`='%d' `Fraktion`='%d' `Mieter`='%d' `Haus`='%d' `Geschlecht`='%d' WHERE Name = '%s'",
  11.             GetPlayerScore(playerid);,GetPlayerMoney(playerid),SpielerInfo[playerid][pKills],SpielerInfo[playerid][pDeaths],Leben,SpielerInfo[playerid][pAdmin],GetPlayerSkin(playerid),SpielerInfo[playerid][pSup],SpielerInfo[playerid][pPremium],
  12.             SpielerInfo[playerid][pFraktion],SpielerInfo[playerid][pMieter],SpielerInfo[playerid][pHaus], SpielerInfo[playerid][pSex],sName);
  13.             mysql_query(string);
  14.         }
  15.     }
  16.     return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement