Guten Abend, wie kann ich dies auf meiner Database speichern?
Zuvor hatte ich alles per Pvars und Dini gemacht..
Wenn ich jetzt etwas speichern möchte, speichert er nichts, kann aber die Daten, wen man sie auf der DataBase änder lesen
stock SpielerSpeichern(playerid)
{
if(GetPVarInt(playerid,"loggedin")==1)
{
SqlSetInt(playerid,"Level",GetPlayerScore(playerid));
SqlSetInt(playerid,"Geld",GetPlayerMoney(playerid));
SqlSetInt(playerid,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
SqlSetInt(playerid,"Duty",GetPVarInt(playerid,"Duty"));
SqlSetInt(playerid,"Fraktion",GetPVarInt(playerid,"Fraktion"));
SqlSetInt(playerid,"FRank",GetPVarInt(playerid,"FRank"));
SqlSetInt(playerid,"Baned",GetPVarInt(playerid,"Baned"));
SqlSetInt(playerid,"AdminDuty",GetPVarInt(playerid,"AdminDuty"));
SqlSetInt(playerid,"Firma",GetPVarInt(playerid,"Firma"));
SqlSetInt(playerid,"FirmaRank",GetPVarInt(playerid,"FirmaRank"));
SqlSetInt(playerid,"Bank",GetPVarInt(playerid,"Bank"));
SqlSetInt(playerid,"FLeader",GetPVarInt(playerid,"FLeader"));
SqlSetInt(playerid,"FirmaLeader",GetPVarInt(playerid,"FirmaLeader"));
SqlSetInt(playerid,"Spawnpunkt",GetPVarInt(playerid,"Spawnpunkt"));
}
return 1;
}
Finde den Fehler und erkläre ihn mir bitte
MfG
Andre