Angepinnt [SAMMELTHREAD] Kleine Scripting Fragen

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Ja, wie du siehst ObjectSlotsUsed ist bei 999.

    Sprich du lädst zu viele Objekte :)

    Falls du irgendwo CreateObject nutzt, solltest du überlegen es auf CreateDynamicObject zu ändern, andernfalls ummappen könnte helfen oder die DrawDistance von kleineren Objekten umsetzen (das aber ne ganz schöne fuddel Arbeit)...

    :)


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. X/
  • wie kann ich das verhindern das wenn man in der luft fällt und man verlässt den server nicht wieder in der luft ist ?
    ich lasse so seinen letzten punkt saven

    PAWN-Quellcode

    1. public OnPlayerDisconnect(playerid, reason)
    2. {
    3. GetPlayerPos(playerid, SpielerInfo[playerid][pLastX], SpielerInfo[playerid][pLastY], SpielerInfo[playerid][pLastZ]);
    4. return true;
    5. }

    ist da eine veriable hilfreich oder wie kann man es an besten lösen ?
    C# << Das beste :thumbup:
  • PAWN-Quellcode

    1. public OnPlayerDisconnect(playerid, reason)
    2. {
    3. GetPlayerPos(playerid, SpielerInfo[playerid][pLastX], SpielerInfo[playerid][pLastY], SpielerInfo[playerid][pLastZ]);
    4. MapAndreas_FindZ_For2DCoord(SpielerInfo[playerid][pLastX], SpielerInfo[playerid][pLastY], SpielerInfo[playerid][pLastZ]);
    5. return true;
    6. }
  • @Jeffry

    Spoiler anzeigen


    Quellcode

    1. PUBLIC:PlayerUpdate(playerid)
    2. {
    3. if(IsPlayerConnected(playerid))
    4. {
    5. if(IsPlayerNPC(playerid)) { return 1; }
    6. new playername[MAX_PLAYER_NAME];
    7. GetPlayerName(playerid, playername, sizeof(playername));
    8. new endstring[1600];
    9. new var[129];
    10. new Float: p[4];
    11. GetPlayerPos(playerid, p[0], p[1], p[2]);
    12. GetPlayerFacingAngle(playerid, p[3]);
    13. format(endstring, sizeof(endstring), "UPDATE `users` SET ");
    14. format(var, sizeof(var), "`Level`='%d', ", PlayerInfo[playerid][pLevel]);
    15. strcat(endstring, var, sizeof(endstring));
    16. format(var, sizeof(var), "`AdminLevel`='%d', ", PlayerInfo[playerid][pAdmin]);
    17. strcat(endstring, var, sizeof(endstring));
    18. format(var, sizeof(var), "`Money`='%d', ", PlayerInfo[playerid][pCash]);
    19. strcat(endstring, var, sizeof(endstring));
    20. format(var, sizeof(var), "`Checkpoint`='%d', ", CCP[playerid]);
    21. strcat(endstring, var, sizeof(endstring));
    22. format(var, sizeof(var), "`CPrison`='%d', ", xPrison[playerid]);
    23. strcat(endstring, var, sizeof(endstring));
    24. format(var, sizeof(var), "`RunningCP`='%d', ", RunningCP[playerid]);
    25. strcat(endstring, var, sizeof(endstring));
    26. format(var, sizeof(var), "`TeamRadar`='%d', ", TeamRadar[playerid]);
    27. strcat(endstring, var, sizeof(endstring));
    28. format(var, sizeof(var), "`BNDRadar`='%d', ", BNDRadar[playerid]);
    29. strcat(endstring, var, sizeof(endstring));
    30. format(var, sizeof(var), "`Rolex`='%d', ", PlayerInfo[playerid][pRolex]);
    31. strcat(endstring, var, sizeof(endstring));
    32. format(var, sizeof(var), "`Swissonic`='%d', ", PlayerInfo[playerid][pSwissonic]);
    33. strcat(endstring, var, sizeof(endstring));
    34. format(var, sizeof(var), "`Casio`='%d', ", PlayerInfo[playerid][pCasio]);
    35. strcat(endstring, var, sizeof(endstring));
    36. format(var, sizeof(var), "`Breitling`='%d', ", PlayerInfo[playerid][pBreitling]);
    37. strcat(endstring, var, sizeof(endstring));
    38. format(var, sizeof(var), "`Nixon`='%d', ", PlayerInfo[playerid][pNixon]);
    39. strcat(endstring, var, sizeof(endstring));
    40. format(var, sizeof(var), "`IceWatch`='%d', ", PlayerInfo[playerid][pIceWatch]);
    41. strcat(endstring, var, sizeof(endstring));
    42. format(var, sizeof(var), "`StartCoints`='%d', ", PlayerInfo[playerid][pStartCoints]);
    43. strcat(endstring, var, sizeof(endstring));
    44. format(var, sizeof(var), "`Coints`='%d', ", PlayerInfo[playerid][pCoints]);
    45. strcat(endstring, var, sizeof(endstring));
    46. format(var, sizeof(var), "`SpawnhealZeit`='%d', ", PlayerInfo[playerid][pSpawnhealZeit]);
    47. strcat(endstring, var, sizeof(endstring));
    48. format(var, sizeof(var), "`DeaglespawnZeit`='%d', ", PlayerInfo[playerid][pDeaglespawnZeit]);
    49. strcat(endstring, var, sizeof(endstring));
    50. format(var, sizeof(var), "`M4SpawnZeit`='%d', ", PlayerInfo[playerid][pM4SpawnZeit]);
    51. strcat(endstring, var, sizeof(endstring));
    52. format(var, sizeof(var), "`MP5SpawnZeit`='%d', ", PlayerInfo[playerid][pMP5SpawnZeit]);
    53. strcat(endstring, var, sizeof(endstring));
    54. format(var, sizeof(var), "`MehrZinsenZeit`='%d', ", PlayerInfo[playerid][pMehrZinsenZeit]);
    55. strcat(endstring, var, sizeof(endstring));
    56. format(var, sizeof(var), "`Medickit`='%d', ", PlayerInfo[playerid][pMedickit]);
    57. strcat(endstring, var, sizeof(endstring));
    58. format(var, sizeof(var), "`Startbonus`='%d', ", PlayerInfo[playerid][pStartbonus]);
    59. strcat(endstring, var, sizeof(endstring));
    60. format(var, sizeof(var), "`Kreditkarte`='%d', ", PlayerInfo[playerid][pKreditkarte]);
    61. strcat(endstring, var, sizeof(endstring));
    62. format(var, sizeof(var), "`KreditkarteBenutzung`='%d', ", PlayerInfo[playerid][pKreditkartebenutzen]);
    63. strcat(endstring, var, sizeof(endstring));
    64. format(var, sizeof(var), "`Personalausweis`='%d', ", PlayerInfo[playerid][pPersonalausweis]);
    65. strcat(endstring, var, sizeof(endstring));
    66. format(var, sizeof(var), "`Namechange`='%d', ", PlayerInfo[playerid][pSchongeandert]);
    67. strcat(endstring, var, sizeof(endstring));
    68. format(var, sizeof(var), "`DonateRank`='%d', ", PlayerInfo[playerid][pDonatorRank]);
    69. strcat(endstring, var, sizeof(endstring));
    70. format(var, sizeof(var), "`UpgradePoints`='%d', ", PlayerInfo[playerid][gPupgrade]);
    71. strcat(endstring, var, sizeof(endstring));
    72. format(var, sizeof(var), "`ConnectedTime`='%d', ", PlayerInfo[playerid][pConnectTime]);
    73. strcat(endstring, var, sizeof(endstring));
    74. format(var, sizeof(var), "`Registered`='%d', ", PlayerInfo[playerid][pReg]);
    75. strcat(endstring, var, sizeof(endstring));
    76. format(var, sizeof(var), "`Sex`='%d', ", PlayerInfo[playerid][pSex]);
    77. strcat(endstring, var, sizeof(endstring));
    78. format(var, sizeof(var), "`Age`='%d', ", PlayerInfo[playerid][pAlter]);
    79. strcat(endstring, var, sizeof(endstring));
    80. format(var, sizeof(var), "`Origin`='%d', ", PlayerInfo[playerid][pOrigin]);
    81. strcat(endstring, var, sizeof(endstring));
    82. format(var, sizeof(var), "`Muted`='%d', ", PlayerInfo[playerid][pMuted]);
    83. strcat(endstring, var, sizeof(endstring));
    84. format(var, sizeof(var), "`Respect`='%d', ", PlayerInfo[playerid][pRespekt]);
    85. strcat(endstring, var, sizeof(endstring));
    86. format(var, sizeof(var), "`Gehalt`='%d', ", PlayerInfo[playerid][pGehalt]);
    87. strcat(endstring, var, sizeof(endstring));
    88. format(var, sizeof(var), "`Money`='%d', ", PlayerInfo[playerid][pCash]);
    89. strcat(endstring, var, sizeof(endstring));
    90. format(var, sizeof(var), "`Bank`='%d', ", PlayerInfo[playerid][pBank]);
    91. strcat(endstring, var, sizeof(endstring));
    92. format(var, sizeof(var), "`Jobgeld`='%d', ", PlayerInfo[playerid][pJobLohn]);
    93. strcat(endstring, var, sizeof(endstring));
    94. format(var, sizeof(var), "`Crimes`='%d', ", PlayerInfo[playerid][pCrimes]);
    95. strcat(endstring, var, sizeof(endstring));
    96. format(var, sizeof(var), "`Kills`='%d', ", PlayerInfo[playerid][pKills]);
    97. strcat(endstring, var, sizeof(endstring));
    98. format(var, sizeof(var), "`sKills`='%d', ", PlayerInfo[playerid][psKills]);
    99. strcat(endstring, var, sizeof(endstring));
    100. format(var, sizeof(var), "`Deaths`='%d', ", PlayerInfo[playerid][pDeaths]);
    101. strcat(endstring, var, sizeof(endstring));
    102. format(var, sizeof(var), "`Arrested`='%d', ", PlayerInfo[playerid][pArrested]);
    103. strcat(endstring, var, sizeof(endstring));
    104. format(var, sizeof(var), "`ArrestTime`='%d', ", PlayerInfo[playerid][pArrestTime]);
    105. strcat(endstring, var, sizeof(endstring));
    106. format(var, sizeof(var), "`PhoneBook`='%d', ", PlayerInfo[playerid][pPhoneBook]);
    107. strcat(endstring, var, sizeof(endstring));
    108. format(var, sizeof(var), "`LottoNr`='%d', ", PlayerInfo[playerid][pLottoNr]);
    109. strcat(endstring, var, sizeof(endstring));
    110. format(var, sizeof(var), "`Fishes`='%d', ", PlayerInfo[playerid][pFishes]);
    111. strcat(endstring, var, sizeof(endstring));
    112. format(var, sizeof(var), "`BiggestFish`='%d', ", PlayerInfo[playerid][pBiggestFish]);
    113. strcat(endstring, var, sizeof(endstring));
    114. format(var, sizeof(var), "`Job`='%d'", PlayerInfo[playerid][pJob]);
    115. strcat(endstring, var, sizeof(endstring));
    116. format(var, sizeof(var), " WHERE `Name`='%s'", playername);
    117. strcat(endstring, var, sizeof(endstring));
    118. self_mysql_queryEx(endstring);
    Alles anzeigen



    Wie kann ich das Ganze auf die Neuste Version der Mysql Version Updaten?
  • Trastan schrieb:

    habs getestet falle immer noch vom himmel..
    Prüfe mal, ob GetPlayerPos bei OnPlayerDisconnect überhaupt noch eine Position aus gibt. Lasse dir anschließend den Wert von Z vor und nach MapAndreas ausgeben. Möglicherweise ist das Plugin nicht richtig geladen oder initialisiert?


    malE schrieb:

    Trotz mehrfacher Erhöhung gleicher Fehler.
    Geht die Meldung im Compiler denn weg? Falls nein, hast du eine "pawn.cfg" im pawno Ordner für den Debug Modus drin? Wenn ja, entferne diese bitte mal und versuche es dann nochmal.


    Dr. Frauenarzt schrieb:

    Wie kann ich das Ganze auf die Neuste Version der Mysql Version Updaten?
    Im Prinzip musst du nur am Ende mysql_pquery stattdessen ausführen. Die SQL Syntax bleibt ja gleich.
  • Jeffry schrieb:

    Trastan schrieb:

    habs getestet falle immer noch vom himmel..
    Prüfe mal, ob GetPlayerPos bei OnPlayerDisconnect überhaupt noch eine Position aus gibt. Lasse dir anschließend den Wert von Z vor und nach MapAndreas ausgeben. Möglicherweise ist das Plugin nicht richtig geladen oder initialisiert?

    malE schrieb:

    Trotz mehrfacher Erhöhung gleicher Fehler.
    Geht die Meldung im Compiler denn weg? Falls nein, hast du eine "pawn.cfg" im pawno Ordner für den Debug Modus drin? Wenn ja, entferne diese bitte mal und versuche es dann nochmal.

    Dr. Frauenarzt schrieb:

    Wie kann ich das Ganze auf die Neuste Version der Mysql Version Updaten?
    Im Prinzip musst du nur am Ende mysql_pquery stattdessen ausführen. Die SQL Syntax bleibt ja gleich.
    Ja er speichert wie voher auch als wenn ich im himmel den server verlasse spawne ich auch im himmel ander selben z cordinate
    C# << Das beste :thumbup:

  • Jeffry schrieb:

    Geht die Meldung im Compiler denn weg? Falls nein, hast du eine "pawn.cfg" im pawno Ordner für den Debug Modus drin? Wenn ja, entferne diese bitte mal und versuche es dann nochmal
    Danke! Das Problem lag tatsächlich daran, aber warum?
    Allerdings bleibt der gleiche Fehler, wenn ich meinen Befehl aufrufe.

    Quellcode

    1. ocmd:inventory(playerid, params[]) {
    2. new frmt[496];
    3. for(new i=0; i < MAX_PLAYER_ITEMS; i++) {
    4. if(Items[i][itemBesitzerID] != PlayerAccount[playerid][playerDBID])continue;
    5. format(frmt, sizeof(frmt), "%s%d. Item: %s (%d) | Amount: %d | Total Weight: %0.2f\n", frmt, i+1, getItemName(Items[i][itemID]), Items[i][itemID], Items[i][itemAmount], (ItemList[Items[i][itemID]][itemlWeight]*Items[i][itemAmount]));
    6. //Items[i][itemName]
    7. }
    8. if(!strlen(frmt))return SendClientMessage(playerid, -1, "Es befinden sich keine Items in deinem Inventar.");
    9. return SendClientMessage(playerid, -1, frmt);
    10. }
    11. [debug] Run time error 5: "Invalid memory access"
    12. [debug] AMX backtrace:
    13. [debug] #0 0000821c in public ocmd_inventory (0, 339332) from script.amx
    14. [debug] #1 native CallLocalFunction () from samp-server.exe
    15. [debug] #2 000003e0 in public OnPlayerCommandText (0, 339288) from script.amx
    Alles anzeigen
  • Quellcode

    1. [00:18:17] SERVER: Der Server wurde erfolgreich gestartet
    2. [00:18:17] SERVER: Versucht die Verbindung zur Datenbank aufzubauen
    3. [00:18:17] OnGamemodeInt: LoadBiz (4ms)
    4. [00:18:17] OnGamemodeInt: LoadSBiz (2ms)
    5. [00:18:17] OnGamemodeInt: LoadTankenBiz (12ms)
    6. [00:18:17] OnGamemodeInt: LoadStuff (8ms)
    7. [00:18:17] OnGamemodeInt: LoadKassenInfo (0ms)
    8. [00:18:17] OnGamemodeInt: LoadGangfightZones (1ms)
    9. [00:18:17] OnGamemodeInt: LoadGangWarInfos (17ms)
    10. [00:18:17] OnGamemodeInt: LoadGangBNDInfos (1ms)
    11. [00:18:17] sscanf warning: String buffer overflow.
    12. [00:18:17] [debug] Run time error 5: "Invalid memory access"
    13. [00:18:17] [debug] AMX backtrace:
    14. [00:18:17] [debug] #0 002a2f68 in public UpdateHaus (120) from WB.amx
    15. [00:18:17] [debug] #1 002a380c in ?? () from WB.amx
    16. [00:18:17] [debug] #2 0013ed90 in public SSCANF_OnGameModeInit () from WB.amx
    17. [00:18:17] [debug] #3 00004c18 in public FC_OnGameModeInit () from WB.amx
    18. [00:18:17] [debug] #4 native CallLocalFunction () from samp-server.exe
    19. [00:18:17] [debug] #5 00002e80 in public OnGameModeInit () from WB.amx
    Alles anzeigen
    pastebin.com/WerYM7S8

    Warum ist das so....
  • Quellcode

    1. PUBLIC:UpdateHaus(HausID)
    2. {
    3. new string[350],
    4. hstate[5] = "Nein",
    5. hrentstate[5] = "Nein",
    6. str[50] = "",
    7. str1[50] = "";
    8. if(HausInfo[HausID][hLocked])
    9. hstate = "Ja";
    10. if(HausInfo[HausID][hRentable] == 1)
    11. hrentstate = "Ja";
    12. if(strcmp(HausInfo[HausID][hOwner], "Niemand", true) == 0)
    13. strcat(str,"\n\nNutze /buyhouse um das Haus zu kaufen!");
    14. if(HausInfo[HausID][hRentable] == 1)
    15. strcat(str1,"\nNutze /einmieten um dich einzumieten!");
    16. format(string, 280, "%s\n\nHaus Nummer: %d\nBesitzer: %s\nVerschlossen: %s\nLevel: %d\nPreis: $%s\nMietpreis: $%s\nMietbar: %s%s%s", HausInfo[HausID][hName], HausInfo[HausID][hID], HausInfo[HausID][hOwner], hstate, HausInfo[HausID][hLevel], GetPoint(HausInfo[HausID][hPreis]), GetPoint(HausInfo[HausID][hMiete]), hrentstate, str, str1);
    17. if(IsValidDynamic3DTextLabel(HausInfo[HausID][hElement]))
    18. UpdateDynamic3DTextLabelText(HausInfo[HausID][hElement], COLOR_PICKUPS, string);
    19. else
    20. HausInfo[HausID][hElement] = CreateDynamic3DTextLabel(
    21. string,
    22. COLOR_PICKUPS,
    23. HausInfo[HausID][hausx],
    24. HausInfo[HausID][hausy],
    25. HausInfo[HausID][hausz],
    26. 10,
    27. INVALID_PLAYER_ID,
    28. INVALID_VEHICLE_ID,
    29. 1,
    30. 0,
    31. 0,
    32. -1,
    33. 100
    34. );
    35. if(IsValidDynamicPickup(HausInfo[HausID][hPickup]))
    36. DestroyDynamicPickup(HausInfo[HausID][hPickup]);
    37. new pickupID = 1272;
    38. if(strcmp(HausInfo[HausID][hOwner], "Niemand", true) == 0)
    39. pickupID = 1273;
    40. HausInfo[HausID][hPickup] = CreateDynamicPickup(pickupID, 1, HausInfo[HausID][hausx], HausInfo[HausID][hausy], HausInfo[HausID][hausz], 0);
    41. return 1;
    42. }
    Alles anzeigen
  • Bei der Regestration:


    Quellcode

    1. [08:24:27] UPDATE `users` SET `Level`='1', `AdminLevel`='0', `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`='1', `Sex`='0', `Age`='0', `Origin`='0', `Muted`='0', `Respect`='0', `Gehalt`='0', `Money`='5000', `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`='Dr.Frauenarzt'
    2. [08:24:27] UPDATE `users` SET `HeadValue`='0', `Jailed`='0', `JailTime`='0', `Leader`='-1', `Member`='-1', `Rank`='0', `Skin`='26', `Vertragszeit`='5' WHERE `Name`='Dr.Frauenarzt'
    3. [08:24:27] 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`='2249', `Hotel`='-1', `Biz`='-1', `CarLic`='0', `FlyLic`='0', `BoatLic`='0', `FishLic`='0', `GunLic`='0', `Zollpass`='0' WHERE `Name`='Dr.Frauenarzt'
    4. [08:24:27] UPDATE `users` SET `Gun1`='0', `Gun2`='0', `Gun3`='0', `Gun4`='0', `Ammo1`='0', `Ammo2`='0', `Ammo3`='0', `Ammo4`='0', `CarTime`='0', `PayDay`='0', `PayDayHad`='0', `CDPlayer`='0', `AlcoholPerk`='0', `PainKillerPerk`='0', `PistolSkill`='2', `MaschinePistolSkill`='2', `SturmgewehrPistolSkill`='2', `ShotGunSkill`='1', `DrugPerk`='0', `MiserPerk`='0', `TraderPerk`='0', `Tutorial`='0', `Cptut`='0', `kh`='0', `Warnings`='0' WHERE `Name`='Dr.Frauenarzt'
    5. [08:24:27] 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`='Dr.Frauenarzt'
    6. [08:24:27] UPDATE `users` SET `OnDutySkin`='60', `CarLicPoints`='0', `BikeLicPoints`='0', `InviteSperre`='0', `warntime1`='0', `warntime2`='0', `Ticketsopen`='0', `DonatorTime`='0', `OldName`='Niemand', `ClientIP`='127.0.0.1', `OrgMember`='-1', `OrgLeader`='-1', `OrgManager`='-1', `OrgName`='Keine' WHERE `Name`='Dr.Frauenarzt'



    Aber es entspricht nicht der wahrheit weil überall 0 eingetragen wird.
    Name Passwort stimmen überein aber der rest stimmt schon mal nicht. :D

    Wen ich mich einlogge sollte er es updaten aber macht er ja auch nicht.




    Code:

    Quellcode

    1. forward PlayerUpdate(playerid);
    2. public PlayerUpdate(playerid)
    3. {
    4. if(IsPlayerConnected(playerid))
    5. {
    6. if(IsPlayerNPC(playerid)) { return 1; }
    7. new playername[MAX_PLAYER_NAME];
    8. GetPlayerName(playerid, playername, sizeof(playername));
    9. new endstring[1600];
    10. new var[129];
    11. new Float: p[4];
    12. GetPlayerPos(playerid, p[0], p[1], p[2]);
    13. GetPlayerFacingAngle(playerid, p[3]);
    14. format(endstring, sizeof(endstring), "UPDATE `users` SET ");
    15. format(var, sizeof(var), "`Level`='%d', ", PlayerInfo[playerid][pLevel]);
    16. strcat(endstring, var, sizeof(endstring));
    17. format(var, sizeof(var), "`AdminLevel`='%d', ", PlayerInfo[playerid][pAdmin]);
    18. strcat(endstring, var, sizeof(endstring));
    19. format(var, sizeof(var), "`Checkpoint`='%d', ", CCP[playerid]);
    20. strcat(endstring, var, sizeof(endstring));
    21. format(var, sizeof(var), "`CPrison`='%d', ", xPrison[playerid]);
    22. strcat(endstring, var, sizeof(endstring));
    23. format(var, sizeof(var), "`RunningCP`='%d', ", RunningCP[playerid]);
    24. strcat(endstring, var, sizeof(endstring));
    25. format(var, sizeof(var), "`TeamRadar`='%d', ", TeamRadar[playerid]);
    26. strcat(endstring, var, sizeof(endstring));
    27. format(var, sizeof(var), "`BNDRadar`='%d', ", BNDRadar[playerid]);
    28. strcat(endstring, var, sizeof(endstring));
    29. format(var, sizeof(var), "`Rolex`='%d', ", PlayerInfo[playerid][pRolex]);
    30. strcat(endstring, var, sizeof(endstring));
    31. format(var, sizeof(var), "`Swissonic`='%d', ", PlayerInfo[playerid][pSwissonic]);
    32. strcat(endstring, var, sizeof(endstring));
    33. format(var, sizeof(var), "`Casio`='%d', ", PlayerInfo[playerid][pCasio]);
    34. strcat(endstring, var, sizeof(endstring));
    35. format(var, sizeof(var), "`Breitling`='%d', ", PlayerInfo[playerid][pBreitling]);
    36. strcat(endstring, var, sizeof(endstring));
    37. format(var, sizeof(var), "`Nixon`='%d', ", PlayerInfo[playerid][pNixon]);
    38. strcat(endstring, var, sizeof(endstring));
    39. format(var, sizeof(var), "`IceWatch`='%d', ", PlayerInfo[playerid][pIceWatch]);
    40. strcat(endstring, var, sizeof(endstring));
    41. format(var, sizeof(var), "`StartCoints`='%d', ", PlayerInfo[playerid][pStartCoints]);
    42. strcat(endstring, var, sizeof(endstring));
    43. format(var, sizeof(var), "`Coints`='%d', ", PlayerInfo[playerid][pCoints]);
    44. strcat(endstring, var, sizeof(endstring));
    45. format(var, sizeof(var), "`SpawnhealZeit`='%d', ", PlayerInfo[playerid][pSpawnhealZeit]);
    46. strcat(endstring, var, sizeof(endstring));
    47. format(var, sizeof(var), "`DeaglespawnZeit`='%d', ", PlayerInfo[playerid][pDeaglespawnZeit]);
    48. strcat(endstring, var, sizeof(endstring));
    49. format(var, sizeof(var), "`M4SpawnZeit`='%d', ", PlayerInfo[playerid][pM4SpawnZeit]);
    50. strcat(endstring, var, sizeof(endstring));
    51. format(var, sizeof(var), "`MP5SpawnZeit`='%d', ", PlayerInfo[playerid][pMP5SpawnZeit]);
    52. strcat(endstring, var, sizeof(endstring));
    53. format(var, sizeof(var), "`MehrZinsenZeit`='%d', ", PlayerInfo[playerid][pMehrZinsenZeit]);
    54. strcat(endstring, var, sizeof(endstring));
    55. format(var, sizeof(var), "`Medickit`='%d', ", PlayerInfo[playerid][pMedickit]);
    56. strcat(endstring, var, sizeof(endstring));
    57. format(var, sizeof(var), "`Startbonus`='%d', ", PlayerInfo[playerid][pStartbonus]);
    58. strcat(endstring, var, sizeof(endstring));
    59. format(var, sizeof(var), "`Kreditkarte`='%d', ", PlayerInfo[playerid][pKreditkarte]);
    60. strcat(endstring, var, sizeof(endstring));
    61. format(var, sizeof(var), "`KreditkarteBenutzung`='%d', ", PlayerInfo[playerid][pKreditkartebenutzen]);
    62. strcat(endstring, var, sizeof(endstring));
    63. format(var, sizeof(var), "`Personalausweis`='%d', ", PlayerInfo[playerid][pPersonalausweis]);
    64. strcat(endstring, var, sizeof(endstring));
    65. format(var, sizeof(var), "`Namechange`='%d', ", PlayerInfo[playerid][pSchongeandert]);
    66. strcat(endstring, var, sizeof(endstring));
    67. format(var, sizeof(var), "`DonateRank`='%d', ", PlayerInfo[playerid][pDonatorRank]);
    68. strcat(endstring, var, sizeof(endstring));
    69. format(var, sizeof(var), "`UpgradePoints`='%d', ", PlayerInfo[playerid][gPupgrade]);
    70. strcat(endstring, var, sizeof(endstring));
    71. format(var, sizeof(var), "`ConnectedTime`='%d', ", PlayerInfo[playerid][pConnectTime]);
    72. strcat(endstring, var, sizeof(endstring));
    73. format(var, sizeof(var), "`Registered`='%d', ", PlayerInfo[playerid][pReg]);
    74. strcat(endstring, var, sizeof(endstring));
    75. format(var, sizeof(var), "`Sex`='%d', ", PlayerInfo[playerid][pSex]);
    76. strcat(endstring, var, sizeof(endstring));
    77. format(var, sizeof(var), "`Age`='%d', ", PlayerInfo[playerid][pAlter]);
    78. strcat(endstring, var, sizeof(endstring));
    79. format(var, sizeof(var), "`Origin`='%d', ", PlayerInfo[playerid][pOrigin]);
    80. strcat(endstring, var, sizeof(endstring));
    81. format(var, sizeof(var), "`Muted`='%d', ", PlayerInfo[playerid][pMuted]);
    82. strcat(endstring, var, sizeof(endstring));
    83. format(var, sizeof(var), "`Respect`='%d', ", PlayerInfo[playerid][pRespekt]);
    84. strcat(endstring, var, sizeof(endstring));
    85. format(var, sizeof(var), "`Gehalt`='%d', ", PlayerInfo[playerid][pGehalt]);
    86. strcat(endstring, var, sizeof(endstring));
    87. format(var, sizeof(var), "`Money`='%d', ", PlayerInfo[playerid][pCash]);
    88. strcat(endstring, var, sizeof(endstring));
    89. format(var, sizeof(var), "`Bank`='%d', ", PlayerInfo[playerid][pBank]);
    90. strcat(endstring, var, sizeof(endstring));
    91. format(var, sizeof(var), "`Jobgeld`='%d', ", PlayerInfo[playerid][pJobLohn]);
    92. strcat(endstring, var, sizeof(endstring));
    93. format(var, sizeof(var), "`Crimes`='%d', ", PlayerInfo[playerid][pCrimes]);
    94. strcat(endstring, var, sizeof(endstring));
    95. format(var, sizeof(var), "`Kills`='%d', ", PlayerInfo[playerid][pKills]);
    96. strcat(endstring, var, sizeof(endstring));
    97. format(var, sizeof(var), "`sKills`='%d', ", PlayerInfo[playerid][psKills]);
    98. strcat(endstring, var, sizeof(endstring));
    99. format(var, sizeof(var), "`Deaths`='%d', ", PlayerInfo[playerid][pDeaths]);
    100. strcat(endstring, var, sizeof(endstring));
    101. format(var, sizeof(var), "`Arrested`='%d', ", PlayerInfo[playerid][pArrested]);
    102. strcat(endstring, var, sizeof(endstring));
    103. format(var, sizeof(var), "`ArrestTime`='%d', ", PlayerInfo[playerid][pArrestTime]);
    104. strcat(endstring, var, sizeof(endstring));
    105. format(var, sizeof(var), "`PhoneBook`='%d', ", PlayerInfo[playerid][pPhoneBook]);
    106. strcat(endstring, var, sizeof(endstring));
    107. format(var, sizeof(var), "`LottoNr`='%d', ", PlayerInfo[playerid][pLottoNr]);
    108. strcat(endstring, var, sizeof(endstring));
    109. format(var, sizeof(var), "`Fishes`='%d', ", PlayerInfo[playerid][pFishes]);
    110. strcat(endstring, var, sizeof(endstring));
    111. format(var, sizeof(var), "`BiggestFish`='%d', ", PlayerInfo[playerid][pBiggestFish]);
    112. strcat(endstring, var, sizeof(endstring));
    113. format(var, sizeof(var), "`Job`='%d'", PlayerInfo[playerid][pJob]);
    114. strcat(endstring, var, sizeof(endstring));
    115. format(var, sizeof(var), " WHERE `Name`='%s'", playername);
    116. strcat(endstring, var, sizeof(endstring));
    117. self_mysql_queryEx(endstring);
    118. print(endstring);
    119. format(endstring, sizeof(endstring), "UPDATE `users` SET ");
    120. format(var, sizeof(var), "`HeadValue`='%d', ", PlayerInfo[playerid][pHeadValue]);
    121. strcat(endstring, var, sizeof(endstring));
    122. format(var, sizeof(var), "`Jailed`='%d', ", PlayerInfo[playerid][pJailed]);
    123. strcat(endstring, var, sizeof(endstring));
    124. format(var, sizeof(var), "`JailTime`='%d', ", PlayerInfo[playerid][pJailTime]);
    125. strcat(endstring, var, sizeof(endstring));
    126. format(var, sizeof(var), "`Leader`='%d', ", PlayerInfo[playerid][pLeader]);
    127. strcat(endstring, var, sizeof(endstring));
    128. format(var, sizeof(var), "`Member`='%d', ", PlayerInfo[playerid][pMember]);
    129. strcat(endstring, var, sizeof(endstring));
    130. format(var, sizeof(var), "`Rank`='%d', ", PlayerInfo[playerid][pRank]);
    131. strcat(endstring, var, sizeof(endstring));
    132. format(var, sizeof(var), "`Skin`='%d', ", PlayerInfo[playerid][pChar]);
    133. strcat(endstring, var, sizeof(endstring));
    134. format(var, sizeof(var), "`Vertragszeit`='%d'", PlayerInfo[playerid][pVertragszeit]);
    135. strcat(endstring, var, sizeof(endstring));
    136. format(var, sizeof(var), " WHERE `Name`='%s'", playername);
    137. strcat(endstring, var, sizeof(endstring));
    138. self_mysql_queryEx(endstring);
    139. print(endstring);
    140. format(endstring, sizeof(endstring), "UPDATE `users` SET ");
    141. format(var, sizeof(var), "`NewsSkill`='%d', ", PlayerInfo[playerid][pNewsSkill]);
    142. strcat(endstring, var, sizeof(endstring));
    143. format(var, sizeof(var), "`House`='%d', ", PlayerInfo[playerid][pHaus]);
    144. strcat(endstring, var, sizeof(endstring));
    145. format(var, sizeof(var), "`Mieten`='%d', ", PlayerInfo[playerid][pMieten]);
    146. strcat(endstring, var, sizeof(endstring));
    147. format(var, sizeof(var), "`HealPaket`='%d', ", PlayerInfo[playerid][pHealPaket]);
    148. strcat(endstring, var, sizeof(endstring));
    149. format(var, sizeof(var), "`ArmourPaket`='%d', ", PlayerInfo[playerid][pArmourPaket]);
    150. strcat(endstring, var, sizeof(endstring));
    151. format(var, sizeof(var), "`WaffenPaket`='%d', ", PlayerInfo[playerid][pWaffenPaket]);
    152. strcat(endstring, var, sizeof(endstring));
    153. format(var, sizeof(var), "`OverHealPaket`='%d', ", PlayerInfo[playerid][pOverHealPaket]);
    154. strcat(endstring, var, sizeof(endstring));
    155. format(var, sizeof(var), "`FishSkill`='%d', ", PlayerInfo[playerid][pFishSkill]);
    156. strcat(endstring, var, sizeof(endstring));
    157. format(var, sizeof(var), "`MechSkill`='%d', ", PlayerInfo[playerid][pMechSkill]);
    158. strcat(endstring, var, sizeof(endstring));
    159. format(var, sizeof(var), "`pSHealth`='%.1f', ", PlayerInfo[playerid][pSHealth]);
    160. strcat(endstring, var, sizeof(endstring));
    161. format(var, sizeof(var), "`PhoneNr`='%d', ", PlayerInfo[playerid][pNummer]);
    162. strcat(endstring, var, sizeof(endstring));
    163. format(var, sizeof(var), "`Hotel`='%d', ", PlayerInfo[playerid][pPhotelkey]);
    164. strcat(endstring, var, sizeof(endstring));
    165. format(var, sizeof(var), "`Biz`='%d', ", PlayerInfo[playerid][pBizKey]);
    166. strcat(endstring, var, sizeof(endstring));
    167. format(var, sizeof(var), "`CarLic`='%d', ", PlayerInfo[playerid][pCarLic]);
    168. strcat(endstring, var, sizeof(endstring));
    169. format(var, sizeof(var), "`FlyLic`='%d', ", PlayerInfo[playerid][pFlyLic]);
    170. strcat(endstring, var, sizeof(endstring));
    171. format(var, sizeof(var), "`BoatLic`='%d', ", PlayerInfo[playerid][pBoatLic]);
    172. strcat(endstring, var, sizeof(endstring));
    173. format(var, sizeof(var), "`FishLic`='%d', ", PlayerInfo[playerid][pFishLic]);
    174. strcat(endstring, var, sizeof(endstring));
    175. format(var, sizeof(var), "`GunLic`='%d', ", PlayerInfo[playerid][pGunLic]);
    176. strcat(endstring, var, sizeof(endstring));
    177. format(var, sizeof(var), "`Zollpass`='%d'", PlayerInfo[playerid][pZollpass]);
    178. strcat(endstring, var, sizeof(endstring));
    179. format(var, sizeof(var), " WHERE `Name`='%s'", playername);
    180. strcat(endstring, var, sizeof(endstring));
    181. self_mysql_queryEx(endstring);
    182. print(endstring);
    183. format(endstring, sizeof(endstring), "UPDATE `users` SET ");
    184. format(var, sizeof(var), "`Gun1`='%d', ", PlayerInfo[playerid][pGun1]);
    185. strcat(endstring, var, sizeof(endstring));
    186. format(var, sizeof(var), "`Gun2`='%d', ", PlayerInfo[playerid][pGun2]);
    187. strcat(endstring, var, sizeof(endstring));
    188. format(var, sizeof(var), "`Gun3`='%d', ", PlayerInfo[playerid][pGun3]);
    189. strcat(endstring, var, sizeof(endstring));
    190. format(var, sizeof(var), "`Gun4`='%d', ", PlayerInfo[playerid][pGun4]);
    191. strcat(endstring, var, sizeof(endstring));
    192. format(var, sizeof(var), "`Ammo1`='%d', ", PlayerInfo[playerid][pAmmo1]);
    193. strcat(endstring, var, sizeof(endstring));
    194. format(var, sizeof(var), "`Ammo2`='%d', ", PlayerInfo[playerid][pAmmo2]);
    195. strcat(endstring, var, sizeof(endstring));
    196. format(var, sizeof(var), "`Ammo3`='%d', ", PlayerInfo[playerid][pAmmo3]);
    197. strcat(endstring, var, sizeof(endstring));
    198. format(var, sizeof(var), "`Ammo4`='%d', ", PlayerInfo[playerid][pAmmo4]);
    199. strcat(endstring, var, sizeof(endstring));
    200. format(var, sizeof(var), "`CarTime`='%d', ", PlayerInfo[playerid][pCarTime]);
    201. strcat(endstring, var, sizeof(endstring));
    202. format(var, sizeof(var), "`PayDay`='%d', ", PlayerInfo[playerid][pPayDay]);
    203. strcat(endstring, var, sizeof(endstring));
    204. format(var, sizeof(var), "`PayDayHad`='%d', ", PlayerInfo[playerid][pPayDayHad]);
    205. strcat(endstring, var, sizeof(endstring));
    206. format(var, sizeof(var), "`CDPlayer`='%d', ", PlayerInfo[playerid][pCDPlayer]);
    207. strcat(endstring, var, sizeof(endstring));
    208. format(var, sizeof(var), "`AlcoholPerk`='%d', ", PlayerInfo[playerid][pAlcoholPerk]);
    209. strcat(endstring, var, sizeof(endstring));
    210. format(var, sizeof(var), "`PainKillerPerk`='%d', ", PlayerInfo[playerid][pPainKillerPerk]);
    211. strcat(endstring, var, sizeof(endstring));
    212. format(var, sizeof(var), "`PistolSkill`='%d', ", PlayerInfo[playerid][pPistolSkill]);
    213. strcat(endstring, var, sizeof(endstring));
    214. format(var, sizeof(var), "`MaschinePistolSkill`='%d', ", PlayerInfo[playerid][pMaschinePistolSkill]);
    215. strcat(endstring, var, sizeof(endstring));
    216. format(var, sizeof(var), "`SturmgewehrPistolSkill`='%d', ", PlayerInfo[playerid][pSturmgewehrPistolSkill]);
    217. strcat(endstring, var, sizeof(endstring));
    218. format(var, sizeof(var), "`ShotGunSkill`='%d', ", PlayerInfo[playerid][pShotGunSkill]);
    219. strcat(endstring, var, sizeof(endstring));
    220. format(var, sizeof(var), "`DrugPerk`='%d', ", PlayerInfo[playerid][pDrugPerk]);
    221. strcat(endstring, var, sizeof(endstring));
    222. format(var, sizeof(var), "`MiserPerk`='%d', ", PlayerInfo[playerid][pMiserPerk]);
    223. strcat(endstring, var, sizeof(endstring));
    224. format(var, sizeof(var), "`TraderPerk`='%d', ", PlayerInfo[playerid][pTraderPerk]);
    225. strcat(endstring, var, sizeof(endstring));
    226. format(var, sizeof(var), "`Tutorial`='%d', ", PlayerInfo[playerid][pTut]);
    227. strcat(endstring, var, sizeof(endstring));
    228. format(var, sizeof(var), "`Cptut`='%d', ", PlayerInfo[playerid][pCPTUT]);
    229. strcat(endstring, var, sizeof(endstring));
    230. format(var, sizeof(var), "`kh`='%d', ", PlayerInfo[playerid][pKHTIME]);
    231. strcat(endstring, var, sizeof(endstring));
    232. format(var, sizeof(var), "`Warnings`='%d'", PlayerInfo[playerid][pWarns]);
    233. strcat(endstring, var, sizeof(endstring));
    234. format(var, sizeof(var), " WHERE `Name`='%s'", playername);
    235. strcat(endstring, var, sizeof(endstring));
    236. self_mysql_queryEx(endstring);
    237. print(endstring);
    238. format(endstring, sizeof(endstring), "UPDATE `users` SET ");
    239. format(var, sizeof(var), "`Fuel`='%d', ", PlayerInfo[playerid][pFuel]);
    240. strcat(endstring, var, sizeof(endstring));
    241. format(var, sizeof(var), "`Married`='%d', ", PlayerInfo[playerid][pMarried]);
    242. strcat(endstring, var, sizeof(endstring));
    243. format(var, sizeof(var), "`MarriedTo`='%s', ", PlayerInfo[playerid][pMarriedTo]);
    244. strcat(endstring, var, sizeof(endstring));
    245. format(var, sizeof(var), "`WantedLevel`='%d', ", PlayerInfo[playerid][pWantedLevel]);
    246. strcat(endstring, var, sizeof(endstring));
    247. format(var, sizeof(var), "`Spawn`='%d', ", PlayerInfo[playerid][pSpawn]);
    248. strcat(endstring, var, sizeof(endstring));
    249. format(var, sizeof(var), "`SavedMaterials`='%d', ", PlayerInfo[playerid][pSaveMats]);
    250. strcat(endstring, var, sizeof(endstring));
    251. format(var, sizeof(var), "`SavedDrugs`='%d', ", PlayerInfo[playerid][pSaveDrugs]);
    252. strcat(endstring, var, sizeof(endstring));
    253. format(var, sizeof(var), "`BikeLic`='%d', ", PlayerInfo[playerid][pBikeLic]);
    254. strcat(endstring, var, sizeof(endstring));
    255. format(var, sizeof(var), "`LKWLic`='%d', ", PlayerInfo[playerid][pLKWLic]);
    256. strcat(endstring, var, sizeof(endstring));
    257. format(var, sizeof(var), "`DonatorTime`='%d', ", PlayerInfo[playerid][pDonatorZeit]);
    258. strcat(endstring, var, sizeof(endstring));
    259. format(var, sizeof(var), "`WerberName`='%s', ", PlayerInfo[playerid][pWerberName]);
    260. strcat(endstring, var, sizeof(endstring));
    261. format(var, sizeof(var), "`FightingStyle`='%d', ", PlayerInfo[playerid][pFightingStyle]);
    262. strcat(endstring, var, sizeof(endstring));
    263. format(var, sizeof(var), "`Handy`='%d'", PlayerInfo[playerid][pHandy]);
    264. strcat(endstring, var, sizeof(endstring));
    265. format(var, sizeof(var), " WHERE `Name`='%s'", playername);
    266. strcat(endstring, var, sizeof(endstring));
    267. self_mysql_queryEx(endstring);
    268. print(endstring);
    269. format(endstring, sizeof(endstring), "UPDATE `users` SET ");
    270. format(var, sizeof(var), "`OnDutySkin`='%d', ", PlayerInfo[playerid][pOnDutySkin]);
    271. strcat(endstring, var, sizeof(endstring));
    272. format(var, sizeof(var), "`CarLicPoints`='%d', ", PlayerInfo[playerid][pCarLicPoints]);
    273. strcat(endstring, var, sizeof(endstring));
    274. format(var, sizeof(var), "`BikeLicPoints`='%d', ", PlayerInfo[playerid][pBikeLicPoints]);
    275. strcat(endstring, var, sizeof(endstring));
    276. format(var, sizeof(var), "`InviteSperre`='%d', ", PlayerInfo[playerid][pInviteSperre]);
    277. strcat(endstring, var, sizeof(endstring));
    278. format(var, sizeof(var), "`warntime1`='%d', ", PlayerInfo[playerid][pWarnTime1]);
    279. strcat(endstring, var, sizeof(endstring));
    280. format(var, sizeof(var), "`warntime2`='%d', ", PlayerInfo[playerid][pWarnTime2]);
    281. strcat(endstring, var, sizeof(endstring));
    282. format(var, sizeof(var), "`Ticketsopen`='%d', ", PlayerInfo[playerid][pTicketsopen]);
    283. strcat(endstring, var, sizeof(endstring));
    284. format(var, sizeof(var), "`DonatorTime`='%d', ", PlayerInfo[playerid][pDonatorZeit]);
    285. strcat(endstring, var, sizeof(endstring));
    286. format(var, sizeof(var), "`OldName`='%s', ", PlayerInfo[playerid][pOldName]);
    287. strcat(endstring, var, sizeof(endstring));
    288. format(var, sizeof(var), "`ClientIP`='%s', ", PlayerInfo[playerid][pUserIP]);
    289. strcat(endstring, var, sizeof(endstring));
    290. format(var, sizeof(var), "`OrgMember`='%d', ", PlayerInfo[playerid][pOrgaID]);
    291. strcat(endstring, var, sizeof(endstring));
    292. format(var, sizeof(var), "`OrgLeader`='%d', ", PlayerInfo[playerid][pOrgaLeader]);
    293. strcat(endstring, var, sizeof(endstring));
    294. format(var, sizeof(var), "`OrgManager`='%d', ", PlayerInfo[playerid][pOrgaManager]);
    295. strcat(endstring, var, sizeof(endstring));
    296. format(var, sizeof(var), "`OrgName`='%s'", PlayerInfo[playerid][pOrgaName]);
    297. strcat(endstring, var, sizeof(endstring));
    298. format(var, sizeof(var), " WHERE `Name`='%s'", playername);
    299. strcat(endstring, var, sizeof(endstring));
    300. self_mysql_queryEx(endstring);
    301. print(endstring);
    302. }
    303. return 1;
    304. }
    Alles anzeigen

    OnDialogrespawnse:

    Quellcode

    1. else if(dialogid == Login)
    2. {
    3. if(response == 0)
    4. {
    5. SendClientMessage(playerid, COLOR_ERRORTEXT,"Du hast den Vorgang abgebrochen und wurdest automatisch gekickt.");
    6. TogglePlayerControllable(playerid, 0);
    7. Kick(playerid);
    8. }
    9. if(response == 1)
    10. {
    11. if(strlen(inputtext) == 0 || strlen(inputtext) < -1 || strlen(inputtext) > 15) // Wenn kein Passwort angegebene wurde
    12. {
    13. ShowPlayerDialog(playerid, Login, DIALOG_STYLE_PASSWORD, "Coming Soon: Login", "Bitte gib zur Verifizierung deiner Person das Accountpasswort ein:","Login","Verlassen");
    14. return 1;
    15. }
    16. else
    17. {
    18. new NotJoin = 0;
    19. new StepID = -1;
    20. new sendername[MAX_PLAYER_NAME];
    21. for(new i = 0; i < sizeof(OffPickup); i++)
    22. {
    23. if(OffPickup[i][OffErstellt] == 1)
    24. {
    25. if(OffPickup[i][OffZeit] > 0)
    26. {
    27. GetPlayerName(playerid, sendername, sizeof(sendername));
    28. if(strcmp(sendername,OffPickup[i][OfflineName], true) == 0)
    29. {
    30. NotJoin = 1;
    31. StepID = i;
    32. break;
    33. }
    34. }
    35. }
    36. }
    37. if(CheckPasswort(playerid, inputtext)) // Wir holen uns das Passwort aus der MySQL Datenbank und überprüfen es mit dem angegebenen passwort.
    38. {
    39. if(NotJoin == 1)
    40. {
    41. format(string, sizeof(string), "Du kannst dich erst nach %d Sekunden wieder einloggen.\n\nBitte warte eine Weile und gibt dann dein Accountpasswort ein.",OffPickup[StepID][OffZeit]);
    42. ShowPlayerDialog(playerid, Login, DIALOG_STYLE_PASSWORD, "Coming Soon: Login", string,"Login","Abbruch");
    43. return 1;
    44. }
    45. strmid(PlayerInfo[playerid][pKey], inputtext, 0, strlen(inputtext), 255);
    46. OnPlayerLogin(playerid); //Der Spieler wird "geladen", speich es werden seine Daten aus der Datenbank geholt und in variablen gespeichert um diese im Skript zu verwenden.
    47. return 1;
    48. }
    49. else
    50. {
    51. ShowPlayerDialog(playerid, Login, DIALOG_STYLE_PASSWORD, "Coming Soon: Passwort Falsch", "Das eingegebene Passwort ist Falsch, bitte versuche es erneut.","Login","Verlassen");
    52. return 1;
    53. }
    54. }
    55. }
    56. return 1;
    57. }
    Alles anzeigen


    //E:

    MysQL Update zu R39-6

    PAWN-Quellcode

    1. C:\Users\ASUS\Desktop\GTA - San Andreas Daten\Sachen\Reallife\gamemodes\Reallife.pwn(6190) : error 017: undefined symbol "mysql_store_result"

    PAWN-Quellcode

    1. mysql_store_result(MySQLConnection);
    -> Zu Was Umändern Mysql R39-6

    PAWN-Quellcode

    1. C:\Users\ASUS\Desktop\GTA - San Andreas Daten\Sachen\Reallife\gamemodes\Reallife.pwn(6191) : error 017: undefined symbol "mysql_num_rows"

    PAWN-Quellcode

    1. if(mysql_num_rows(MySQLConnection) != 0)
    -> Zu Was Umändern Mysql R39-6

    PAWN-Quellcode

    1. C:\Users\ASUS\Desktop\GTA - San Andreas Daten\Sachen\Reallife\gamemodes\Reallife.pwn(6196) : error 017: undefined symbol "mysql_fetch_field_row"

    PAWN-Quellcode

    1. mysql_fetch_row_format(TextString);
    -> Zu Was Umändern Mysql R39-6

    Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von Dr. Frauenarzt ()

  • Trastan schrieb:

    Ja er speichert wie voher auch als wenn ich im himmel den server verlasse spawne ich auch im himmel ander selben z cordinate
    Hast du dir die Werte denn per Print mal vor und nach MapAndreas ausgeben lassen? Wenn ja, was kommt raus?


    malE schrieb:

    Danke! Das Problem lag tatsächlich daran, aber warum?
    Allerdings bleibt der gleiche Fehler, wenn ich meinen Befehl aufrufe.
    Die Meldung kam in dem Fall dann vom Debug Modus.

    Tritt der Fehler denn nur bei dem Befehl auf, oder auch bei anderen Befehlen?
    Hast du mal versucht, den Befehl als "strcmp" Befehl anzulegen, und den ocmd Befehl zu entfernen, klappt es dann?