Server kackt ab? aber warum

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Server kackt nach einer gewissen zeit ab hier der Changelog


    [20:11:17] OnPlayerSpawn - Debug 08
    [20:11:17] OnPlayerSpawn - Debug 09
    [20:11:17] OnPlayerSpawn - Debug 10
    [20:11:17] OnPlayerSpawn - Debug 11
    [20:11:17] OnPlayerSpawn - Debug 11
    [20:11:17] OnPlayerSpawn - Debug 12
    [20:11:17] OnPlayerSpawn - Debug 13
    [20:11:17] OnPlayerSpawn f�r Enrico: 0ms
    [20:11:17] Waffenladen Enrico dauert 2ms
    [20:11:19] sscanf warning: String buffer overflow.
    [20:11:49] sscanf warning: String buffer overflow.
    [20:12:02] sscanf warning: String buffer overflow.
    [20:12:05] Incoming connection: 178.0.2.184:58506
    [20:12:06] [join] xXRapidzzXx has joined the server (4:178.0.2.184)
    [20:12:06] SSCANF_OnPlayerConnect
    [20:12:06] OnPlayerConnect - Debug 00
    [20:12:06] OnPlayerConnect - Debug 01
    [20:12:06] OnPlayerConnect - Debug 02
    [20:12:06] OnPlayerConnect - Debug 03
    [20:12:06] OnPlayerConnect - Debug 04
    [20:12:06] OnPlayerConnect - Debug 40
    [20:12:06] OnPlayerConnect - Debug 41
    [20:12:06] OnPlayerConnect - Debug 42
    [20:12:06] OnPlayerConnect - Debug 43
    [20:12:06] OnPlayerConnect - Debug 44
    [20:12:06] OnPlayerConnect - Debug 45
    [20:12:06] OnPlayerConnect - Debug 46
    [20:12:06] OnPlayerConnect - Debug 47
    [20:12:06] OnPlayerConnect - Debug 48
    [20:12:06] OnPlayerConnect - Debug 49
    [20:12:06] OnPlayerConnect - Debug 41
    [20:12:06] OnPlayerConnect - Debug 42
    [20:12:06] OnPlayerConnect - Debug 43
    [20:12:06] OnPlayerConnect - Debug 44
    [20:12:06] OnPlayerConnect - Debug 45
    [20:12:06] OnPlayerConnect - Debug 46
    [20:12:06] OnPlayerConnect - Debug 47
    [20:12:06] OnPlayerConnect - Debug 48
    [20:12:06] OnPlayerConnect - Debug 05
    [20:12:06] OnPlayerConnect - Debug 06
    [20:12:06] OnPlayerconect (xXRapidzzXx) dauert 1ms
    [20:12:41] [Versuch]xXRapidzzXx hat versucht sich zu Registrieren
    [20:12:41] [Automatisch Einloggen]xXRapidzzXx wurde automatisch eingeloggt.
    [20:12:41] 1699889
    [20:12:41] [Registrierung]xXRapidzzXx hat die Datei f�rs Handy erstellt
    [20:12:41] [Registrierung]xXRapidzzXx hat sich Registriert.
    [20:12:41] OnPlayerSpawn - Debug 01
    [20:12:41] OnPlayerSpawn - Debug 02
    [20:12:41] OnPlayerSpawn - Debug 03
    [20:12:41] OnPlayerSpawn - Debug 04
    [20:12:41] OnPlayerSpawn - Debug 05
    [20:12:41] OnPlayerSpawn - Debug 06
    [20:12:41] OnPlayerSpawn - Debug 07
    [20:12:41] OnPlayerSpawn - Debug 08
    [20:12:41] OnPlayerSpawn - Debug 09
    [20:12:41] OnPlayerSpawn - Debug 10
    [20:12:41] OnPlayerSpawn - Debug 11
    [20:12:41] OnPlayerSpawn - Debug 11
    [20:12:41] OnPlayerSpawn - Debug 12
    [20:12:41] OnPlayerSpawn - Debug 13
    [20:12:41] OnPlayerSpawn f�r xXRapidzzXx: 1ms
    [20:13:20] sscanf warning: String buffer overflow.
    [20:14:33] sscanf warning: String buffer overflow.
    [20:14:34] sscanf warning: String buffer overflow.
    [20:14:55] sscanf warning: String buffer overflow.
    [20:15:26] sscanf warning: String buffer overflow.
    [20:16:24] sscanf warning: String buffer overflow.
    [20:17:08] sscanf warning: String buffer overflow.
    [20:18:06] sscanf warning: String buffer overflow.
    [20:18:16] sscanf warning: String buffer overflow.
    [20:18:22] sscanf warning: String buffer overflow.
    [20:18:32] sscanf warning: String buffer overflow.
    [20:18:35] sscanf warning: String buffer overflow.
    [20:19:33] lalelu22 702 1018
    [20:19:37] lalelu22 702 1082
    [20:19:39] lalelu22 702 1087
    [20:19:39] sscanf warning: String buffer overflow.
    [20:19:41] lalelu22 702 1010
    [20:19:44] lalelu22 702 1145
    [20:19:45] sscanf warning: String buffer overflow.
    [20:19:53] sscanf warning: String buffer overflow.
    [20:19:55] [MySQL] Error (0): Failed to exeute query. Lost connection to MySQL server during query.
    [20:20:03] sscanf warning: String buffer overflow.
    [20:20:14] sscanf warning: String buffer overflow.
    [20:20:32] sscanf warning: String buffer overflow.
    [20:20:35] [chat] [PlayBoy]: :)
    [20:20:37] [chat] [xXRapidzzXx]: hiho
    [20:20:39] [chat] [xXRapidzzXx]: XD
    [20:20:53] [chat] [PlayBoy]: hi
    [20:20:56] sscanf warning: String buffer overflow.
    [20:20:57] sscanf warning: String buffer overflow.
    [20:20:59] sscanf warning: String buffer overflow.
    [20:21:00] sscanf warning: String buffer overflow.
    [20:21:01] sscanf warning: String buffer overflow.
    [20:21:49] sscanf warning: String buffer overflow.
    [20:21:50] sscanf warning: String buffer overflow.
    [20:21:51] sscanf warning: String buffer overflow.
    [20:21:51] sscanf warning: String buffer overflow.
    [20:22:07] sscanf warning: String buffer overflow.
    [20:22:22] sscanf warning: String buffer overflow.
    [20:22:28] sscanf warning: String buffer overflow.
    [20:22:35] sscanf warning: String buffer overflow.
    [20:22:38] sscanf warning: String buffer overflow.
    [20:22:40] sscanf warning: String buffer overflow.
    [20:22:42] sscanf warning: String buffer overflow.
    [20:22:49] [chat] [xXRapidzzXx]: s
    [20:23:03] sscanf warning: String buffer overflow.
    [20:23:14] sscanf warning: String buffer overflow.
    [20:23:23] sscanf warning: String buffer overflow.
    [20:23:27] sscanf warning: String buffer overflow.
    [20:23:31] sscanf warning: String buffer overflow.
    [20:23:40] sscanf warning: String buffer overflow.
    [20:23:41] sscanf warning: String buffer overflow.
    [20:23:53] sscanf warning: String buffer overflow.
    [20:23:54] [SERVER] Das Wetter wurde ge�ndert.
    [20:24:06] sscanf warning: String buffer overflow.
    [20:24:19] sscanf warning: String buffer overflow.
    [20:24:36] sscanf warning: String buffer overflow.
    [20:24:39] sscanf warning: String buffer overflow.
    [20:24:47] Es wird versucht den Ordner 'scriptfiles/logs/2013/' zu �ffnen
    [20:24:47] Der Ordner 'scriptfiles/logs/2013/' existiert bereits.
    [20:24:47]
    [20:24:47] Es wird versucht den Ordner 'scriptfiles/logs/2013/03/' zu �ffnen
    [20:24:47] Der Ordner 'scriptfiles/logs/2013/03/' existiert nicht, und wird nun erstellt.
    [20:24:47] 'scriptfiles/logs/2013/03/' wurde erstellt
    [20:24:47]
    [20:24:47] Es wird versucht den Ordner 'scriptfiles/logs/2013/03/16/' zu �ffnen
    [20:24:47] Der Ordner 'scriptfiles/logs/2013/03/16/' existiert nicht, und wird nun erstellt.
    [20:24:47] 'scriptfiles/logs/2013/03/16/' wurde erstellt
    [20:24:47]
    [20:24:47] Es wird versucht den Ordner 'scriptfiles/logs/2013/03/16/support/' zu �ffnen
    [20:24:47] Der Ordner 'scriptfiles/logs/2013/03/16/support/' existiert nicht, und wird nun erstellt.
    [20:24:47] 'scriptfiles/logs/2013/03/16/support/' wurde erstellt
    [20:24:47]
    [20:24:47] Ordner Vorg�nge erfolgreich abgeschlossen
    [20:25:05] [chat] [lalelu22]: lars rep mal
    [20:25:12] [chat] [xXRapidzzXx]: Ok
    [20:25:20] sscanf warning: String buffer overflow.
    [20:25:26] sscanf warning: String buffer overflow.
    [20:25:34] [chat] [lalelu22]: XD
    [20:25:45] [chat] [lalelu22]: geil :D
    [20:26:05] sscanf warning: String buffer overflow.
    [20:27:05] sscanf warning: String buffer overflow.
    [20:27:35] sscanf warning: String buffer overflow.
    [20:27:48] [chat] [xXRapidzzXx]: lol
    [20:27:51] sscanf warning: String buffer overflow.
    [20:27:54] [chat] [Enrico]: als was haste dich beworben
    [20:27:57] sscanf warning: String buffer overflow.
    [20:27:58] [chat] [xXRapidzzXx]: Medic
    [20:28:24] [chat] [xXRapidzzXx]: Endlich Mal Kein Dm-Frak Wo ich auch helfen kann ^^
    [20:28:57] sscanf warning: String buffer overflow.
    [20:28:59] sscanf warning: String buffer overflow.
    [20:29:03] [chat] [xXRapidzzXx]: wtf
    [20:29:07] sscanf warning: String buffer overflow.
    [20:29:09] sscanf warning: String buffer overflow.
    [20:30:12] [chat] [xXRapidzzXx]: Krief Ich auch Stats back ?
    [20:30:14] OnPlayerDisconnect f�r lalelu22 ausgef�hrt.
    [20:30:14] [MySQL] Error (0): Failed to exeute query. Lost connection to MySQL server during query.
    [20:30:14] saveAuto dauert 0ms
    [20:30:14] Fahrzeug : 1 (ID:702) wurde gel�scht [Besitzer: lalelu22]
    [20:30:14] Autos l�schen dauert 1ms
    [20:30:14] Onplayerdissconect geht f�r lalelu22(1ms)
    [20:30:14] [part] lalelu22 has left the server (1:0)
    [20:30:19] sscanf warning: String buffer overflow.
    [20:30:33] [chat] [Enrico]: giebt es leider nicht
    [20:30:37] [chat] [xXRapidzzXx]: )_:
    [20:30:40] [chat] [Enrico]: musste auch neu anfangen
    [20:30:42] [chat] [xXRapidzzXx]: alle scheine ?
    [20:30:43] [chat] [Enrico]: aber keine angst
    [20:30:44] [chat] [xXRapidzzXx]: Aso
    [20:30:46] [chat] [xXRapidzzXx]: ^^
    [20:30:50] [chat] [xXRapidzzXx]: Knapp bei kasse D:
    [20:30:57] [chat] [xXRapidzzXx]: Knapp bei kasse D:
    [20:30:59] sscanf warning: String buffer overflow.
    [20:31:01] [chat] [xXRapidzzXx]: Wtf
    [20:31:19] [chat] [xXRapidzzXx]: Wo isn
    [20:31:23] sscanf warning: String buffer overflow.
    [20:31:23] [chat] [xXRapidzzXx]: Wo sind*
    [20:31:28] [chat] [xXRapidzzXx]: Die Krankenwagen ?
    [20:31:31] [chat] [xXRapidzzXx]: Krankenhaus ?
    [20:31:36] sscanf warning: String buffer overflow.
    [20:31:51] [chat] [xXRapidzzXx]: F�herschein
    [20:31:57] sscanf warning: String buffer overflow.
    [20:32:05] [chat] [xXRapidzzXx]: --.-
    [20:32:07] sscanf warning: String buffer overflow.
    [20:32:27] sscanf warning: String buffer overflow.
    [20:32:28] [chat] [LaRs_HeiDler]: und nu
    [20:33:44] sscanf warning: String buffer overflow.
    [20:34:10] sscanf warning: String buffer overflow.
    [20:34:38] [chat] [LaRs_HeiDler]: da
    [20:34:51] sscanf warning: String buffer overflow.
    [20:34:53] sscanf warning: String buffer overflow.
    [20:34:56] sscanf warning: String buffer overflow.
    [20:35:05] [chat] [xXRapidzzXx]: jaja
    [20:35:07] sscanf warning: String buffer overflow.
    [20:35:07] [chat] [xXRapidzzXx]: Huch
    [20:35:13] sscanf warning: String buffer overflow.
    [20:35:22] sscanf warning: String buffer overflow.
    [20:35:54] sscanf warning: String buffer overflow.
    [20:36:16] sscanf warning: String buffer overflow.
    [20:36:22] sscanf warning: String buffer overflow.
    [20:36:24] sscanf warning: String buffer overflow.
    [20:36:24] sscanf warning: String buffer overflow.
    [20:36:29] sscanf warning: String buffer overflow.
    [20:36:39] sscanf warning: String buffer overflow.
    [20:36:47] sscanf warning: String buffer overflow.
    [20:36:49] sscanf warning: String buffer overflow.
    [20:36:52] sscanf warning: String buffer overflow.
    [20:36:54] sscanf warning: String buffer overflow.
    [20:36:59] sscanf warning: String buffer overflow.
    [20:38:37] sscanf warning: String buffer overflow.
    [20:38:50] Incoming connection: 92.225.28.209:49364
    [20:38:50] [join] Bosna has joined the server (1:92.225.28.209)
    [20:38:50] SSCANF_OnPlayerConnect
    [20:38:50] OnPlayerConnect - Debug 00
    [20:38:50] OnPlayerConnect - Debug 01
    [20:38:50] OnPlayerConnect - Debug 02
    [20:38:50] OnPlayerConnect - Debug 03
    [20:38:50] OnPlayerConnect - Debug 04
    [20:38:50] OnPlayerConnect - Debug 40
    [20:38:50] OnPlayerConnect - Debug 41
    [20:38:50] OnPlayerConnect - Debug 42
    [20:38:50] OnPlayerConnect - Debug 43
    [20:38:50] OnPlayerConnect - Debug 44
    [20:38:50] OnPlayerConnect - Debug 45
    [20:38:50] OnPlayerConnect - Debug 46
    [20:38:50] OnPlayerConnect - Debug 47
    [20:38:50] OnPlayerConnect - Debug 48
    [20:38:50] OnPlayerConnect - Debug 49
    [20:38:50] OnPlayerConnect - Debug 41
    [20:38:50] OnPlayerConnect - Debug 42
    [20:38:50] OnPlayerConnect - Debug 43
    [20:38:50] OnPlayerConnect - Debug 44
    [20:38:50] OnPlayerConnect - Debug 45
    [20:38:50] OnPlayerConnect - Debug 46
    [20:38:50] OnPlayerConnect - Debug 47
    [20:38:50] OnPlayerConnect - Debug 48
    [20:38:50] OnPlayerConnect - Debug 05
    [20:38:50] OnPlayerConnect - Debug 06
    [20:38:50] OnPlayerconect (Bosna) dauert 0ms
    [20:39:01] Anmelden f�r Bosna gestartet.
    [20:39:01] Anmeldung f�r Bosna ist komplett fertig (7ms).
    [20:39:02] OnPlayerSpawn - Debug 01
    [20:39:02] OnPlayerSpawn - Debug 02
    [20:39:02] OnPlayerSpawn - Debug 03
    [20:39:02] OnPlayerSpawn - Debug 04
    [20:39:02] OnPlayerSpawn - Debug 05
    [20:39:02] OnPlayerSpawn - Debug 06
    [20:39:02] OnPlayerSpawn - Debug 07
    [20:39:02] OnPlayerSpawn - Debug 08
    [20:39:02] OnPlayerSpawn - Debug 09
    [20:39:02] OnPlayerSpawn - Debug 10
    [20:39:02] OnPlayerSpawn - Debug 11
    [20:39:02] OnPlayerSpawn - Debug 11
    [20:39:02] OnPlayerSpawn - Debug 12
    [20:39:02] OnPlayerSpawn - Debug 13
    [20:39:02] OnPlayerSpawn f�r Bosna: 0ms
    [20:39:02] Waffenladen Bosna dauert 2ms
    [20:39:21] sscanf warning: String buffer overflow.
    [20:40:54] sscanf warning: String buffer overflow.
    [20:41:35] [chat] [xXRapidzzXx]: huh
    [20:42:25] [chat] [xXRapidzzXx]: Wo sind die
    [20:42:33] sscanf warning: String buffer overflow.
    [20:43:13] sscanf warning: String buffer overflow.
    [20:43:24] sscanf warning: String buffer overflow.
    [20:43:35] sscanf warning: String buffer overflow.
    [20:44:26] sscanf warning: String buffer overflow.
    [20:44:26] Incoming connection: 77.179.102.200:57239
    [20:44:27] [join] lalelu22 has joined the server (5:77.179.102.200)
    [20:44:27] SSCANF_OnPlayerConnect
    [20:44:27] OnPlayerConnect - Debug 00
    [20:44:27] OnPlayerConnect - Debug 01
    [20:44:27] OnPlayerConnect - Debug 02
    [20:44:27] OnPlayerConnect - Debug 03
    [20:44:27] OnPlayerConnect - Debug 04
    [20:44:27] OnPlayerConnect - Debug 40
    [20:44:27] OnPlayerConnect - Debug 41
    [20:44:27] OnPlayerConnect - Debug 42
    [20:44:27] OnPlayerConnect - Debug 43
    [20:44:27] OnPlayerConnect - Debug 44
    [20:44:27] OnPlayerConnect - Debug 45
    [20:44:27] OnPlayerConnect - Debug 46
    [20:44:27] OnPlayerConnect - Debug 47
    [20:44:27] OnPlayerConnect - Debug 48
    [20:44:27] OnPlayerConnect - Debug 49
    [20:44:27] OnPlayerConnect - Debug 41
    [20:44:27] OnPlayerConnect - Debug 42
    [20:44:27] OnPlayerConnect - Debug 43
    [20:44:27] OnPlayerConnect - Debug 44
    [20:44:27] OnPlayerConnect - Debug 45
    [20:44:27] OnPlayerConnect - Debug 46
    [20:44:27] OnPlayerConnect - Debug 47
    [20:44:27] OnPlayerConnect - Debug 48
    [20:44:27] OnPlayerConnect - Debug 05
    [20:44:27] OnPlayerConnect - Debug 06
    [20:44:27] OnPlayerconect (lalelu22) dauert 0ms
    [20:44:31] sscanf warning: String buffer overflow.
    [20:44:35] sscanf warning: String buffer overflow.
    [20:44:35] Anmelden f�r lalelu22 gestartet.
    [20:44:35] Anmeldung f�r lalelu22 ist komplett fertig (8ms).

  • Schau mal bei deinem onplayer Debug O.0 so oft wie der das ausführt is ja heftig


    und wofür onplayer debung bei spawn erscheint mir sehr sinnlos

  • sscanf warning: String buffer overflow.



    habe denn Gleichen Fehler auch habe Die String schon hörer gesetzt aber es kackt trotzdem ab



    woran kann es liegen

  • Zitat

    String buffer overflow.


    Dub beutzt das sscanf Plugin und dort ist es PFLICHT
    bei den strings also hinter dem " s " in eckigen klammern die Zeichen anzugeben
    Beispiel:
    s[15]


    Die Zahl muss natürlich immer angepasst werden, auf die Zeichen die auch brauchst

    "Bevor ich mir Informationen aus der "Bild" hole,
    werde ich anfangen, Wahlergebnisse danach vorauszusagen,
    neben welchen Busch unsere Katze gepinkelt hat."

    Margarete Stokowski

  • Problem gefunden


    stock getPlayerAutos(playerid)
    {
    new pAutos[128];
    new minpAuto;
    new maxpAuto;
    format(query,sizeof(query),"SELECT id FROM autos WHERE besitzer='%s' AND laden='1' ORDER by id ASC",SpielerName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows()>0)
    {
    mysql_fetch_field("id",data);
    minpAuto=strval(data);
    }
    else
    {
    minpAuto=0;
    }
    mysql_free_result();
    format(query,sizeof(query),"SELECT id FROM autos WHERE besitzer='%s' AND laden='1' ORDER by id DESC",SpielerName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows()>0)
    {
    mysql_fetch_field("id",data);
    maxpAuto=strval(data);
    }
    else
    {
    maxpAuto=0;
    }
    mysql_free_result();
    for(new i=minpAuto; i<=maxpAuto; i++)
    {
    format(query,sizeof(query),"SELECT id FROM autos WHERE laden='1' AND id='%i' AND besitzer='%s'",i,SpielerName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows()==1)
    {
    if(i!=maxpAuto)
    {
    format(pAutos,sizeof(pAutos),"%s%i,",pAutos,i);
    }
    else
    {
    format(pAutos,sizeof(pAutos),"%s%i",pAutos,i);
    }
    }
    mysql_free_result();
    }
    return pAutos;
    }
    //Problem gefunden by Enrico
    stock loadPlayerAutos(playerid)
    {
    format(query,sizeof(query),"SELECT * FROM autos WHERE besitzer='%s' AND laden='1'",SpielerName(playerid));
    mysql_query(query,1234,playerid,mysql_car);
    return 1;
    }


    Wenn ich in meiner Mysql Datenbank bei denn Cars auf Laden 0 kann man wieder nomal joinen mit denn Account aber wenn er auf 1 steht kackt der Server so gesagt habe!.

    ich finde eindeutig denn fehler nicht.

  • hm kann auf der stelle kein Fehler sehen?

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • case 1234:
    {
    mysql_store_result(mysql_car);
    new playerid=spareid;
    new loadvehs=4;
    if(SpielerInfo[playerid][pRank]>0){loadvehs=6;}
    new x=0;
    while(mysql_fetch_row(data,"|",mysql_car))
    {
    if(x==loadvehs){mysql_free_result(mysql_car);return 1;}
    new id=getFreePlayerAuto();
    sscanf(data, "p<|>is[40]iffffiiiffffs[64]iiis[10]iiiiiiiiiiiiiiiiiiiiiifiiiis[64]s[64]s[64]s[64]s[64]iiiffff",PlayerAuto[id][d_id],PlayerAuto[id][vkey],PlayerAuto[id][vmodel],PlayerAuto[id][v_xc],PlayerAuto[id][v_yc],PlayerAuto[id][v_zc],PlayerAuto[id][v_ac],PlayerAuto[id][vfarbe1],PlayerAuto[id][vfarbe2],PlayerAuto[id][preis],
    PlayerAuto[id][a_x],PlayerAuto[id][a_y],PlayerAuto[id][a_z],PlayerAuto[id][a_a],PlayerAuto[id][car_grund],PlayerAuto[id][benzin],PlayerAuto[id][kaputt],PlayerAuto[id][angemeldet],PlayerAuto[id][kennzeichen],PlayerAuto[id][vmod0],PlayerAuto[id][vmod1],PlayerAuto[id][vmod2],PlayerAuto[id][vmod3],PlayerAuto[id][vmod4],
    PlayerAuto[id][vmod5],PlayerAuto[id][vmod6],PlayerAuto[id][vmod7],PlayerAuto[id][vmod8],PlayerAuto[id][vmod9],PlayerAuto[id][vmod10],PlayerAuto[id][vmod11],PlayerAuto[id][vmod12],PlayerAuto[id][vmod13],PlayerAuto[id][paintjob],PlayerAuto[id][car_mats],PlayerAuto[id][car_hanf],PlayerAuto[id][car_lsd],PlayerAuto[id][car_lunch],PlayerAuto[id][car_c4],PlayerAuto[id][car_koks],
    PlayerAuto[id][neon],PlayerAuto[id][car_distance],PlayerAuto[id][car_pizza0],PlayerAuto[id][car_pizza1],PlayerAuto[id][car_laden],PlayerAuto[id][lastwechsel],PlayerAuto[id][key1],PlayerAuto[id][key2],PlayerAuto[id][key3],PlayerAuto[id][key4],PlayerAuto[id][key5],PlayerAuto[id][car_abtime],PlayerAuto[id][calarm],PlayerAuto[id][finder],PlayerAuto[id][lastx],PlayerAuto[id][lasty],PlayerAuto[id][lastz],PlayerAuto[id][lastr]);
    PlayerAuto[id][id_x] = CreateVehicleEx(PlayerAuto[id][vmodel],PlayerAuto[id][v_xc],PlayerAuto[id][v_yc],PlayerAuto[id][v_zc],PlayerAuto[id][v_ac],PlayerAuto[id][vfarbe1],PlayerAuto[id][vfarbe2],-1);
    RespawnVehicle(499,PlayerAuto[id][id_x]);
    //Kofferraum
    carLSD[PlayerAuto[id][id_x]]=PlayerAuto[id][car_lsd];
    carKoks[PlayerAuto[id][id_x]]=PlayerAuto[id][car_koks];
    carHanf[PlayerAuto[id][id_x]]=PlayerAuto[id][car_hanf];
    carMats[PlayerAuto[id][id_x]]=PlayerAuto[id][car_mats];
    carC4[PlayerAuto[id][id_x]]=PlayerAuto[id][car_c4];
    carLunch[PlayerAuto[id][id_x]]=PlayerAuto[id][car_lunch];
    carPizza[0][PlayerAuto[id][id_x]]=PlayerAuto[id][car_pizza0];
    carPizza[1][PlayerAuto[id][id_x]]=PlayerAuto[id][car_pizza1];
    istkaputt[PlayerAuto[id][id_x]]=PlayerAuto[id][kaputt];
    distanz[PlayerAuto[id][id_x]]=PlayerAuto[id][car_distance];
    FahrzeugTunen(PlayerAuto[id][id_x]);
    lockVehicle(PlayerAuto[id][id_x]);
    format(string,sizeof(string),"%s-%d",PlayerAuto[id][kennzeichen],PlayerAuto[id][id_x]);
    if(PlayerAuto[id][angemeldet]==1)
    {
    SetVehicleNumberPlateEx(PlayerAuto[id][id_x],string);
    }
    else
    {
    SetVehicleNumberPlateEx(PlayerAuto[id][id_x],"{FF0000}-NA-");
    }
    tank[PlayerAuto[id][id_x]]=PlayerAuto[id][benzin];
    printf("Fahrzeug : %d (ID:%d) geladen und gefunden. [BESITZER : %s]",id,PlayerAuto[id][id_x],PlayerAuto[id][vkey]);
    //zähler erhöhen
    x++;
    }
    mysql_free_result(mysql_car);
    return 1;
    }

    Das ist der Case.

    //push

  • Gibt es denn niemand der es lösen kann ???






    PS : wer braucht das Opa_Schlumpf script + Include + plugins + scriptfiles(mysql)= addet mich skype = michael.jakobi7 Höhstgebot liegt bei mir gerade bei 70 €

  • Das ist schon gelöst ... Ihr müsst in sscanf einfach die größe mit angeben


    Bsp:
    sscanf(params("s[35]u", string, pID))


    Fehler ist weiterhin!


    Und ich meinte der Ich den selben fehler in den Block habe:

    stock getPlayerAutos(playerid)
    {
    new pAutos[128];
    new minpAuto;
    new maxpAuto;
    format(query,sizeof(query),"SELECT id FROM autos WHERE besitzer='%s' AND laden='1' ORDER by id ASC",SpielerName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows()>0)
    {
    mysql_fetch_field("id",data);
    minpAuto=strval(data);
    }
    else
    {
    minpAuto=0;
    }
    mysql_free_result();
    format(query,sizeof(query),"SELECT id FROM autos WHERE besitzer='%s' AND laden='1' ORDER by id DESC",SpielerName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows()>0)
    {
    mysql_fetch_field("id",data);
    maxpAuto=strval(data);
    }
    else
    {
    maxpAuto=0;
    }
    mysql_free_result();
    for(new i=minpAuto; i<=maxpAuto; i++)
    {
    format(query,sizeof(query),"SELECT id FROM autos WHERE laden='1' AND id='%i' AND besitzer='%s'",i,SpielerName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows()==1)
    {
    if(i!=maxpAuto)
    {
    format(pAutos,sizeof(pAutos),"%s%i,",pAutos,i);
    }
    else
    {
    format(pAutos,sizeof(pAutos),"%s%i",pAutos,i);
    }
    }
    mysql_free_result();
    }
    return pAutos;
    }
    //Problem gefunden by Enrico
    stock loadPlayerAutos(playerid)
    {
    format(query,sizeof(query),"SELECT * FROM autos WHERE besitzer='%s' AND laden='1'",SpielerName(playerid));
    mysql_query(query,1234,playerid,mysql_car);
    return 1;
    }