Ahhhh,
danke
Beiträge von Countibounty
-
-
Hallöchen liebe Community,
ich habe ein kleines Problem.
Ich habe vergessen wie man es anstellt das jemand der von einem anderen geschlagen wurde in ein bestimmtes Team gesetzt wird.
Das heißt wenn die schlagende Person in Team Beispiel1 ist soll die geschlagene Person auch in Beispiel1 geswitcht wird.
Team Beispiel1 ist schon alles definiert etc,
ich habe eben nur vergessen wie das schlagen/geschlagene Ding ging.OnPlayerHittet oder sowas?
Danke im Vorraus :3
MfG
-
Wenn du keins benutzt musst du erdtmal eins scripten...
-
Wtf, 1. Falsche Sektion,
2. Nochnicht lange genug Mitglied um in die richtige Sektion zu posten
3. Deine Signatur? xD -
Müsste eig funktionieren o0
-
Huuuiii
Normalerweise bin ich ja ganz Still aber laut Chip.de ist ein Bild der GTA 5 Map aufgetaucht
Ich bin aber sehr enttäuscht das kein San Fierro und kein Las Venturas zu finden ist.
Das finde ich macht GTA SA aber weiterhin zu einem tollen Unikat
Quelle:
http://www.chip.de/downloads/G…_content=1378906285172574
Grüsse
Schlechte Idee :3
http://www.spieletipps.de/n_30095/
http://www.playnation.de/spiele-news/gta…en-id48285.html
http://www.animes.so/game-news-408/gta-5…tllung-3865.htm
http://www.webnews.de/1553255/news-gta-5…ichten-inhalten -
Also ich hab mich mal neu registriert aufm Server zum Test
Da steht das ich 0 Zigaretten hab nicht so Buggy wie beim Testacc .D
Probiert mal rein zu kommen :
Name - Count
Passwort - lollol -
Shine:
http://www.spieletipps.de/n_30095/
http://www.playnation.de/spiel…ten-inhalten-id48285.html
http://www.animes.so/game-news…len-vorbestllung-3865.htm
http://www.webnews.de/1553255/…eroeffentlichten-inhalten//EDIT
Ich versuche dich hier vor einer hohen Geldstrafe zu bewahren,
mehr nicht.
Aber stimmt, Rockstar würde NIEMALS auf die Idee kommen in einem der größten GTA Foren nach soetwas zu suchen :3//EDIT 2
Fail D:
-
Nur 10 € ?
Das ist mal ein gutes Angebot -
Schon GTA neu Installiert?
-
Function OnVehicleDeath(vehicleid, killerid)
{
// FRAC_OnVehicleDeath(vehicleid, killerid);
// for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
// {
// for(new x = 0; x < MaxVeh; x++)
// {
// if(IsPlayerConnected(playerid) && Dtc_PlayerHaveCar[playerid][x])
// {
// if (vehicleid == PlayerCar[playerid][x][CarId])
// {
// DestroyVehicle(PlayerCar[playerid][x][CarId]);
// PlayerCarSpawn(playerid,x);
// }
// }
// }
// }
// return 1;
return 1;
} -
Klammer einfach mal alles aus was du gepostet hast und unter OnVehicleDeath geschrieben hast denn das was du gepostet hast sagt aus das das Car zerstört werden soll und dann gespannt werden.
Entweder du nimmst PlayercarSpawn & DestroyVehicle raus oder klammerst direkt alles aus -
-
Ist nichts besonderes, ich mag es schön schlicht.
Wenns dir nicht gefällt tuts mir Leid,
das ist wirklich Geschmackssache -
Achsooo mit dem Besitz XD Ich dachte wenn er Fahrer ist, tut mir Leid falsch gelesen xD
-
IsPlayerDriverReturns the 1 if they are, returns 0 if they arent
Parameters:
(playerid)
playerid The playerid you want to query
Returns 1 if they are a driver, 0 if they aren't
IsPlayerDriver(5);By: Sacky
Quelle :
http://wiki.sa-mp.com/wiki/Useful_Functions#IsPlayerDriver -
Welche Zeile ist Nummer 28073?
//EDIT
SendClientMessage(playerid,0xFF0000FF,"Du bist nicht am "/freikaufen"-Punkt.");
in
SendClientMessage(playerid,0xFF0000FF,"Du bist nicht am '/freikaufen'-Punkt."[/color]); -
Cleo 3 ggf Cleo 4 Installieren und die Digihp.cs in den 'Cleo' Ordner
-
Ob es laggt kann ich später alles machen ich will erstmal das es speichert
-
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 helfenQuellcode :
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;
}