Schönen guten Abend liebe Community,
ich habe ein Problem.
Undzwar bin ich nun an einem Script das mit SQL Lite speichert.
Jetzt hab ich das Problem das man ein Auto kaufen kann,
allerdings werden diese nicht abgespeichert.
Im Script gibt es OnPlayerSave, eigentlich müsste es auch gespeichert werden aber es klappt nicht.
leider habe ich so meine Probleme mit SQL Lite.
Ich hoffe ihr könnt mir helfen
Quellcode :
if(dialogid == 9001)
{
new i = TempCarID[playerid];
if(response)
{
if(PlayerInfo[playerid][pCash] >= CarInfo[i][CarPrice]) // 400k
{
if(PlayerInfo[playerid][PlayerVehicleModel1] == 0)
{
//ResetPlayerVehicleEx(playerid, 1);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX1] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY1] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ1] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing1] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel1] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle1Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle1Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 1);
PutPlayerInVehicle(playerid,PlayerVehicleID1[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Glückwunsch zum kauf von %s, kaufe ein Schloss von einem Schlossergeschäft.",vehName[PlayerInfo[playerid][PlayerVehicleModel1]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else if(PlayerInfo[playerid][PlayerVehicleModel2] == 0)
{
//ResetPlayerVehicleEx(playerid, 2);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX2] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY2] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ2] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing2] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel2] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle2Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle2Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 2);
PutPlayerInVehicle(playerid,PlayerVehicleID2[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Glückwunsch zum kauf von %s, kaufe ein Schloss von einem Schlossergeschäft.",vehName[PlayerInfo[playerid][PlayerVehicleModel2]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else
{
if(PlayerInfo[playerid][pDonateRank] >= 0)
{
if(PlayerInfo[playerid][PlayerVehicleModel3] == 0)
{
//ResetPlayerVehicleEx(playerid, 3);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX3] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY3] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ3] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing3] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel3] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle3Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle3Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 3);
PutPlayerInVehicle(playerid,PlayerVehicleID3[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Glückwunsch zum kauf von %s, kaufe ein Schloss von einem Schlossergeschäft.",vehName[PlayerInfo[playerid][PlayerVehicleModel3]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else if(PlayerInfo[playerid][pDonateRank] >= 0)
{
if(PlayerInfo[playerid][PlayerVehicleModel4] == 0)
{
//ResetPlayerVehicleEx(playerid, 4);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX4] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY4] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ4] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing4] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel4] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle4Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle4Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 4);
PutPlayerInVehicle(playerid,PlayerVehicleID4[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Glückwunsch zum kauf von %s, kaufe ein Schloss von einem Schlossergeschäft.",vehName[PlayerInfo[playerid][PlayerVehicleModel4]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else if(PlayerInfo[playerid][pDonateRank] >= 0)
{
if(PlayerInfo[playerid][PlayerVehicleModel5] == 0)
{
//ResetPlayerVehicleEx(playerid, 5);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX5] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY5] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ5] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing5] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel5] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle5Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle5Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 5);
PutPlayerInVehicle(playerid,PlayerVehicleID5[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Glückwunsch zum kauf von %s, kaufe ein Schloss von einem Schlossergeschäft.",vehName[PlayerInfo[playerid][PlayerVehicleModel5]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Du hast die maximale Anzahl an Fahrzeuge!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Du hast die maximale Anzahl an Fahrzeuge!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Du hast die maximale Anzahl an Fahrzeuge!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Du hast die maximale Anzahl an Fahrzeuge!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Du hast nicht genug Geld!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
Park Befehl
if(strcmp(cmd, "/parkvehicle", true) == 0 || strcmp(cmd, "/pv", true) == 0) // Parken des Autos
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
{
GetPlayerVehicleMods(playerid);
if(PlayerVehicleID1[playerid] == vehicleid)
{
GetVehiclePos(vehicleid, PlayerInfo[playerid][PlayerVehiclePosX1], PlayerInfo[playerid][PlayerVehiclePosY1], PlayerInfo[playerid][PlayerVehiclePosZ1]);
GetVehicleZAngle(vehicleid, PlayerInfo[playerid][PlayerVehicleFacing1]);
DestroyVehicle(PlayerVehicleID1[playerid]);
PlayerInfo[playerid][PlayerVehicle1VirWorld] = GetPlayerVirtualWorld(playerid);
PlayerInfo[playerid][PlayerVehicle1Interior] = GetPlayerInterior(playerid);
CreatePlayerVehicle(playerid,1);
PutPlayerInVehicle(playerid,PlayerVehicleID1[playerid],0);
OnPlayerSave(playerid);
}
else if(PlayerVehicleID2[playerid] == vehicleid)
{
GetVehiclePos(vehicleid, PlayerInfo[playerid][PlayerVehiclePosX2], PlayerInfo[playerid][PlayerVehiclePosY2], PlayerInfo[playerid][PlayerVehiclePosZ2]);
GetVehicleZAngle(vehicleid, PlayerInfo[playerid][PlayerVehicleFacing2]);
DestroyVehicle(PlayerVehicleID2[playerid]);
PlayerInfo[playerid][PlayerVehicle2VirWorld] = GetPlayerVirtualWorld(playerid);
PlayerInfo[playerid][PlayerVehicle2Interior] = GetPlayerInterior(playerid);
CreatePlayerVehicle(playerid,2);
PutPlayerInVehicle(playerid,PlayerVehicleID2[playerid],0);
OnPlayerSave(playerid);
}
else if(PlayerVehicleID3[playerid] == vehicleid)
{
GetVehiclePos(vehicleid, PlayerInfo[playerid][PlayerVehiclePosX3], PlayerInfo[playerid][PlayerVehiclePosY3], PlayerInfo[playerid][PlayerVehiclePosZ3]);
GetVehicleZAngle(vehicleid, PlayerInfo[playerid][PlayerVehicleFacing3]);
DestroyVehicle(PlayerVehicleID3[playerid]);
PlayerInfo[playerid][PlayerVehicle3VirWorld] = GetPlayerVirtualWorld(playerid);
PlayerInfo[playerid][PlayerVehicle3Interior] = GetPlayerInterior(playerid);
CreatePlayerVehicle(playerid,3);
PutPlayerInVehicle(playerid,PlayerVehicleID3[playerid],0);
OnPlayerSave(playerid);
}
else if(PlayerVehicleID4[playerid] == vehicleid)
{
GetVehiclePos(vehicleid, PlayerInfo[playerid][PlayerVehiclePosX4], PlayerInfo[playerid][PlayerVehiclePosY4], PlayerInfo[playerid][PlayerVehiclePosZ4]);
GetVehicleZAngle(vehicleid, PlayerInfo[playerid][PlayerVehicleFacing4]);
DestroyVehicle(PlayerVehicleID4[playerid]);
PlayerInfo[playerid][PlayerVehicle4VirWorld] = GetPlayerVirtualWorld(playerid);
PlayerInfo[playerid][PlayerVehicle4Interior] = GetPlayerInterior(playerid);
CreatePlayerVehicle(playerid,4);
PutPlayerInVehicle(playerid,PlayerVehicleID4[playerid],0);
OnPlayerSave(playerid);
}
else if(PlayerVehicleID5[playerid] == vehicleid)
{
GetVehiclePos(vehicleid, PlayerInfo[playerid][PlayerVehiclePosX5], PlayerInfo[playerid][PlayerVehiclePosY5], PlayerInfo[playerid][PlayerVehiclePosZ5]);
GetVehicleZAngle(vehicleid, PlayerInfo[playerid][PlayerVehicleFacing5]);
DestroyVehicle(PlayerVehicleID5[playerid]);
PlayerInfo[playerid][PlayerVehicle5VirWorld] = GetPlayerVirtualWorld(playerid);
PlayerInfo[playerid][PlayerVehicle5Interior] = GetPlayerInterior(playerid);
CreatePlayerVehicle(playerid,5);
PutPlayerInVehicle(playerid,PlayerVehicleID5[playerid],0);
OnPlayerSave(playerid);
}
else
{
SendClientMessage(playerid,COLOR_GREY," Du bist in keinem Fahrzeug das dir gehört.");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY," Du fährt kein Fahrzeug.");
}
}
return 1;
}
OnPlayerSave
stock OnPlayerSave(playerid)
{
if (IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if (gPlayerLogged[playerid] != 0 && gPlayerSpawned[playerid] == 1)
{
new playername[24];
GetPlayerName(playerid, playername, sizeof(playername));
if (SQL_AccountExists(playername))
{
if(gmx == 0)
{
GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
}
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
PlayerInfo[playerid][pVirtualWorld] = GetPlayerVirtualWorld(playerid);
GetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
new index = SQL_PrepareUpdate(playername);
if (index != -1)
{
.................
index = SQL_PrepareUpdate(playername);
SQL_UpdateInt(index, "PlayerVehicleModel1",PlayerInfo[playerid][PlayerVehicleModel1]);
SQL_UpdateFloat(index, "PlayerVehicleFacing1",PlayerInfo[playerid][PlayerVehicleFacing1]);
SQL_UpdateInt(index, "PlayerVehicle1Color",PlayerInfo[playerid][pPlayerVehicle1Color]);
SQL_UpdateInt(index, "PlayerVehicle1Color2",PlayerInfo[playerid][pPlayerVehicle1Color2]);
SQL_UpdateFloat(index, "PlayerVehiclePosX1",PlayerInfo[playerid][PlayerVehiclePosX1]);
SQL_UpdateFloat(index, "PlayerVehiclePosY1",PlayerInfo[playerid][PlayerVehiclePosY1]);
SQL_UpdateFloat(index, "PlayerVehiclePosZ1",PlayerInfo[playerid][PlayerVehiclePosZ1]);
SQL_UpdateInt(index, "PlayerVehicle1PaintJob",PlayerInfo[playerid][PlayerVehicle1PaintJob]);
SQL_UpdateInt(index, "PlayerVehicle1Nos",PlayerInfo[playerid][PlayerVehicle1Nos]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot0",PlayerInfo[playerid][PlayerVehicle1ModSlot0]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot1",PlayerInfo[playerid][PlayerVehicle1ModSlot1]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot2",PlayerInfo[playerid][PlayerVehicle1ModSlot2]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot3",PlayerInfo[playerid][PlayerVehicle1ModSlot3]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot4",PlayerInfo[playerid][PlayerVehicle1ModSlot4]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot5",PlayerInfo[playerid][PlayerVehicle1ModSlot5]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot6",PlayerInfo[playerid][PlayerVehicle1ModSlot6]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot7",PlayerInfo[playerid][PlayerVehicle1ModSlot7]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot8",PlayerInfo[playerid][PlayerVehicle1ModSlot8]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot9",PlayerInfo[playerid][PlayerVehicle1ModSlot9]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot10",PlayerInfo[playerid][PlayerVehicle1ModSlot10]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot11",PlayerInfo[playerid][PlayerVehicle1ModSlot11]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot12",PlayerInfo[playerid][PlayerVehicle1ModSlot12]);
SQL_UpdateInt(index, "PlayerVehicle1ModSlot13",PlayerInfo[playerid][PlayerVehicle1ModSlot13]);
SQL_UpdateInt(index, "VehLock1",PlayerInfo[playerid][pVehLock1]);
SQL_UpdateInt(index, "VehLocked1",PlayerInfo[playerid][pVehLocked1]);
SQL_UpdateInt(index, "PlayerVehicle1Interior",PlayerInfo[playerid][PlayerVehicle1Interior]);
SQL_UpdateInt(index, "PlayerVehicle1VirWorld",PlayerInfo[playerid][PlayerVehicle1VirWorld]);
SQL_UpdateInt(index, "PlayerVehicleModel2",PlayerInfo[playerid][PlayerVehicleModel2]);
SQL_UpdateFloat(index, "PlayerVehicleFacing2",PlayerInfo[playerid][PlayerVehicleFacing2]);
SQL_UpdateInt(index, "PlayerVehicle2Color",PlayerInfo[playerid][pPlayerVehicle2Color]);
SQL_UpdateInt(index, "PlayerVehicle2Color2",PlayerInfo[playerid][pPlayerVehicle2Color2]);
SQL_UpdateFloat(index, "PlayerVehiclePosX2",PlayerInfo[playerid][PlayerVehiclePosX2]);
SQL_UpdateFloat(index, "PlayerVehiclePosY2",PlayerInfo[playerid][PlayerVehiclePosY2]);
SQL_UpdateFloat(index, "PlayerVehiclePosZ2",PlayerInfo[playerid][PlayerVehiclePosZ2]);
SQL_UpdateInt(index, "PlayerVehicle2PaintJob",PlayerInfo[playerid][PlayerVehicle2PaintJob]);
SQL_UpdateInt(index, "PlayerVehicle2Nos",PlayerInfo[playerid][PlayerVehicle2Nos]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot0",PlayerInfo[playerid][PlayerVehicle2ModSlot0]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot1",PlayerInfo[playerid][PlayerVehicle2ModSlot1]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot2",PlayerInfo[playerid][PlayerVehicle2ModSlot2]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot3",PlayerInfo[playerid][PlayerVehicle2ModSlot3]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot4",PlayerInfo[playerid][PlayerVehicle2ModSlot4]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot5",PlayerInfo[playerid][PlayerVehicle2ModSlot5]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot6",PlayerInfo[playerid][PlayerVehicle2ModSlot6]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot7",PlayerInfo[playerid][PlayerVehicle2ModSlot7]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot8",PlayerInfo[playerid][PlayerVehicle2ModSlot8]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot9",PlayerInfo[playerid][PlayerVehicle2ModSlot9]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot10",PlayerInfo[playerid][PlayerVehicle2ModSlot10]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot11",PlayerInfo[playerid][PlayerVehicle2ModSlot11]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot12",PlayerInfo[playerid][PlayerVehicle2ModSlot12]);
SQL_UpdateInt(index, "PlayerVehicle2ModSlot13",PlayerInfo[playerid][PlayerVehicle2ModSlot13]);
SQL_UpdateInt(index, "VehLock2",PlayerInfo[playerid][pVehLock2]);
SQL_UpdateInt(index, "VehLocked2",PlayerInfo[playerid][pVehLocked2]);
SQL_UpdateInt(index, "PlayerVehicle2Interior",PlayerInfo[playerid][PlayerVehicle2Interior]);
SQL_UpdateInt(index, "PlayerVehicle2VirWorld",PlayerInfo[playerid][PlayerVehicle2VirWorld]);
SQL_UpdateInt(index, "PlayerVehicleModel3",PlayerInfo[playerid][PlayerVehicleModel3]);
SQL_UpdateFloat(index, "PlayerVehicleFacing3",PlayerInfo[playerid][PlayerVehicleFacing3]);
SQL_UpdateInt(index, "PlayerVehicle3Color",PlayerInfo[playerid][pPlayerVehicle3Color]);
SQL_UpdateInt(index, "PlayerVehicle3Color2",PlayerInfo[playerid][pPlayerVehicle3Color2]);
SQL_UpdateFloat(index, "PlayerVehiclePosX3",PlayerInfo[playerid][PlayerVehiclePosX3]);
SQL_UpdateFloat(index, "PlayerVehiclePosY3",PlayerInfo[playerid][PlayerVehiclePosY3]);
SQL_UpdateFloat(index, "PlayerVehiclePosZ3",PlayerInfo[playerid][PlayerVehiclePosZ3]);
SQL_UpdateInt(index, "PlayerVehicle3PaintJob",PlayerInfo[playerid][PlayerVehicle3PaintJob]);
SQL_UpdateInt(index, "PlayerVehicle3Nos",PlayerInfo[playerid][PlayerVehicle3Nos]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot0",PlayerInfo[playerid][PlayerVehicle3ModSlot0]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot1",PlayerInfo[playerid][PlayerVehicle3ModSlot1]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot2",PlayerInfo[playerid][PlayerVehicle3ModSlot2]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot3",PlayerInfo[playerid][PlayerVehicle3ModSlot3]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot4",PlayerInfo[playerid][PlayerVehicle3ModSlot4]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot5",PlayerInfo[playerid][PlayerVehicle3ModSlot5]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot6",PlayerInfo[playerid][PlayerVehicle3ModSlot6]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot7",PlayerInfo[playerid][PlayerVehicle3ModSlot7]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot8",PlayerInfo[playerid][PlayerVehicle3ModSlot8]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot9",PlayerInfo[playerid][PlayerVehicle3ModSlot9]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot10",PlayerInfo[playerid][PlayerVehicle3ModSlot10]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot11",PlayerInfo[playerid][PlayerVehicle3ModSlot11]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot12",PlayerInfo[playerid][PlayerVehicle3ModSlot12]);
SQL_UpdateInt(index, "PlayerVehicle3ModSlot13",PlayerInfo[playerid][PlayerVehicle3ModSlot13]);
SQL_UpdateInt(index, "VehLock3",PlayerInfo[playerid][pVehLock3]);
SQL_UpdateInt(index, "VehLocked3",PlayerInfo[playerid][pVehLocked3]);
SQL_UpdateInt(index, "PlayerVehicle3Interior",PlayerInfo[playerid][PlayerVehicle3Interior]);
SQL_UpdateInt(index, "PlayerVehicle3VirWorld",PlayerInfo[playerid][PlayerVehicle3VirWorld]);
SQL_UpdateInt(index, "PlayerVehicleModel4",PlayerInfo[playerid][PlayerVehicleModel4]);
SQL_UpdateFloat(index, "PlayerVehicleFacing4",PlayerInfo[playerid][PlayerVehicleFacing4]);
SQL_UpdateInt(index, "PlayerVehicle4Color",PlayerInfo[playerid][pPlayerVehicle4Color]);
SQL_UpdateInt(index, "PlayerVehicle4Color2",PlayerInfo[playerid][pPlayerVehicle4Color2]);
SQL_UpdateFloat(index, "PlayerVehiclePosX4",PlayerInfo[playerid][PlayerVehiclePosX4]);
SQL_UpdateFloat(index, "PlayerVehiclePosY4",PlayerInfo[playerid][PlayerVehiclePosY4]);
SQL_UpdateFloat(index, "PlayerVehiclePosZ4",PlayerInfo[playerid][PlayerVehiclePosZ4]);
SQL_UpdateInt(index, "PlayerVehicle4PaintJob",PlayerInfo[playerid][PlayerVehicle4PaintJob]);
SQL_UpdateInt(index, "PlayerVehicle4Nos",PlayerInfo[playerid][PlayerVehicle4Nos]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot0",PlayerInfo[playerid][PlayerVehicle4ModSlot0]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot1",PlayerInfo[playerid][PlayerVehicle4ModSlot1]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot2",PlayerInfo[playerid][PlayerVehicle4ModSlot2]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot3",PlayerInfo[playerid][PlayerVehicle4ModSlot3]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot4",PlayerInfo[playerid][PlayerVehicle4ModSlot4]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot5",PlayerInfo[playerid][PlayerVehicle4ModSlot5]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot6",PlayerInfo[playerid][PlayerVehicle4ModSlot6]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot7",PlayerInfo[playerid][PlayerVehicle4ModSlot7]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot8",PlayerInfo[playerid][PlayerVehicle4ModSlot8]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot9",PlayerInfo[playerid][PlayerVehicle4ModSlot9]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot10",PlayerInfo[playerid][PlayerVehicle4ModSlot10]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot11",PlayerInfo[playerid][PlayerVehicle4ModSlot11]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot12",PlayerInfo[playerid][PlayerVehicle4ModSlot12]);
SQL_UpdateInt(index, "PlayerVehicle4ModSlot13",PlayerInfo[playerid][PlayerVehicle4ModSlot13]);
SQL_UpdateInt(index, "VehLock4",PlayerInfo[playerid][pVehLock4]);
SQL_UpdateInt(index, "VehLocked4",PlayerInfo[playerid][pVehLocked4]);
SQL_UpdateInt(index, "PlayerVehicle4Interior",PlayerInfo[playerid][PlayerVehicle4Interior]);
SQL_UpdateInt(index, "PlayerVehicle4VirWorld",PlayerInfo[playerid][PlayerVehicle4VirWorld]);
SQL_UpdateInt(index, "PlayerVehicleModel5",PlayerInfo[playerid][PlayerVehicleModel5]);
SQL_UpdateFloat(index, "PlayerVehicleFacing5",PlayerInfo[playerid][PlayerVehicleFacing5]);
SQL_UpdateInt(index, "PlayerVehicle5Color",PlayerInfo[playerid][pPlayerVehicle5Color]);
SQL_UpdateInt(index, "PlayerVehicle5Color2",PlayerInfo[playerid][pPlayerVehicle5Color2]);
SQL_UpdateFloat(index, "PlayerVehiclePosX5",PlayerInfo[playerid][PlayerVehiclePosX5]);
SQL_UpdateFloat(index, "PlayerVehiclePosY5",PlayerInfo[playerid][PlayerVehiclePosY5]);
SQL_UpdateFloat(index, "PlayerVehiclePosZ5",PlayerInfo[playerid][PlayerVehiclePosZ5]);
SQL_UpdateInt(index, "PlayerVehicle5PaintJob",PlayerInfo[playerid][PlayerVehicle5PaintJob]);
SQL_UpdateInt(index, "PlayerVehicle5Nos",PlayerInfo[playerid][PlayerVehicle5Nos]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot0",PlayerInfo[playerid][PlayerVehicle5ModSlot0]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot1",PlayerInfo[playerid][PlayerVehicle5ModSlot1]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot2",PlayerInfo[playerid][PlayerVehicle5ModSlot2]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot3",PlayerInfo[playerid][PlayerVehicle5ModSlot3]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot4",PlayerInfo[playerid][PlayerVehicle5ModSlot4]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot5",PlayerInfo[playerid][PlayerVehicle5ModSlot5]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot6",PlayerInfo[playerid][PlayerVehicle5ModSlot6]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot7",PlayerInfo[playerid][PlayerVehicle5ModSlot7]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot8",PlayerInfo[playerid][PlayerVehicle5ModSlot8]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot9",PlayerInfo[playerid][PlayerVehicle5ModSlot9]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot10",PlayerInfo[playerid][PlayerVehicle5ModSlot10]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot11",PlayerInfo[playerid][PlayerVehicle5ModSlot11]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot12",PlayerInfo[playerid][PlayerVehicle5ModSlot12]);
SQL_UpdateInt(index, "PlayerVehicle5ModSlot13",PlayerInfo[playerid][PlayerVehicle5ModSlot13]);
SQL_UpdateInt(index, "VehLock5",PlayerInfo[playerid][pVehLock5]);
SQL_UpdateInt(index, "VehLocked5",PlayerInfo[playerid][pVehLocked5]);
SQL_UpdateInt(index, "PlayerVehicle5Interior",PlayerInfo[playerid][PlayerVehicle5Interior]);
SQL_UpdateInt(index, "PlayerVehicle5VirWorld",PlayerInfo[playerid][PlayerVehicle5VirWorld]);
SQL_UpdateInt(index, "CarTime",PlayerInfo[playerid][pCarTime]);
SQL_UpdateInt(index, "Phonebook",PlayerInfo[playerid][pPhoneBook]);
SQL_UpdateInt(index, "HouseTicket",PlayerInfo[playerid][pHouseTicket]);
SQL_UpdateInt(index, "BusinessTicket",PlayerInfo[playerid][pBusinessTicket]);
SQL_UpdateInt(index, "VehicleTicket",PlayerInfo[playerid][pVehicleTicket]);
SQL_UpdateInt(index, "GateTicket",PlayerInfo[playerid][pGateTicket]);
SQL_UpdateInt(index, "GarageTicket",PlayerInfo[playerid][pGarageTicket]);
SQL_UpdateInt(index, "BoomBox",PlayerInfo[playerid][pBoomBox]);
SQL_UpdateInt(index, "LottoNr",PlayerInfo[playerid][pLottoNr]);
SQL_UpdateInt(index, "Fishes",PlayerInfo[playerid][pFishes]);
SQL_UpdateInt(index, "BiggestFish",PlayerInfo[playerid][pBiggestFish]);
SQL_UpdateInt(index, "Job",PlayerInfo[playerid][pJob]);
SQL_UpdateInt(index, "Job2",PlayerInfo[playerid][pJob2]);
SQL_UpdateInt(index, "Paycheck",PlayerInfo[playerid][pPayCheck]);
SQL_UpdateInt(index, "HeadValue",PlayerInfo[playerid][pHeadValue]);
SQL_UpdateInt(index, "BHHeadValue",PlayerInfo[playerid][pBHHeadValue]);
SQL_UpdateInt(index, "Jailed",PlayerInfo[playerid][pJailed]);
SQL_Update(index);
index = SQL_PrepareUpdate(playername);
......
SQL_Update(index);
}
else printf("Warnung: Konnte nicht geupdatet werden '%s'.", PlayerName(playerid));
}
SavePlayerClothing(playerid);
}
}
return 1;
}