Beiträge von AroX
-
-
Sehr schöne Arbeit!
Gefällt mir sehr gut, ich hätte evtl. Interesse.
-
C
Alles anzeigenPUBLIC:sekunden() { new string[50], tick = gettime(); for(new i=0; i<MAX_PLAYERS; i++) { if(!IsPlayerConnected(i) || IsPlayerNPC(i) || pTick[i]+60 > tick) continue; PlayerInfo[i][pPayDay]++; format(string,sizeof(string),"Payday in: %i min",60-PlayerInfo[i][pPayDay]); PlayerTextDrawSetString(paydaytex[i],string); pTick[i] = tick; } return 1; }
PlayerTextDrawSetString habe ich gerade noch mal abgeändert. -
SetTimer("sekunden",1000,true);
PUBLIC:sekunden()
{
new string[50], tick = gettime();
for(new i=0; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i) IsPlayerNPC(i) pTick[i]+60 > tick) continue;
PlayerInfo[i][pPayDay]++;
format(string,sizeof(string),"Payday in: %i min",60-PlayerInfo[i][pPayDay]);
TextDrawSetString(paydaytex[i],string);
pTick[i] = tick;
}
return 1;
} -
Dankesehr, soweit funktioniert alles, nur geht die Zeit z.B. immer von 27 Minuten auf 25 Minuten.
Also immer in zweier Schritten runter. -
Hay habe nun alles gemacht, nur leider zeigt er den Textdraw noch immer nicht an.
Warnings:
C:\Users\Lukas\Desktop\PRB Scripting\pawno\WB.pwn(5877) : warning 213: tag mismatch
C:\Users\Lukas\Desktop\PRB Scripting\pawno\WB.pwn(8128) : warning 213: tag mismatchpublic OnPlayerConnect(playerid)
{paydaytex[playerid] = CreatePlayerTextDraw(playerid, 68.000000, 437.000000, ""); //ZEILE 5877
TextDrawBackgroundColor(paydaytex[playerid], 255);
TextDrawFont(paydaytex[playerid], 1);
TextDrawLetterSize(paydaytex[playerid], 0.500000, 1.000000);
TextDrawColor(paydaytex[playerid], 16711935);
TextDrawSetOutline(paydaytex[playerid], 0);
TextDrawSetProportional(paydaytex[playerid], 1);
TextDrawSetShadow(paydaytex[playerid], 1);
TextDrawSetSelectable(paydaytex[playerid], 0); //playeridBei OnPlayerConnect
PlayerTextDrawShow(playerid,paydaytex[playerid]); //ZEILE 8128
-
Danke, da ich das Textdraw nun unter OnPlayerConnect geschrieben habe wird es nicht mehr angezeigt.
C
Alles anzeigenpublic OnPlayerConnect(playerid) { // new string[160]; for(new i=0; i<MAX_PLAYERS; i++) { paydaytex[i] = TextDrawCreate(68.000000, 437.000000, ""); TextDrawBackgroundColor(paydaytex[i], 255); TextDrawFont(paydaytex[i], 1); TextDrawLetterSize(paydaytex[i], 0.500000, 1.000000); TextDrawColor(paydaytex[i], 16711935); TextDrawSetOutline(paydaytex[i], 0); TextDrawSetProportional(paydaytex[i], 1); TextDrawSetShadow(paydaytex[i], 1); TextDrawSetSelectable(paydaytex[i], 0); //playerid } pTick[playerid] = gettime();
-
Mh.., der Quellencode funktioniert bei mir komischerweise gerade nicht richtig, ich poste es mal so.
Ich bekomme bei dem Timer einen Error.Error:
C:\Users\Lukas\Desktop\PRB Scripting\pawno\WB.pwn(13660) : error 017: undefined symbol "playerid"Zeile:
SetTimerEx("sekunden",1000,1,"i",playerid); -
<p>Herzlichen dank, nur leider geht der Textdraw nun jede Sekunde eine Zahl weiter. </p><p>Da ich einen Timer gesetzt habe: SetTimer("sekunden",1000,true); wenn ich ihn nun auf eine Minute stelle, löst es ja mein Problem noch nicht. </p><p>Wie genau setze ich das ganze nun das die Zeit direkt dann aktualisiert wird wenn eine weitere Spielminute abgeschlossen ist?</p>
-
-
Moinsen,
ich bin gerade bei eine PayDay-Anzeige über ein Textdraw für jeden Spieler laufen zulassen, nur leider bekomme ich 2 Errors.
Error's:
CC:\Users\Lukas\Desktop\PRB Scripting\pawno\WB.pwn(54896) : error 017: undefined symbol "playerid" C:\Users\Lukas\Desktop\PRB Scripting\pawno\WB.pwn(54897) : error 017: undefined symbol "i"
Text:Cformat(string,50,"Payday in: %i min",60-PlayerInfo[playerid][pPayDay]); //Zeile 54896 TextDrawSetString(paydaytex[i],string); //Zeile 54897
Ich hoffe, dass mir jemand Helfen kann.MfG,
AroX -
Ja! Es speichert! Ich danke dir!
-
Du kannst es ja in der Datenbank mal auf 1000 setzen, ob das dann geladen wird, dann wissen wir wenigstens, ob da der Fehler liegt.
Wenn ich mir über die Datenbank Geld gebe und dann auf den Server Joine habe ich das Geld.
Ich habe mir nun auch mal im Game 10000$ geben und danach alles speichern lassen.
Server.logC
Alles anzeigen---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [16:29:50] [16:29:50] Server Plugins [16:29:50] -------------- [16:29:50] Loading plugin: mysql.so [16:29:50] > MySQL plugin R5 successfully loaded. [16:29:50] Loaded. [16:29:50] Loading plugin: streamer.so [16:29:50] *** Streamer Plugin v2.7.8 by Incognito loaded *** [16:29:50] Loaded. [16:29:50] Loading plugin: sscanf.so [16:29:50] [16:29:50] =============================== [16:29:50] sscanf plugin loaded. [16:29:50] Version: 2.8.1 [16:29:50] (c) 2012 Alex "Y_Less" Cole [16:29:50] =============================== [16:29:50] Loaded. [16:29:50] Loading plugin: filemanager.so [16:29:50] ****************** [16:29:50] ** FILE MANAGER ** [16:29:50] ** Loaded ** [16:29:50] ** Version 1.1 ** [16:29:50] ****************** [16:29:50] Loaded. [16:29:50] Loaded 4 plugins. [16:29:50] [16:29:50] Filterscripts [16:29:50] --------------- [16:29:50] Loaded 0 filterscripts. [16:29:50] SERVER: Der Server wurde erfolgreich gestartet [16:29:50] SERVER: Versucht die Verbindung zur Datenbank aufzubauen [16:29:50] OnGamemodeInt: LoadBiz (1ms) [16:29:50] OnGamemodeInt: LoadSBiz (1ms) [16:29:50] OnGamemodeInt: LoadTankenBiz (1ms) [16:29:50] OnGamemodeInt: LoadStuff (2ms) [16:29:50] OnGamemodeInt: LoadKassenInfo (0ms) [16:29:50] OnGamemodeInt: LoadGangfightZones (0ms) [16:29:50] OnGamemodeInt: LoadGangWarInfos (2ms) [16:29:50] OnGamemodeInt: LoadGangBNDInfos (0ms) [16:29:50] sscanf warning: String buffer overflow. [16:29:50] OnGamemodeInt: LoadHauser (2ms) [16:29:50] OnGamemodeInt: loadDynamicPickups (1ms) [16:29:50] OnGamemodeInt: loadDynamicMapIcons (0ms) [16:29:50] OnGamemodeInt: loadDynamicTextLabels (0ms) [16:29:50] OnGamemodeInt: loadGangWeapons (1ms) [16:29:50] OnGamemodeInt: loadAmmuWeapons (0ms) [16:29:50] OnGamemodeInt: loadHausWeapons (0ms) [16:29:50] OnGamemodeInt: LoadFactionVehicles (3ms) [16:29:50] Totaltime taken to load MySQL Stuffs: 14sm [16:29:50] sscanf warning: Strings without a length are deprecated, please add a destination size. [16:29:50] Beginne Autos zu spawnen [16:29:50] Autos wurden erfolgreich Geladen und Gespawnt [16:29:50] 3DTexte erfolgreich Geladen [16:29:50] [16:29:50] [16:29:50] Project-RedBull [16:29:50] _____________________ [16:29:50] Project-RedBull erfolgreich geladen! [16:29:50] [16:29:50] Number of vehicle models: 93 [16:29:50] [connection] 87.98.241.207:48192 requests connection cookie. [16:29:50] [connection] 87.98.241.207:60718 requests connection cookie. [16:29:50] [connection] 87.98.241.207:44905 requests connection cookie. [16:29:51] [connection] 87.98.241.207:56958 requests connection cookie. [16:29:51] [connection] 87.98.241.207:47850 requests connection cookie. [16:29:51] [connection] 87.98.241.207:54684 requests connection cookie. [16:29:51] [connection] 87.98.241.207:51860 requests connection cookie. [16:29:51] [connection] 87.98.241.207:43598 requests connection cookie. [16:29:51] [connection] incoming connection: 87.98.241.207:48192 id: 0 [16:29:51] [connection] incoming connection: 87.98.241.207:60718 id: 1 [16:29:51] [connection] incoming connection: 87.98.241.207:44905 id: 2 [16:29:51] [npc:join] Drogendealer has joined the server (0:87.98.241.207) [16:29:52] [connection] incoming connection: 87.98.241.207:56958 id: 3 [16:29:52] [npc:join] Mitarbeiter has joined the server (1:87.98.241.207) [16:29:52] [connection] incoming connection: 87.98.241.207:47850 id: 4 [16:29:52] [npc:join] Coinshop has joined the server (2:87.98.241.207) [16:29:52] [connection] incoming connection: 87.98.241.207:54684 id: 5 [16:29:52] [npc:join] Stadthalle has joined the server (3:87.98.241.207) [16:29:52] [connection] incoming connection: 87.98.241.207:51860 id: 6 [16:29:52] [npc:join] BSN has joined the server (4:87.98.241.207) [16:29:52] [connection] incoming connection: 87.98.241.207:43598 id: 7 [16:29:52] [npc:join] Dimitri has joined the server (5:87.98.241.207) [16:29:52] [npc:join] Manfred has joined the server (6:87.98.241.207) [16:29:52] [npc:join] Nico has joined the server (7:87.98.241.207) [16:30:02] Der Server wurde für Spieler freigegeben! [16:30:06] [connection] 87.143.252.89:62099 requests connection cookie. [16:30:07] [connection] incoming connection: 87.143.252.89:62099 id: 8 [16:30:07] [join] AroX has joined the server (8:87.143.252.89) [16:30:16] AroX hat sich eingeloggt. [ID: 8] [16:30:41] endstring: UPDATE `users` SET `Level`='0', `AdminLevel`='2000', `Checkpoint`='0', `CPrison`='0', `RunningCP`='0', `TeamRadar`='0', `BNDRadar`='0', `Rolex`='0', `Swissonic`='0', `Casio`='0', `Breitling`='0', `Nixon`='0', `IceWatch`='0', `StartCoints`='0', `Coints`='0', `SpawnhealZeit`='0', `DeaglespawnZeit`='0', `M4SpawnZeit`='0', `MP5SpawnZeit`='0', `MehrZinsenZeit`='0', `Medickit`='0', `Startbonus`='0', `Kreditkarte`='0', `KreditkarteBenutzung`='0', `Personalausweis`='0', `Namechange`='0', `DonateRank`='0', `UpgradePoints`='0', `ConnectedTime`='0', `Registered`='0', `Sex`='0', `Age`='0', `Origin`='1', `Muted`='0', `Respect`='0', `Gehalt`='0', `Money`='10000', `Bank`='0', `Jobgeld`='0', `Crimes`='0', `Kills`='0', `sKills`='0', `Deaths`='0', `Arrested`='0', `ArrestTime`='0', `PhoneBook`='0', `LottoNr`='0', `Fishes`='0', `BiggestFish`='0', `Job`='0' WHERE `Name`='AroX' [16:30:42] endstring: UPDATE `users` SET `HeadValue`='0', `Jailed`='0', `JailTime`='0', `Leader`='14', `Member`='-1', `Rank`='12', `Skin`='102', `Vertragszeit`='2' WHERE `Name`='AroX' [16:30:42] endstring: UPDATE `users` SET `NewsSkill`='0', `House`='0', `Mieten`='0', `HealPaket`='0', `ArmourPaket`='0', `WaffenPaket`='0', `OverHealPaket`='0', `FishSkill`='0', `MechSkill`='0', `pSHealth`='50.0', `PhoneNr`='487', `Hotel`='-1', `Biz`='9', `CarLic`='1', `FlyLic`='0', `BoatLic`='0', `FishLic`='0', `GunLic`='1', `Zollpass`='0' WHERE `Name`='AroX' [16:30:42] endstring: UPDATE `users` SET `Gun1`='0', `Gun2`='0', `Gun3`='0', `Gun4`='0', `Ammo1`='0', `Ammo2`='0', `Ammo3`='0', `Ammo4`='0', `CarTime`='0', `PayDay`='375', `PayDayHad`='3', `CDPlayer`='0', `AlcoholPerk`='0', `PainKillerPerk`='0', `PistolSkill`='2', `MaschinePistolSkill`='2', `SturmgewehrPistolSkill`='2', `ShotGunSkill`='1', `DrugPerk`='0', `MiserPerk`='0', `TraderPerk`='0', `Tutorial`='1', `Cptut`='1', `kh`='0', `Warnings`='0' WHERE `Name`='AroX' [16:30:42] endstring: UPDATE `users` SET `Fuel`='0', `Married`='0', `MarriedTo`='Niemand', `WantedLevel`='0', `Spawn`='0', `SavedMaterials`='0', `SavedDrugs`='0', `BikeLic`='0', `LKWLic`='0', `DonatorTime`='0', `WerberName`='Niemand', `FightingStyle`='0', `Handy`='0' WHERE `Name`='AroX' [16:30:42] endstring: UPDATE `users` SET `OnDutySkin`='281', `CarLicPoints`='0', `BikeLicPoints`='0', `InviteSperre`='0', `warntime1`='0', `warntime2`='0', `Ticketsopen`='0', `DonatorTime`='0', `OldName`='Niemand', `ClientIP`='87.143.252.89', `OrgMember`='-1', `OrgLeader`='-1', `OrgManager`='-1', `OrgName`='Keine' WHERE `Name`='AroX' [16:30:42] endstring.: UPDATE `users` SET `Money`='10000' WHERE `Name`='AroX' [16:30:42] Spielers wurden in 571ms gespeichert. [16:30:42] SaveKassenInfo: 0ms [16:30:42] SaveStuff: 1ms [16:30:42] SaveHouses: 0ms [16:30:42] SaveGangfightZones: 1ms [16:30:42] SaveGangWarInfos: 0ms [16:30:42] SaveGangBNDInfos: 1ms [16:30:42] SaveDynamicPickups: 0ms [16:30:42] SaveDynamicMapIcons: 0ms [16:30:42] SaveDynamicTextLabels: 0ms [16:30:42] Der Server wurde in 3ms gespeichert.
-
Einen Datensatz hat dein Spieler in der Datenbank aber schon, oder?
Ja, der Datensatz meines Spielers besteht.
Im Datensatz steht mein Geld leider auch auf 0$.Kannst du mal nachschauen, ob es nicht doch gespeichert wird?
Ich bin eben noch mal gejoint, leider ist mein Geld wieder auf 0$.
Hier noch mal der stock LoadPlayer:
C
Alles anzeigenstock LoadPlayer(playerid) { SetPlayerColor(playerid, COLOR_GRAD1); new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); PlayerInfo[playerid][pModel] = 264; AddPlayer(playerid); gPlayerLogged[playerid] = 0; new playerip[256]; GetPlayerIp(playerid,playerip,sizeof(playerip)); strmid(PlayerInfo[playerid][pUserIP], playerip, 0, strlen(playerip), 255); Logintime[playerid] = -1; if(!IsPlayerNPC(playerid)) UsersOnline++; MaxVeh[playerid] = 3; CarKey[playerid] = 0; gPlayerUsingLoopingAnim[playerid] = 0; gPlayerAnimLibsPreloaded[playerid] = 0; PortedTimer[playerid] = 0; SetPVarInt(playerid, "PVTeam", -1); SetPVarInt(playerid, "PVAdmin", 0); SetPVarInt(playerid, "PVJob", 0); currentHouse[playerid] = -1; FirstSpawnAfterLogin[playerid] = 0; PlayerInfo[playerid][pIsearch] = 0; SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); CellTime[playerid] = 0; Mobile[playerid] = -1; RingTone[playerid] = 0; Uberweisungsid[playerid] = -1; Tot[playerid] = 0; SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; GettingJob[playerid] = 0; AllowTune[playerid] = -1; RobTimer[playerid] = -1; AntiRobTimer[playerid] = 0; TeamRadar[playerid] = 0; BNDRadar[playerid] = 0; MullManOwned[playerid] = -1; TutCP[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0; NoDmTimer[playerid] = 0; NoDmWarnungen[playerid] = 0; UsedFind[playerid] = 0; Eisgekauft[playerid] = 0; CP[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; HitSound[playerid] = 1; //ACode[playerid] = 0; STDPlayer[playerid] = 0; RepairOffer[playerid] = -1; RepairPrice[playerid] = 0; VertragOffer[playerid] = -1; Supportercar[playerid] = -1; TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; HealProds[playerid] = 0; KitPrice[playerid] = -1; LessonOffer[playerid] = -1; LessonPrice[playerid] = 0; TakingLesson[playerid] = 0; Bergwerkarbeit[playerid] = 0; RefillOffer[playerid] = -1; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0; HotdogOffer[playerid] = -1; HotdogPrice[playerid] = 0; HealPrice[playerid] = -1; PlayerHeal[playerid] = -1; HealOffer[playerid] = -1; BlowJob[playerid] = -1; KitOffer[playerid] = -1; UnDrugs[playerid] = 0; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0; PlayerTied[playerid] = 0; Detektivschutz[playerid] = 0; RegistrationStep[playerid] = 0; ConnectedToPC[playerid] = 0; JailPrice[playerid] = 0; MedicBill[playerid] = -1; MedicBillTimer[playerid] = -1; LoginTimer[playerid] = -1; Handyraubtimer[playerid] = -1; GoChase[playerid] = -1; ContractTaked[playerid] = 0; Maske[playerid] = 0; OrderReady[playerid] = 0; PlacedNews[playerid] = 0; OnDuty[playerid] = 0; TestFishes[playerid] = 0; EventEingeladen[playerid] = 0; TransportDuty[playerid] = 0; BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicAccepted[playerid] = -1; WhelAccepted[playerid] = -1; MechanicCallTime[playerid] = 0; TobyPoints[playerid] = 0; FindTimePoints[playerid] = 0; TobyTime[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0; Mobile[playerid] = -1; Music[playerid] = 0; Spectate[playerid] = -1; PlayerDrunkTime[playerid] = 0; WheelmanAccepted[playerid] = -1; HaveDonuts[playerid] = 0; EatDonutAktive[playerid] = 0; PilotenDuty[playerid] = 0; Route[playerid] = 0; Angekommen[playerid] = 0; Geladen[playerid] = 0; LadeGeld[playerid] = 0; GeldStatus[playerid] = 0; Busdienst[playerid] = 0; Orten[playerid] = 0; Runterholen[playerid] = 0; ContractSperre[playerid] = 0; gLastCar[playerid] = 0; WantedLoseAllow[playerid] = 0; SpawnKillAktiv[playerid] = 0; gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0; TogAdminChat[playerid] = 0; TogLoginLogout[playerid] = 1; TogAdminMessage[playerid] = 1; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0; PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; PlayerStonedTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; CodesHolding[playerid] = 0; TazerCan[playerid] = 0; MatsHolding[playerid] = 0; gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; PlayerInfo[playerid][pCash] = 0; Blitzed[playerid] = 0; TransportValue[playerid] = 0; TransportMoney[playerid] = 0; WTransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999; PlayerPaintballing[playerid] = 0; PlayerTeamPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; FallAngenommen[playerid] = -1; FallAngenommenTimer[playerid] = 0; FallAngenommenAnwalt[playerid] = -1; ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; TotenOffer[playerid] = 999; InviteOffer[playerid] = -1; InviteTeam[playerid] = -1; AntiAFKCode[playerid] = 0; AntiAFKTime[playerid] = 0; AntiAFKTimer[playerid] = 0; AFKChecker[playerid] = -1; InviteOrgOffer[playerid] = -1; InviteOrgTeam[playerid] = -1; Kleidungsshop[playerid] = -1; AFKKick[playerid] = 0; PlayerInfo[playerid][pJoinhaben] = 0; AFKModus[playerid] = 0; JobFreeze[playerid] = 0; Weedkaufen[playerid] = 0; HotdogTime[playerid] = 0; //HotdogLager[playerid] = 0; TicketSys[playerid][TSAdminID] = -1; PlayerInfo[playerid][pLKWLic] = 0; TicketSys[playerid][TSUserID] = -1; PlayerInfo[playerid][CurrentPos][0] = 0; PlayerInfo[playerid][CurrentPos][1] = 0; PlayerInfo[playerid][CurrentPos][2] = 0; strmid(TicketSys[playerid][TSText], "------", 0, strlen("------"), 255); WantedHackZeit[playerid] = -1; HackArt[playerid] = 0; WantedHackKunde[playerid] = -1; ImPrison[playerid] = 0; ImCPPrison[playerid] = 0; HackAnzahl[playerid] = 0; DrugOffer[playerid] = 999; DrugPrice[playerid] = 0; DrogenGenommen[playerid] = 0; DrugGram[playerid] = 0; bietetAn[playerid]={-1,0}; Healsperre[playerid] = 0; SDPistol[playerid] = 0; Neumm[playerid] = 0; Deagle[playerid] = 0; MP5[playerid] = 0; Shotgun[playerid] = 0; AK47[playerid] = 0; M4[playerid] = 0; Rifle[playerid] = 0; GivePlayerMoneys(playerid,PlayerInfo[playerid][pCash]); PlayerInfo[playerid][pBerg] = 0; PlayerInfo[playerid][pWarimVersteck] = 0; PlayerInfo[playerid][pAufgabe1] = 0; PlayerInfo[playerid][pHatschon] = 0; PlayerInfo[playerid][pSchongeandert] = 0; PlayerInfo[playerid][pZigarette] = 0; PlayerInfo[playerid][pHatschon1] = 0; PlayerInfo[playerid][pAuftrag1] = 0; PlayerInfo[playerid][pAuftrag2] = 0; PlayerInfo[playerid][pAuftrag3] = 0; PlayerInfo[playerid][pAuftrag4] = 0; PlayerInfo[playerid][pAuftrag5] = 0; PlayerInfo[playerid][pAuftrag6] = 0; PlayerInfo[playerid][pAuftrag7] = 0; PlayerInfo[playerid][pAuftrag8] = 0; PlayerInfo[playerid][pAuftrag9] = 0; PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pStatus] = 0 ; PlayerInfo[playerid][pAdmin] = 0; PlayerInfo[playerid][pStartbonus] = 0; PlayerInfo[playerid][pKreditkartebenutzen] = 0; PlayerInfo[playerid][pKreditkarte] = 0; PlayerInfo[playerid][pGebDatum] = 0; PlayerInfo[playerid][pPersonalausweis] = 0; PlayerInfo[playerid][pGewaschen] = 0; PlayerInfo[playerid][pAndreasLohn] = 0; PlayerInfo[playerid][pKartoffelnhaben] = 0; PlayerInfo[playerid][pKartoffelwaschen] = 0; PlayerInfo[playerid][pGehalt] = 0; PlayerInfo[playerid][pBanned] = 0; PlayerInfo[playerid][pGeldsack] = 0; PlayerInfo[playerid][pSchwul] = 0; PlayerInfo[playerid][pVerwarnung] = 0; PlayerInfo[playerid][sPfandflaschen] = 0; PlayerInfo[playerid][pJonnysagt] = 0; PlayerInfo[playerid][pAlexsagt] = 0; PlayerInfo[playerid][pGuntersagt] = 0; PlayerInfo[playerid][pDrogenSamen] = 0; PlayerInfo[playerid][pSchlagen] = 0; PlayerInfo[playerid][pBrecheisen] = 0; PlayerInfo[playerid][pReingegangen] = 0; PlayerInfo[playerid][pRausgegangen] = 0; PlayerInfo[playerid][pWheelmangerufen] = 0; PlayerInfo[playerid][pMedickit] = 0; PlayerInfo[playerid][pDonatorRank] = 0; PlayerInfo[playerid][gPupgrade] = 0; PlayerInfo[playerid][pConnectTime] = 0; PlayerInfo[playerid][pReg] = 0; PlayerInfo[playerid][pSex] = 0; PlayerInfo[playerid][pMeldunggekommen] = 0; PlayerInfo[playerid][pAlter] = 0; PlayerInfo[playerid][pOrigin] = 0; PlayerInfo[playerid][pRespekt] = 0; PlayerInfo[playerid][pBank] = 0; PlayerInfo[playerid][pJobLohn] = 0; PlayerInfo[playerid][pCrimes] = 0; PlayerInfo[playerid][pDeaths] = 0; PlayerInfo[playerid][pArrested] = 0; PlayerInfo[playerid][pArrestTime] = 0; PlayerInfo[playerid][pPhoneBook] = 0; PlayerInfo[playerid][pLottoNr] = 0; PlayerInfo[playerid][pFishes] = 0; PlayerInfo[playerid][pBiggestFish] = 0; PlayerInfo[playerid][pJob] = 0; PlayerInfo[playerid][pHeadValue] = 0; PlayerInfo[playerid][pJailed] = 0; PlayerInfo[playerid][pJailTime] = 0; PlayerInfo[playerid][pMats] = 0; PlayerInfo[playerid][pSaveMats] = 0; PlayerInfo[playerid][pDrugs] = 0;PlayerInfo[playerid][pSaveDrugs] = 0; PlayerInfo[playerid][pLeader] = -1; PlayerInfo[playerid][pMember] = -1; PlayerInfo[playerid][pRank] = 0; PlayerInfo[playerid][pVertragszeit] = 5; PlayerInfo[playerid][pWirdtot] = 0; PlayerInfo[playerid][pNewsSkill] = 0; PlayerInfo[playerid][pFishSkill] = 0; PlayerInfo[playerid][pSHealth] = 50.0; PlayerInfo[playerid][pLocal] = -1; PlayerInfo[playerid][pMuted] = 0; PlayerInfo[playerid][pCoints] = 0; PlayerInfo[playerid][pGeiselnahme] = 0; Geiselnahme[playerid] = -1; PlayerInfo[playerid][pBoatLic] = 0; PlayerInfo[playerid][pFishLic] = 0; PlayerInfo[playerid][pGunLic] = 0; PlayerInfo[playerid][pPistolSkill] = 0; PlayerInfo[playerid][pMaschinePistolSkill] = 0; PlayerInfo[playerid][pSturmgewehrPistolSkill] = 0; PlayerInfo[playerid][pShotGunSkill] = 0; PlayerInfo[playerid][pCarLicPoints] = 0; PlayerInfo[playerid][pBikeLicPoints] = 0; PlayerInfo[playerid][pZollpass] = 0; PlayerInfo[playerid][pGun1] = 0; PlayerInfo[playerid][pGun2] = 0; PlayerInfo[playerid][pGun3] = 0; PlayerInfo[playerid][pMechSkill] = 0; PlayerInfo[playerid][pGun4] = 0; PlayerInfo[playerid][pAmmo1] = 0; PlayerInfo[playerid][pAmmo2] = 0; PlayerInfo[playerid][pAmmo3] = 0; PlayerInfo[playerid][pAmmo4] = 0; PlayerInfo[playerid][pCarTime] = 0; PlayerInfo[playerid][pPayDay] = 0; PlayerInfo[playerid][pPayDayHad] = 0; PlayerInfo[playerid][pCDPlayer] = 0; PlayerInfo[playerid][pAlcoholPerk] = 0; PlayerInfo[playerid][pTeam] = -1; PlayerInfo[playerid][pNummer] = 0; PlayerInfo[playerid][pPhotelkey] = -1; PlayerInfo[playerid][pBizKey] = -1; PlayerInfo[playerid][pCarLic] = 0; PlayerInfo[playerid][pFlyLic] = 0; PlayerInfo[playerid][pPainKillerPerk] = 0; PlayerInfo[playerid][pDrugPerk] = 0; PlayerInfo[playerid][pMiserPerk] = 0; PlayerInfo[playerid][pTraderPerk] = 0; PlayerInfo[playerid][pWarns] = 0;PlayerInfo[playerid][pFuel] = 0; PlayerInfo[playerid][pWantedLevel] = 0; PlayerInfo[playerid][pAdminOnDuty] = 0; PlayerInfo[playerid][pHurensohn] = 0; PlayerInfo[playerid][pHandyRob] = 0; PlayerInfo[playerid][pBankrob] = 0; PlayerInfo[playerid][pInviteSperre] = 0; PlayerInfo[playerid][pWarnTime1] = 0; PlayerInfo[playerid][pWarnTime2] = 0; PlayerInfo[playerid][pImRaub] = 0; PlayerInfo[playerid][pTicketsopen] = 0; PlayerInfo[playerid][pSQLID] = -1; PlayerInfo[playerid][pHaus] = 0; PlayerInfo[playerid][pMieten] = 0; PlayerInfo[playerid][pRolex] = 0; PlayerInfo[playerid][pSwissonic] = 0; PlayerInfo[playerid][pCasio] = 0; PlayerInfo[playerid][pBreitling] = 0; PlayerInfo[playerid][pNixon] = 0; PlayerInfo[playerid][pIceWatch] = 0; PlayerInfo[playerid][pHealPaket] = 0; PlayerInfo[playerid][pOverHealPaket] = 0; PlayerInfo[playerid][pArmourPaket] = 0; PlayerInfo[playerid][pWaffenPaket] = 0; strmid(PlayerInfo[playerid][pWerberName], "Niemand", 0, strlen("Niemand"), 255); strmid(PlayerInfo[playerid][pForceName], "Niemand", 0, strlen("Niemand"), 255); strmid(PlayerInfo[playerid][pOldName], "Niemand", 0, strlen("Niemand"), 255); strmid(PlayerInfo[playerid][pOrgaName], "Keine", 0, strlen("Keine"), 255); PlayerInfo[playerid][pOrgaID] = -1; PlayerInfo[playerid][pOrgaLeader] = -1; PlayerInfo[playerid][pOrgaManager] = -1; PlayerInfo[playerid][pTut] = 0; PlayerInfo[playerid][pTruckHaengerID] = -1; PlayerInfo[playerid][pTHProdukte] = 0; PlayerInfo[playerid][pDonatorZeit] = 0; PlayerInfo[playerid][pFightingStyle] = 0; PlayerInfo[playerid][pHandy] = 0; PlayerInfo[playerid][pStartCoints] = 0; PlayerInfo[playerid][pOnDutySkin] = 60; PlayerInfo[playerid][pSpawnhealZeit] = 0; PlayerInfo[playerid][pDeaglespawnZeit] = 0; PlayerInfo[playerid][pM4SpawnZeit] = 0; PlayerInfo[playerid][pMP5SpawnZeit] = 0; PlayerInfo[playerid][pArmorSpawnZeit] = 0; PlayerInfo[playerid][pMehrZinsenZeit] = 0; ClearCrime(playerid); ClearFishes(playerid); ClearCooking(playerid); ClearGroceries(playerid); ClearMarriage(playerid); //Car System// for(new h = 0; h < MaxVeh[playerid]; h++){ Carlist[playerid][h][Typ]=-1; Carlist[playerid][h][pos_x]=0.0; Carlist[playerid][h][pos_y]=0.0; Carlist[playerid][h][pos_z]=0.0; Carlist[playerid][h][z_angle]=0.0; Carlist[playerid][h][Status]=0; Carlist[playerid][h][Lock]=0; Carlist[playerid][h][Carid]=-1; Carlist[playerid][h][Farbe1]=-1; Carlist[playerid][h][Farbe2]=-1; Carlist[playerid][h][mod1]=-1; Carlist[playerid][h][mod2]=-1; Carlist[playerid][h][mod3]=-1; Carlist[playerid][h][mod4]=-1; Carlist[playerid][h][mod5]=-1; Carlist[playerid][h][mod6]=-1; Carlist[playerid][h][mod7]=-1; Carlist[playerid][h][mod8]=-1; Carlist[playerid][h][mod9]=-1; Carlist[playerid][h][mod10]=-1; Carlist[playerid][h][mod11]=-1; Carlist[playerid][h][mod12]=-1; Carlist[playerid][h][mod13]=-1; Carlist[playerid][h][mod14]=-1; Carlist[playerid][h][mod15]=-1; Carlist[playerid][h][mod16]=-1; Carlist[playerid][h][mod17]=-1; Carlist[playerid][h][Paintjob]=-1; Carlist[playerid][h][OwnerID] = playerid; Carlist[playerid][h][SpawnSaveX]=0.0; Carlist[playerid][h][SpawnSaveY]=0.0; Carlist[playerid][h][SpawnSaveZ]=0.0; Carlist[playerid][h][SpawnSaveRot]=0.0; Carlist[playerid][h][TankVolumen]=0; Carlist[playerid][h][RepairTime] = 0; Carlist[playerid][h][Versicherung] = 0; Carlist[playerid][h][Abschleppzeit] = 0; Carlist[playerid][h][Meter] = 0; Carlist[playerid][h][Changed] = false; } Spectating[playerid] = -1; //TUTORIAL88 Tut[0] = CreatePlayerTextDraw(playerid,437.428588, 251.953338, "usebox"); PlayerTextDrawLetterSize(playerid,Tut[0], 0.000000, 16.323331); PlayerTextDrawTextSize(playerid,Tut[0], 192.285720, 0.000000); PlayerTextDrawAlignment(playerid,Tut[0], 1); PlayerTextDrawColor(playerid,Tut[0], 0); PlayerTextDrawUseBox(playerid,Tut[0], true); PlayerTextDrawBoxColor(playerid,Tut[0], 102); PlayerTextDrawSetShadow(playerid,Tut[0], 0); PlayerTextDrawSetOutline(playerid,Tut[0], 0); PlayerTextDrawFont(playerid,Tut[0], 0); Tut[1] = CreatePlayerTextDraw(playerid,268.190490, 256.000000, "Tutorial"); PlayerTextDrawLetterSize(playerid,Tut[1], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid,Tut[1], 1); PlayerTextDrawColor(playerid,Tut[1], -1); PlayerTextDrawSetShadow(playerid,Tut[1], 0); PlayerTextDrawSetOutline(playerid,Tut[1], 1); PlayerTextDrawBackgroundColor(playerid,Tut[1], 51); PlayerTextDrawFont(playerid,Tut[1], 2); PlayerTextDrawSetProportional(playerid,Tut[1], 1); Tut[2] = CreatePlayerTextDraw(playerid,220.952514, 275.626708, "0"); PlayerTextDrawLetterSize(playerid,Tut[2], 8.475517, -0.268799); PlayerTextDrawAlignment(playerid,Tut[2], 1); PlayerTextDrawColor(playerid,Tut[2], -1); PlayerTextDrawSetShadow(playerid,Tut[2], 0); PlayerTextDrawSetOutline(playerid,Tut[2], 1); PlayerTextDrawBackgroundColor(playerid,Tut[2], 51); PlayerTextDrawFont(playerid,Tut[2], 1); PlayerTextDrawSetProportional(playerid,Tut[2], 1); Tut[3] = CreatePlayerTextDraw(playerid, 308.571441, 273.066680, "Willkommen auf"); PlayerTextDrawLetterSize(playerid, Tut[3], 0.361238, 2.393598); PlayerTextDrawAlignment(playerid, Tut[3], 2); PlayerTextDrawColor(playerid, Tut[3], -5963521); PlayerTextDrawSetShadow(playerid, Tut[3], 0); PlayerTextDrawSetOutline(playerid, Tut[3], 1); PlayerTextDrawBackgroundColor(playerid, Tut[3], 51); PlayerTextDrawFont(playerid, Tut[3], 1); PlayerTextDrawSetProportional(playerid, Tut[3], 1); Tut[4] = CreatePlayerTextDraw(playerid,307.809448, 303.360015, "Hier ist die Bank of Los Santos.~n~Hier kannst du viele mögliche Dinge machen!"); PlayerTextDrawLetterSize(playerid,Tut[4], 0.215333, 1.301333); PlayerTextDrawAlignment(playerid,Tut[4], 2); PlayerTextDrawColor(playerid,Tut[4], -1); PlayerTextDrawSetShadow(playerid,Tut[4], 0); PlayerTextDrawSetOutline(playerid,Tut[4], 1); PlayerTextDrawBackgroundColor(playerid,Tut[4], 51); PlayerTextDrawFont(playerid,Tut[4], 1); PlayerTextDrawSetProportional(playerid,Tut[4], 1); Payday[0] = CreatePlayerTextDraw(playerid, 115.523803, 155.526657, "usebox"); PlayerTextDrawLetterSize(playerid, Payday[0], 0.000000, 17.318891); PlayerTextDrawTextSize(playerid, Payday[0], 2.952381, 0.000000); PlayerTextDrawAlignment(playerid, Payday[0], 1); PlayerTextDrawColor(playerid, Payday[0], 0); PlayerTextDrawUseBox(playerid, Payday[0], true); PlayerTextDrawBoxColor(playerid, Payday[0], 102); PlayerTextDrawSetShadow(playerid, Payday[0], 0); PlayerTextDrawSetOutline(playerid, Payday[0], 0); PlayerTextDrawFont(playerid, Payday[0], 0); Payday[1] = CreatePlayerTextDraw(playerid, 25.142864, 159.573348, "Payday!"); PlayerTextDrawLetterSize(playerid, Payday[1], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Payday[1], 1); PlayerTextDrawColor(playerid, Payday[1], -16776961); PlayerTextDrawSetShadow(playerid, Payday[1], 0); PlayerTextDrawSetOutline(playerid, Payday[1], 1); PlayerTextDrawBackgroundColor(playerid, Payday[1], 51); PlayerTextDrawFont(playerid, Payday[1], 3); PlayerTextDrawSetProportional(playerid, Payday[1], 1); Payday[2] = CreatePlayerTextDraw(playerid, 5.333301, 178.346694, "0"); PlayerTextDrawLetterSize(playerid, Payday[2], 4.892666, 0.268799); PlayerTextDrawAlignment(playerid, Payday[2], 1); PlayerTextDrawColor(playerid, Payday[2], -1); PlayerTextDrawSetShadow(playerid, Payday[2], 0); PlayerTextDrawSetOutline(playerid, Payday[2], 1); PlayerTextDrawBackgroundColor(playerid, Payday[2], 51); PlayerTextDrawFont(playerid, Payday[2], 1); PlayerTextDrawSetProportional(playerid, Payday[2], 1); Payday[3] = CreatePlayerTextDraw(playerid, 9.904723, 184.320037, "Alter Stand: 220.000$"); PlayerTextDrawLetterSize(playerid, Payday[3], 0.174571, 1.408000); PlayerTextDrawAlignment(playerid, Payday[3], 1); PlayerTextDrawColor(playerid, Payday[3], -1); PlayerTextDrawSetShadow(playerid, Payday[3], 0); PlayerTextDrawSetOutline(playerid, Payday[3], 1); PlayerTextDrawBackgroundColor(playerid, Payday[3], 51); PlayerTextDrawFont(playerid, Payday[3], 1); PlayerTextDrawSetProportional(playerid, Payday[3], 1); //Rot Hacker[0] = CreatePlayerTextDraw(playerid, 641.619079, 1.500000, "usebox"); PlayerTextDrawLetterSize(playerid, Hacker[0], 0.000000, 49.413703); PlayerTextDrawTextSize(playerid, Hacker[0], -2.000000, 0.000000); PlayerTextDrawAlignment(playerid, Hacker[0], 1); PlayerTextDrawColor(playerid, Hacker[0], 0); PlayerTextDrawUseBox(playerid, Hacker[0], true); PlayerTextDrawBoxColor(playerid, Hacker[0], -16776961); PlayerTextDrawSetShadow(playerid, Hacker[0], 0); PlayerTextDrawSetOutline(playerid, Hacker[0], 0); PlayerTextDrawFont(playerid, Hacker[0], 0); //Weiß Hacker[1] = CreatePlayerTextDraw(playerid, 641.619079, 1.500000, "usebox"); PlayerTextDrawLetterSize(playerid, Hacker[1], 0.000000, 49.413703); PlayerTextDrawTextSize(playerid, Hacker[1], -2.000000, 0.000000); PlayerTextDrawAlignment(playerid, Hacker[1], 1); PlayerTextDrawColor(playerid, Hacker[1], 0); PlayerTextDrawUseBox(playerid, Hacker[1], true); PlayerTextDrawBoxColor(playerid, Hacker[1], -1); PlayerTextDrawSetShadow(playerid, Hacker[1], 0); PlayerTextDrawSetOutline(playerid, Hacker[1], 0); PlayerTextDrawFont(playerid, Hacker[1], 0); //Schwarz Hacker[2] = CreatePlayerTextDraw(playerid, 641.619079, 1.500000, "usebox"); PlayerTextDrawLetterSize(playerid, Hacker[2], 0.000000, 49.413703); PlayerTextDrawTextSize(playerid, Hacker[2], -2.000000, 0.000000); PlayerTextDrawAlignment(playerid, Hacker[2], 1); PlayerTextDrawColor(playerid, Hacker[2], 0); PlayerTextDrawUseBox(playerid, Hacker[2], true); PlayerTextDrawBoxColor(playerid, Hacker[2], 255); PlayerTextDrawSetShadow(playerid, Hacker[2], 0); PlayerTextDrawSetOutline(playerid, Hacker[2], 0); PlayerTextDrawFont(playerid, Hacker[2], 0); //Orange Hacker[3] = CreatePlayerTextDraw(playerid, 641.619079, 1.500000, "usebox"); PlayerTextDrawLetterSize(playerid, Hacker[3], 0.000000, 49.413703); PlayerTextDrawTextSize(playerid, Hacker[3], -2.000000, 0.000000); PlayerTextDrawAlignment(playerid, Hacker[3], 1); PlayerTextDrawColor(playerid, Hacker[3], 0); PlayerTextDrawUseBox(playerid, Hacker[3], true); PlayerTextDrawBoxColor(playerid, Hacker[3], -5963521); PlayerTextDrawSetShadow(playerid, Hacker[3], 0); PlayerTextDrawSetOutline(playerid, Hacker[3], 0); PlayerTextDrawFont(playerid, Hacker[3], 0); for(new i = 0; i < MaxUberweisung; i++) strmid(Uberweisungen[playerid][i], "Keine Überweisungen vorhanden", 0, strlen("Keine Überweisung vorhanden"), 255); if(IsPlayerNPC(playerid)) { gPlayerAccount[playerid] = 1; gPlayerLogged[playerid] = 1; if(strcmp(playername, "Drogendealer", true) == 0) { PlayerInfo[playerid][pChar] = 29; SetPlayerSkin(playerid, 29); SpawnPlayer(playerid); }else if(strcmp(playername, "Coinshop", true) == 0) { PlayerInfo[playerid][pChar] = 28; SetPlayerSkin(playerid, 28); SpawnPlayer(playerid); }else if(strcmp(playername, "Stadthalle", true) == 0) { PlayerInfo[playerid][pChar] = 11; SetPlayerSkin(playerid, 11); SpawnPlayer(playerid); }else if(strcmp(playername, "Mitarbeiter", true) == 0) { PlayerInfo[playerid][pChar] = 187; SetPlayerSkin(playerid, 187); SpawnPlayer(playerid); }else if(strcmp(playername, "BSN", true) == 0) { PlayerInfo[playerid][pChar] = 205; SetPlayerSkin(playerid, 205); SpawnPlayer(playerid); }else if(strcmp(playername, "Dimitri", true) == 0) { PlayerInfo[playerid][pChar] = 29; SetPlayerSkin(playerid, 29); SpawnPlayer(playerid); }else if(strcmp(playername, "Manfred", true) == 0) { PlayerInfo[playerid][pChar] = 57; SetPlayerSkin(playerid, 57); SpawnPlayer(playerid); }else if(strcmp(playername, "Nico", true) == 0) { PlayerInfo[playerid][pChar] = 58; SetPlayerSkin(playerid, 58); SpawnPlayer(playerid); } } new plrIP[16],string[258]; GetPlayerIp(playerid, plrIP, sizeof(plrIP)); PlayerInfo[playerid][pChar] = 1; SpawnPlayer(playerid); format(string, sizeof(string), "{FFA500}Spieler{FBF8EF}: %s [ID: %d] hat den Server betreten.",playername, playerid); ForAllPlayers(i) { WantedLabel[playerid][i] = -1; if(IsPlayerConnected(i)) { if(TogLoginLogout[i] == 0) { SendClientMessage(i, COLOR_LIGHTGREEN, string); //Connect message } } } new VAR = 0,TextString[123]; new BanHammer[128], BanReason[128], BPZeit; SetPlayerColor(playerid, COLOR_GRAD2); format(TextString, sizeof(TextString), "SELECT * FROM `bannedplayers` WHERE `Name`='%s'", playername); self_mysql_queryEx(TextString); mysql_store_result(MySQLConnection); if(mysql_num_rows(MySQLConnection) != 0) { mysql_fetch_row_format(TextString); new val[256]; self_mysql_get_field("Reason", val); strmid(BanReason, val, 0, strlen(val), 255); self_mysql_get_field("Hammer", val); strmid(BanHammer, val, 0, strlen(val), 255); self_mysql_get_field("Time", val); BPZeit = strval( val ); if(BPZeit != -1) { if(BPZeit > Time()) { VAR = 1; } else { format(TextString, sizeof(TextString), "DELETE FROM `bannedplayers` WHERE `Name`='%s'", playername); self_mysql_queryEx(TextString); VAR = 0; } } else { VAR = 1; } if(VAR == 1) { if(BPZeit == -1) { ShowPlayerMarkers(400); SetSpawnInfo(playerid,0,299,0,0,0,0,0,0,0,0,0,0); LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid); TogglePlayerControllable(playerid,0); SetTimerEx("SetConnectBan",200,0,"i",playerid); return 1; } else { ShowPlayerMarkers(400); SetSpawnInfo(playerid,0,299,0,0,0,0,0,0,0,0,0,0); LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid); TogglePlayerControllable(playerid,0); SetTimerEx("SetConnectTimeBan",200,0,"i",playerid); return 1; } } } return 1; }
//EDIT
Quellencode bearbeitet. -
Server.log
C
Alles anzeigen---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [14:41:12] [14:41:12] Server Plugins [14:41:12] -------------- [14:41:12] Loading plugin: mysql.so [14:41:12] > MySQL plugin R5 successfully loaded. [14:41:12] Loaded. [14:41:12] Loading plugin: streamer.so [14:41:12] *** Streamer Plugin v2.7.8 by Incognito loaded *** [14:41:12] Loaded. [14:41:12] Loading plugin: sscanf.so [14:41:12] [14:41:12] =============================== [14:41:12] sscanf plugin loaded. [14:41:12] Version: 2.8.1 [14:41:12] (c) 2012 Alex "Y_Less" Cole [14:41:12] =============================== [14:41:12] Loaded. [14:41:12] Loading plugin: filemanager.so [14:41:12] ****************** [14:41:12] ** FILE MANAGER ** [14:41:12] ** Loaded ** [14:41:12] ** Version 1.1 ** [14:41:12] ****************** [14:41:12] Loaded. [14:41:12] Loaded 4 plugins. [14:41:12] [14:41:12] Filterscripts [14:41:12] --------------- [14:41:12] Loaded 0 filterscripts. [14:41:12] SERVER: Der Server wurde erfolgreich gestartet [14:41:12] SERVER: Versucht die Verbindung zur Datenbank aufzubauen [14:41:12] OnGamemodeInt: LoadBiz (1ms) [14:41:12] OnGamemodeInt: LoadSBiz (1ms) [14:41:12] OnGamemodeInt: LoadTankenBiz (1ms) [14:41:12] OnGamemodeInt: LoadStuff (3ms) [14:41:12] OnGamemodeInt: LoadKassenInfo (0ms) [14:41:12] OnGamemodeInt: LoadGangfightZones (0ms) [14:41:12] OnGamemodeInt: LoadGangWarInfos (3ms) [14:41:12] OnGamemodeInt: LoadGangBNDInfos (0ms) [14:41:12] sscanf warning: String buffer overflow. [14:41:12] OnGamemodeInt: LoadHauser (3ms) [14:41:12] OnGamemodeInt: loadDynamicPickups (1ms) [14:41:12] OnGamemodeInt: loadDynamicMapIcons (0ms) [14:41:12] OnGamemodeInt: loadDynamicTextLabels (1ms) [14:41:12] OnGamemodeInt: loadGangWeapons (0ms) [14:41:12] OnGamemodeInt: loadAmmuWeapons (0ms) [14:41:12] OnGamemodeInt: loadHausWeapons (0ms) [14:41:12] OnGamemodeInt: LoadFactionVehicles (3ms) [14:41:12] Totaltime taken to load MySQL Stuffs: 17sm [14:41:12] sscanf warning: Strings without a length are deprecated, please add a destination size. [14:41:12] Beginne Autos zu spawnen [14:41:12] Autos wurden erfolgreich Geladen und Gespawnt [14:41:12] 3DTexte erfolgreich Geladen [14:41:12] [14:41:12] [14:41:12] Project-RedBull [14:41:12] _____________________ [14:41:12] Project-RedBull erfolgreich geladen! [14:41:12] [14:41:12] Number of vehicle models: 93 [14:41:12] [connection] 87.98.241.207:43407 requests connection cookie. [14:41:12] [connection] 87.98.241.207:38902 requests connection cookie. [14:41:12] [connection] 87.98.241.207:56265 requests connection cookie. [14:41:12] [connection] 87.98.241.207:53195 requests connection cookie. [14:41:12] [connection] 87.98.241.207:45130 requests connection cookie. [14:41:12] [connection] 87.98.241.207:36201 requests connection cookie. [14:41:13] [connection] 87.98.241.207:57665 requests connection cookie. [14:41:13] [connection] 87.98.241.207:43410 requests connection cookie. [14:41:13] [connection] incoming connection: 87.98.241.207:43407 id: 0 [14:41:13] [connection] incoming connection: 87.98.241.207:38902 id: 1 [14:41:13] [connection] incoming connection: 87.98.241.207:56265 id: 2 [14:41:13] [npc:join] Drogendealer has joined the server (0:87.98.241.207) [14:41:13] [connection] incoming connection: 87.98.241.207:53195 id: 3 [14:41:13] [npc:join] Mitarbeiter has joined the server (1:87.98.241.207) [14:41:13] [connection] incoming connection: 87.98.241.207:45130 id: 4 [14:41:13] [npc:join] Coinshop has joined the server (2:87.98.241.207) [14:41:13] [connection] incoming connection: 87.98.241.207:36201 id: 5 [14:41:13] [npc:join] Stadthalle has joined the server (3:87.98.241.207) [14:41:14] [connection] incoming connection: 87.98.241.207:57665 id: 6 [14:41:14] [npc:join] BSN has joined the server (4:87.98.241.207) [14:41:14] [connection] incoming connection: 87.98.241.207:43410 id: 7 [14:41:14] [npc:join] Dimitri has joined the server (5:87.98.241.207) [14:41:14] [npc:join] Manfred has joined the server (6:87.98.241.207) [14:41:14] [npc:join] Nico has joined the server (7:87.98.241.207) [14:41:23] Der Server wurde für Spieler freigegeben! [14:41:42] [connection] 91.50.248.249:57651 requests connection cookie. [14:41:43] [connection] incoming connection: 91.50.248.249:57651 id: 8 [14:41:43] [join] AroX has joined the server (8:91.50.248.249) [14:41:55] AroX hat sich eingeloggt. [ID: 8] [14:42:37] endstring: UPDATE `users` SET `Level`='0', `AdminLevel`='2000', `Checkpoint`='0', `CPrison`='0', `RunningCP`='0', `TeamRadar`='0', `BNDRadar`='0', `Rolex`='0', `Swissonic`='0', `Casio`='0', `Breitling`='0', `Nixon`='0', `IceWatch`='0', `StartCoints`='0', `Coints`='0', `SpawnhealZeit`='0', `DeaglespawnZeit`='0', `M4SpawnZeit`='0', `MP5SpawnZeit`='0', `MehrZinsenZeit`='0', `Medickit`='0', `Startbonus`='0', `Kreditkarte`='0', `KreditkarteBenutzung`='0', `Personalausweis`='0', `Namechange`='0', `DonateRank`='0', `UpgradePoints`='0', `ConnectedTime`='0', `Registered`='0', `Sex`='0', `Age`='0', `Origin`='1', `Muted`='0', `Respect`='0', `Gehalt`='0', `Money`='10000', `Bank`='0', `Jobgeld`='0', `Crimes`='0', `Kills`='0', `sKills`='0', `Deaths`='0', `Arrested`='0', `ArrestTime`='0', `PhoneBook`='0', `LottoNr`='0', `Fishes`='0', `BiggestFish`='0', `Job`='0' WHERE `Name`='AroX' [14:42:37] endstring: UPDATE `users` SET `HeadValue`='0', `Jailed`='0', `JailTime`='0', `Leader`='14', `Member`='-1', `Rank`='12', `Skin`='102', `Vertragszeit`='2' WHERE `Name`='AroX' [14:42:37] endstring: UPDATE `users` SET `NewsSkill`='0', `House`='0', `Mieten`='0', `HealPaket`='0', `ArmourPaket`='0', `WaffenPaket`='0', `OverHealPaket`='0', `FishSkill`='0', `MechSkill`='0', `pSHealth`='50.0', `PhoneNr`='487', `Hotel`='-1', `Biz`='9', `CarLic`='1', `FlyLic`='0', `BoatLic`='0', `FishLic`='0', `GunLic`='1', `Zollpass`='0' WHERE `Name`='AroX' [14:42:37] endstring: UPDATE `users` SET `Gun1`='0', `Gun2`='0', `Gun3`='0', `Gun4`='0', `Ammo1`='0', `Ammo2`='0', `Ammo3`='0', `Ammo4`='0', `CarTime`='0', `PayDay`='356', `PayDayHad`='3', `CDPlayer`='0', `AlcoholPerk`='0', `PainKillerPerk`='0', `PistolSkill`='2', `MaschinePistolSkill`='2', `SturmgewehrPistolSkill`='2', `ShotGunSkill`='1', `DrugPerk`='0', `MiserPerk`='0', `TraderPerk`='0', `Tutorial`='1', `Cptut`='1', `kh`='0', `Warnings`='0' WHERE `Name`='AroX' [14:42:37] endstring: UPDATE `users` SET `Fuel`='0', `Married`='0', `MarriedTo`='Niemand', `WantedLevel`='0', `Spawn`='0', `SavedMaterials`='0', `SavedDrugs`='0', `BikeLic`='0', `LKWLic`='0', `DonatorTime`='0', `WerberName`='Niemand', `FightingStyle`='0', `Handy`='0' WHERE `Name`='AroX' [14:42:37] endstring: UPDATE `users` SET `OnDutySkin`='281', `CarLicPoints`='0', `BikeLicPoints`='0', `InviteSperre`='0', `warntime1`='0', `warntime2`='0', `Ticketsopen`='0', `DonatorTime`='0', `OldName`='Niemand', `ClientIP`='91.50.248.249', `OrgMember`='-1', `OrgLeader`='-1', `OrgManager`='-1', `OrgName`='Keine' WHERE `Name`='AroX' [14:42:37] Spielers wurden in 28ms gespeichert. [14:42:37] SaveKassenInfo: 0ms [14:42:37] SaveStuff: 1ms [14:42:37] SaveHouses: 0ms [14:42:37] SaveGangfightZones: 0ms [14:42:37] SaveGangWarInfos: 0ms [14:42:37] SaveGangBNDInfos: 1ms [14:42:37] SaveDynamicPickups: 0ms [14:42:37] SaveDynamicMapIcons: 0ms [14:42:37] SaveDynamicTextLabels: 0ms [14:42:37] Der Server wurde in 2ms gespeichert.
-
Die mysql.log wurde erstellt.
C
Alles anzeigen[12:28:48] [12:28:48] --------------------------- [12:28:48] MySQL Debugging activated (09/27/15) [12:28:48] --------------------------- [12:28:48] [12:28:48] >> mysql_connect( ) [12:28:48] CMySQLHandler::CMySQLHandler() - constructor called. [12:28:48] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "samp5510_samp" | Username: "samp5510" ... [12:28:48] CMySQLHandler::Connect() - Connection was successful. [12:28:48] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [12:28:48] --------------------------- [12:28:48] MySQL Debugging de-activated [12:28:48] ---------------------------
-
Verbindung steht.
Server.log
C
Alles anzeigen---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [12:15:23] [12:15:23] Server Plugins [12:15:23] -------------- [12:15:23] Loading plugin: mysql.so [12:15:23] > MySQL plugin R5 successfully loaded. [12:15:23] Loaded. [12:15:23] Loading plugin: streamer.so [12:15:23] *** Streamer Plugin v2.7.8 by Incognito loaded *** [12:15:23] Loaded. [12:15:23] Loading plugin: sscanf.so [12:15:23] [12:15:23] =============================== [12:15:23] sscanf plugin loaded. [12:15:23] Version: 2.8.1 [12:15:23] (c) 2012 Alex "Y_Less" Cole [12:15:23] =============================== [12:15:23] Loaded. [12:15:23] Loading plugin: filemanager.so [12:15:23] ****************** [12:15:23] ** FILE MANAGER ** [12:15:23] ** Loaded ** [12:15:23] ** Version 1.1 ** [12:15:23] ****************** [12:15:23] Loaded. [12:15:23] Loaded 4 plugins. [12:15:23] [12:15:23] Filterscripts [12:15:23] --------------- [12:15:23] Loaded 0 filterscripts. [12:15:23] SERVER: Der Server wurde erfolgreich gestartet [12:15:23] SERVER: Versucht die Verbindung zur Datenbank aufzubauen [12:15:23] OnGamemodeInt: LoadBiz (1ms) [12:15:23] OnGamemodeInt: LoadSBiz (0ms) [12:15:23] OnGamemodeInt: LoadTankenBiz (1ms) [12:15:23] OnGamemodeInt: LoadStuff (1ms) [12:15:23] OnGamemodeInt: LoadKassenInfo (0ms) [12:15:23] OnGamemodeInt: LoadGangfightZones (0ms) [12:15:23] OnGamemodeInt: LoadGangWarInfos (2ms) [12:15:23] OnGamemodeInt: LoadGangBNDInfos (0ms) [12:15:23] sscanf warning: String buffer overflow. [12:15:23] OnGamemodeInt: LoadHauser (2ms) [12:15:23] OnGamemodeInt: loadDynamicPickups (1ms) [12:15:23] OnGamemodeInt: loadDynamicMapIcons (0ms) [12:15:23] OnGamemodeInt: loadDynamicTextLabels (0ms) [12:15:23] OnGamemodeInt: loadGangWeapons (1ms) [12:15:23] OnGamemodeInt: loadAmmuWeapons (0ms) [12:15:23] OnGamemodeInt: loadHausWeapons (0ms) [12:15:23] OnGamemodeInt: LoadFactionVehicles (2ms) [12:15:23] Totaltime taken to load MySQL Stuffs: 11sm [12:15:23] sscanf warning: Strings without a length are deprecated, please add a destination size. [12:15:23] Beginne Autos zu spawnen [12:15:23] Autos wurden erfolgreich Geladen und Gespawnt [12:15:23] 3DTexte erfolgreich Geladen [12:15:23] [12:15:23] [12:15:23] Project-RedBull [12:15:23] _____________________ [12:15:23] Project-RedBull erfolgreich geladen! [12:15:23] [12:15:23] Number of vehicle models: 93 [12:15:23] [connection] 87.98.241.207:39252 requests connection cookie. [12:15:23] [connection] 87.98.241.207:52184 requests connection cookie. [12:15:24] [connection] 87.98.241.207:53388 requests connection cookie. [12:15:24] [connection] 87.98.241.207:34376 requests connection cookie. [12:15:24] [connection] 87.98.241.207:33446 requests connection cookie. [12:15:24] [connection] 87.98.241.207:51998 requests connection cookie. [12:15:24] [connection] 87.98.241.207:50639 requests connection cookie. [12:15:24] [connection] 87.98.241.207:56600 requests connection cookie. [12:15:24] [connection] incoming connection: 87.98.241.207:39252 id: 0 [12:15:24] [connection] incoming connection: 87.98.241.207:52184 id: 1 [12:15:25] [connection] incoming connection: 87.98.241.207:53388 id: 2 [12:15:25] [npc:join] Drogendealer has joined the server (0:87.98.241.207) [12:15:25] [connection] incoming connection: 87.98.241.207:34376 id: 3 [12:15:25] [npc:join] Mitarbeiter has joined the server (1:87.98.241.207) [12:15:25] [connection] incoming connection: 87.98.241.207:33446 id: 4 [12:15:25] [npc:join] Coinshop has joined the server (2:87.98.241.207) [12:15:25] [connection] incoming connection: 87.98.241.207:51998 id: 5 [12:15:25] [npc:join] Stadthalle has joined the server (3:87.98.241.207) [12:15:25] [connection] incoming connection: 87.98.241.207:50639 id: 6 [12:15:25] [npc:join] BSN has joined the server (4:87.98.241.207) [12:15:25] [connection] incoming connection: 87.98.241.207:56600 id: 7 [12:15:25] [npc:join] Dimitri has joined the server (5:87.98.241.207) [12:15:25] [npc:join] Manfred has joined the server (6:87.98.241.207) [12:15:25] [npc:join] Nico has joined the server (7:87.98.241.207) [12:15:35] Der Server wurde für Spieler freigegeben! [12:16:09] [connection] 24.134.181.70:50043 requests connection cookie. [12:16:10] [connection] incoming connection: 24.134.181.70:50043 id: 8 [12:16:11] [join] elite has joined the server (8:24.134.181.70)
-
Oh, ich sehe gerade das überhaupt keine mysql.log erstellt wird.
-
-
C
Alles anzeigenif(strcmp("/setmoney", cmd, true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_BENUTZETEXT, "Benutze: /setmoney [SpielerName/ID] [Betrag]"); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_BENUTZETEXT, "Benutze: /setmoney [SpielerName/ID] [Betrag]"); return 1; } new money = strval(tmp); if(PlayerInfo[playerid][pAdmin] >= 4) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[giveplayerid][pCash] = 0; GivePlayerMoneys(giveplayerid, money); format(string,sizeof(string),"AdmWarn: %s hat das Geld von %s auf %d$ gesettet!",sendername,giveplayer,money); SendAdminMessage(COLOR_YELLOW, 1, string); format(string,sizeof(string),"Admin %s hat das Geld von %s auf %d$FJKPAS gesettet!", sendername,giveplayer,money); EnterToLog("SetMoney",string); } } } else { SendClientMessage(playerid, COLOR_KEINADMIN, "*** INFO: Dies ist ein Adminbefehl, du bist kein Admin."); } } return 1; }