Hallo Community,
mein Spieler speichert sich irgendwie nicht auf seinem Account...
Geladen wird er, aber nicht gespeichert:
Das ist mein Save:
stock SavePlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
print("1");
new query[900], stringzusammen[1024];
GetPlayerName(playerid,pname,sizeof(pname));
format(query,sizeof query,"UPDATE `accounts` SET `Name`='%s', `id`='%d', `Level`='%d', `Geld`='%.2f', `Kills`='%d', `Tode`='%d', `Health`='%.0f', `HatRegi`='%d', `Alter`='%d', `Geschlecht`='%d', `Land`='%d', `Mission`='%d', `Noobmietet`='%d', `HatGeld`='%d', `Handy`='%d', `HandyVer`='%d', `SMSFrei`='%d', `FreiMin`='%d', `Guthaben`='%.f2', `Nummer`='%d', `Autover`='%d', `Perso`='%d', `Lebenver`='%d', `Akku`='%d', `Payday`='%d', `Handyart`='%d',",
pname,SInfo[playerid][pid],SInfo[playerid][pLevel],SInfo[playerid][pGeld],SInfo[playerid][pKills],SInfo[playerid][pTode],SInfo[playerid][pHealth],SInfo[playerid][pHatRegi], SInfo[playerid][pAlter],SInfo[playerid][pGeschlecht],SInfo[playerid][pLand],SInfo[playerid][pMission],SInfo[playerid][pNoobmietet],SInfo[playerid][pHatGeld],SInfo[playerid][pHandy],
SInfo[playerid][pHandyVer],SInfo[playerid][pSMSFrei],SInfo[playerid][pFreiMin],SInfo[playerid][pGuthaben],SInfo[playerid][pNummer],SInfo[playerid][pAutover], SInfo[playerid][pPerso],SInfo[playerid][pLebenver],SInfo[playerid][pAkku],SInfo[playerid][pPayday],SInfo[playerid][pHandyart]);
strcat(stringzusammen,query);
print("2");
printf("%.2f",SInfo[playerid][pGeld]);
strdel(query,0,sizeof(query));
format(query,sizeof query,"`Admin`='%d', `Leader`='%d', `Member`='%d', `Skin`='%d', `Knastzeit`='%d', `Wanted`='%d', `Knast`='%d', `pBootschein`='%d', `pHelischein`='%d', `pMotorradschein`='%d', `pLKWschein`='%d', `pRollerschein`='%d', `pAutoschein`='%d', `Bankkonto`='%.f2', `Kreditpayday`='%d', `Kredit`='%.2f', `Job`='%d', `Haus`='%d',`Handylad`='%d' ,`pMieten`='%d', `Respekt`='%d', `Biz`='%d' WHERE `Name`='%s'",
SInfo[playerid][pAdmin],SInfo[playerid][pLeader], SInfo[playerid][pMember],SInfo[playerid][pSkin],SInfo[playerid][pKnastzeit],SInfo[playerid][pWanted],SInfo[playerid][pKnast], SInfo[playerid][pBootschein], SInfo[playerid][pHelischein],
SInfo[playerid][pMotorradschein],SInfo[playerid][pLKWschein],SInfo[playerid][pRollerschein],SInfo[playerid][pAutoschein],SInfo[playerid][pBankkonto],SInfo[playerid][pKreditpayday],SInfo[playerid][pKredit],SInfo[playerid][pJob],SInfo[playerid][pHaus],SInfo[playerid][pHandylad],SInfo[playerid][pMieten],SInfo[playerid][pRespekt],SInfo[playerid][pBiz],pname);
strcat(stringzusammen,query);
strdel(query,0,sizeof(query));
print("3");
mysql_query(stringzusammen);
strdel(stringzusammen,0,sizeof(stringzusammen));
mysql_free_result();
print("4");
//SaveCar(playerid);
//SaveCar2(playerid);
printf("5");
}
}
print("1");
return 1;
}
Es wird alles geprintet undzwar korrekt... aber es wird nichts gespeichert
Weiss nicht was daran Falsch ist...
LG
McGarrett