Ich habe es nun gefixt und die lösung ist einfach nur naja komm mal drauf
ich hatte a_npc drin daran lag es nun geht alles danke für die Hilfe an @Kaliber
kann nun close
Ich habe es nun gefixt und die lösung ist einfach nur naja komm mal drauf
ich hatte a_npc drin daran lag es nun geht alles danke für die Hilfe an @Kaliber
kann nun close
ja doch sicher es kommt sobald ich es wieder mit rein nehme
was den mit stripNewLine villt ist da auch was veraltet ?
hab den fehler nun einkreisen können
es ist das hier was es macht
LoadVehicles()
{
new string[2000];
new File:handle, count;
new filename[2000], line[2000], s, key[64];
for(new i=1; i < MAX_DVEHICLES; i++)
{
format(filename, sizeof(filename), VEHICLE_FILE_PATH "v%d.ini", i);
if(!fexist(filename)) continue;
handle = fopen(filename, io_read);
while(fread(handle, line))
{
stripNewLine(line);
s = strfind(line, "=");
if(!line[0] || s < 1) continue;
strmid(key, line, 0, s++);
if(strcmp(key, "Created") == 0) VehicleCreated[i] = strval(line[s]);
else if(strcmp(key, "Model") == 0) VehicleModel[i] = strval(line[s]);
else if(strcmp(key, "Pos") == 0) sscanf(line[s], "p<,>ffff", VehiclePos[i][0], VehiclePos[i][1],VehiclePos[i][2], VehiclePos[i][3]);
else if(strcmp(key, "Colors") == 0) sscanf(line[s], "p<,>dd", VehicleColor[i][0], VehicleColor[i][1]);
else if(strcmp(key, "Interior") == 0) VehicleInterior[i] = strval(line[s]);
else if(strcmp(key, "VirtualWorld") == 0) VehicleWorld[i] = strval(line[s]);
else if(strcmp(key, "Owner") == 0) strmid(VehicleOwner[i], line, s, sizeof(line));
else if(strcmp(key, "NumberPlate") == 0) strmid(VehicleNumberPlate[i], line, s, sizeof(line));
else if(strcmp(key, "Value") == 0) VehicleValue[i] = strval(line[s]);
else if(strcmp(key, "Lock") == 0) VehicleLock[i] = strval(line[s]);
else if(strcmp(key, "Alarm") == 0) VehicleAlarm[i] = strval(line[s]);
else if(strcmp(key, "Paintjob") == 0) VehiclePaintjob[i] = strval(line[s]);
else
{
for(new t=0; t < sizeof(VehicleTrunk[]); t++)
{
format(string, sizeof(string), "Trunk%d", t+1);
if(strcmp(key, string) == 0) sscanf(line[s], "p<,>dd", VehicleTrunk[i][t][0], VehicleTrunk[i][t][1]);
}
for(new m=0; m < sizeof(VehicleMods[]); m++)
{
format(string, sizeof(string), "Mod%d", m);
if(strcmp(key, string) == 0) VehicleMods[i][m] = strval(line[s]);
}
}
}
fclose(handle);
if(VehicleCreated[i]) count++;
}
printf("Loaded %d vehicles", count);
}
Nein daran liegt es nicht
es liegt an den sachen die beim starten geladen werden habe es grade gestetet hab alles ausgeklammert was geladen wird dann wahr es weg..
zb hier
else if(strcmp(key, "Pos") == 0) sscanf(line[s], "p,ffff", VehiclePos[i][0], VehiclePos[i][1],VehiclePos[i][2], VehiclePos[i][3]);
else if(strcmp(key, "Colors") == 0) sscanf(line[s], "p,dd", VehicleColor[i][0], VehicleColor[i][1]);
wird wohl auch veraltet sein weil das ist zb was geladedn wird beim gamemode start
filterscripts habe ich keine mit sscanf nur das Script
Nein kommt keiner
SA-MP Dedicated Server
----------------------
v0.3.DL-R1, (C)2005-2018 SA-MP Team
[16:37:37]
[16:37:37] Server Plugins
[16:37:37] --------------
[16:37:37] Loading plugin: mysql
[16:37:37] >> plugin.mysql: R39-6 successfully loaded.
[16:37:37] Loaded.
[16:37:37] Loading plugin: sscanf
[16:37:37]
[16:37:37] ===============================
[16:37:37] sscanf plugin loaded.
[16:37:37] Version: 2.8.3
[16:37:37] (c) 2018 Alex "Y_Less" Cole
[16:37:37] ===============================
[16:37:37] Loaded.
[16:37:37] Loading plugin: crashdetect
[16:37:37] CrashDetect plugin 4.19.4
[16:37:37] Loaded.
[16:37:37] Loading plugin: streamer
[16:37:37]
*** Streamer Plugin v2.9.3 by Incognito loaded ***
[16:37:37] Loaded.
[16:37:37] Loading plugin: teamspeak-connector
[16:37:37] >> plugin.TSConnector: v1.3 loaded.
[16:37:37] Loaded.
[16:37:37] Loaded 5 plugins.
jedes s hat ein [144] dahinter und denoch kommt dieses scheiße
ok gut
Ich habe jetzt alles s mit s[144] versehen
so sieht es jetzt aus
[16:30:38] Mysql Erfolgreich verbunden
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] Gangwahr geladen!
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] Loaded 11 vehicles
[16:30:38] Spieler Fahrzeuge geladen!
[16:30:38] sscanf error: System not initialised.
[16:30:38] sscanf error: System not initialised.
[16:30:38] 2 kaufstellen geladen vom Autohaus
[16:30:38] Autoheuser geladen!
[16:30:38] Heuser geladen!
[16:30:38] '0' Plantage(n) wurde(n) geladen & erstellt.
[16:30:38] Drogenfelder geladen!!
[16:30:38] Datensätze wird erstellt.
[16:30:38] DB Tabellen erstellt/Geprüft!
[16:30:38] Heuser geladen!
[16:30:38] Hotel Zimmer geladen!
[16:30:42] Filterscript 'LOL.amx' loaded.
[16:30:42] ||||||||||||||||||||||||||[Es wurden 19719 Objecte geladen!]||||||||||||||||||||||||||
[16:30:42] =======================================
[16:30:42] Server geladen!.
[16:30:42] Server Version 1.2.4
[16:30:42] =======================================
[16:30:42] Number of vehicle models: 67
[16:30:42] [connection] incoming connection: 127.0.0.1:57080 id: 0
[16:30:42] [connection] incoming connection: 127.0.0.1:57079 id: 1
[16:30:42] [connection] incoming connection: 127.0.0.1:57082 id: 2
[16:30:42] [npc:join] cop3 has joined the server (0:127.0.0.1)
[16:30:42] [npc:join] cop2 has joined the server (1:127.0.0.1)
[16:30:42] [connection] incoming connection: 127.0.0.1:57081 id: 3
[16:30:42] [connection] incoming connection: 127.0.0.1:57083 id: 4
[16:30:42] [npc:join] 247 has joined the server (2:127.0.0.1)
[16:30:42] [npc:join] ZugPeter has joined the server (3:127.0.0.1)
[16:30:42] [connection] incoming connection: 127.0.0.1:57084 id: 5
[16:30:42] [connection] incoming connection: 127.0.0.1:57085 id: 6
[16:30:42] [npc:join] finfo has joined the server (4:127.0.0.1)
[16:30:42] [connection] incoming connection: 127.0.0.1:57086 id: 7
[16:30:42] [connection] incoming connection: 127.0.0.1:57087 id: 8
[16:30:42] [npc:join] skinladen has joined the server (5:127.0.0.1)
[16:30:42] [connection] incoming connection: 127.0.0.1:57088 id: 9
[16:30:42] [npc:join] wachesh has joined the server (6:127.0.0.1)
[16:30:42] [npc:join] coplaber has joined the server (7:127.0.0.1)
[16:30:42] [connection] incoming connection: 127.0.0.1:57089 id: 10
[16:30:42] [connection] incoming connection: 127.0.0.1:57090 id: 11
[16:30:42] [npc:join] wacheshrund has joined the server (8:127.0.0.1)
[16:30:42] [connection] incoming connection: 127.0.0.1:57092 id: 12
[16:30:42] [connection] incoming connection: 127.0.0.1:57091 id: 13
[16:30:42] [npc:join] copsmoke has joined the server (9:127.0.0.1)
[16:30:42] [connection] incoming connection: 127.0.0.1:57093 id: 14
[16:30:42] [connection] incoming connection: 127.0.0.1:57094 id: 15
[16:30:42] [connection] incoming connection: 127.0.0.1:57095 id: 16
[16:30:42] [connection] incoming connection: 127.0.0.1:57097 id: 17
[16:30:42] [connection] incoming connection: 127.0.0.1:57096 id: 18
[16:30:42] [npc:join] grovesit has joined the server (10:127.0.0.1)
[16:30:42] [connection] incoming connection: 127.0.0.1:57102 id: 19
[16:30:42] [connection] incoming connection: 127.0.0.1:57105 id: 20
[16:30:42] [connection] incoming connection: 127.0.0.1:57098 id: 21
[16:30:42] [connection] incoming connection: 127.0.0.1:57099 id: 22
[16:30:42] [connection] incoming connection: 127.0.0.1:57103 id: 23
[16:30:42] [connection] incoming connection: 127.0.0.1:57100 id: 24
[16:30:42] [connection] incoming connection: 127.0.0.1:57106 id: 25
[16:30:42] [connection] incoming connection: 127.0.0.1:57104 id: 26
[16:30:42] [connection] incoming connection: 127.0.0.1:57101 id: 27
[16:30:42] [npc:join] ramona has joined the server (11:127.0.0.1)
[16:30:42] [npc:join] gslauf2 has joined the server (12:127.0.0.1)
[16:30:42] [npc:join] raider has joined the server (13:127.0.0.1)
[16:30:42] [npc:join] bigsmoke has joined the server (14:127.0.0.1)
[16:30:42] [connection] incoming connection: 127.0.0.1:57107 id: 28
[16:30:42] [npc:join] air1 has joined the server (15:127.0.0.1)
[16:30:42] [npc:join] biergirl has joined the server (16:127.0.0.1)
[16:30:42] [npc:join] gsgirl has joined the server (17:127.0.0.1)
[16:30:42] [npc:join] gslauf has joined the server (18:127.0.0.1)
[16:30:42] [npc:join] hydra has joined the server (19:127.0.0.1)
[16:30:42] [npc:join] samen has joined the server (20:127.0.0.1)
[16:30:42] [npc:join] fbischrankentyp has joined the server (21:127.0.0.1)
[16:30:42] [npc:join] hotel has joined the server (22:127.0.0.1)
[16:30:42] [npc:join] bankdamels has joined the server (23:127.0.0.1)
[16:30:42] [npc:join] burgermeister has joined the server (24:127.0.0.1)
[16:30:42] [npc:join] fbitortyp has joined the server (25:127.0.0.1)
[16:30:42] [npc:join] andy has joined the server (26:127.0.0.1)
[16:30:42] [npc:join] dance has joined the server (27:127.0.0.1)
[16:30:42] [npc:join] rathaus has joined the server (28:127.0.0.1)
[16:30:42] [LoadFracRank]: Es wurden alle Fraktions Ränge geladen!
[16:30:42] Keine angabe
[16:30:42] [LoadFrac_Skins]: Es wurden alle Fraktions Skins geladen!
[16:30:42] |-> Es wurden 1 actors geladen.
ich habe die neuste ja
also alles was jetzt mit sscanf namen ausgibt muss immer eine länge dahinter ?
und muss ich noch was bei der neue versionen beachten zb dieses hier
if(sscanf(params,"u",pID))return SendClientMessage(playerid,-1,"/invite playerid");
hier zb habe ich es auch
sscanf(Content,"ddddd",FightSystem[fs][fsOwnerFaction],FightSystem[fs][fsAttackFaction],FightSystem[fs][fsKillsOfOwner],FightSystem[fs][fsKillsOfAttack],FightSystem[fs][fsFightTime]);
aber da ist nix mit namen oder so -.-
Guten Mittag,
Ich habe mei mir mal die neuste version von sscanf rein getan
ich hate voher immer den stock von sscanf gehabt also den alten
nun habe ich bei dieser sache hier zb
stock LadeZimmer()
{
new File:zFile = fopen("Zimmer.cfg",io_read),Content[1024],z = 1;
while(fread(zFile,Content) && z<sizeof(ZimmerInfo))
{
stripNewLine(Content);
sscanf(Content,"isfffd",ZimmerInfo[z][zID],ZimmerInfo[z][zBesitzer],ZimmerInfo[z][zPos][0],ZimmerInfo[z][zPos][1],ZimmerInfo[z][zPos][2],ZimmerInfo[z][zPreis]);
die meldung sscanf error: System not initialised.
was muss ich alles ändern ?
Alles kalr, jetzt geht es aber es ist dennoch sicher diesen Filter auszuhaben?
Ja da diese standart auch aus sind
Nein es geht nur an eine player id und wird auch für diese wieder gelöscht
aber geal jetze es geht ja
ich hab es doch gelöst es ist jetzt nur eine playerid und es geht
PlayerTextDrawShow(pID,bcpdcard[1]);
Das ist nicht richtig, das funktioniert dann nur für einen Spieler.So wie @LeonMrBonnie sagte, ist es richtig. Playerid und Index sind jedes Mal vertauscht. Zuerst die playerid, dann den Index.
egal für einen reicht es ja auch da es ja nur einen angezeigt wird den man es zeigt danke denoch euch beiden
Da ich leider die PSD nicht hatte habe ich es ebend selber gemacht (hoffe ist ok)
so sieht es nun aus
wenn du mir sagst wie -d3 geht
aber ich habe mal max_players raus genommen teste grade neu
//edit
gelöst new:PlayerText:bcpdcard[MAX_PLAYERS][4];
ich habe einfach max_players gelöscht und überall die 2te playerid raus so das es nur
PlayerTextDrawSetString(pID,bcpdcard[2], str);
habe ich jetzt geht der ganze befehl nicht mehr
debug] Run time error 4: "Array index out of bounds"
[debug] Attempted to read/write array element at index 29 in array of size 4
[debug] AMX backtrace:
[debug] #0 0048f480 in public ocmd_kacke(29, 8477560) in script.amx
[debug] #1 native CallLocalFunction () in samp-server.exe
[debug] #2 00006444 in public OnPlayerCommandText (29, 8477492) in
Aus irgendeinen Bug gurnd wie immer bei pawn will er es nicht setzten
new pID,str[144];
if(sscanf(params,"u",pID))return SendClientMessage(playerid,COLOR_GREY, "Benutze /bcpd playerid");
PlayerTextDrawShow(pID,bcpdcard[pID][0]);
PlayerTextDrawShow(pID,bcpdcard[pID][1]);
PlayerTextDrawShow(pID,bcpdcard[pID][2]);
PlayerTextDrawShow(pID,bcpdcard[pID][3]);
format(str, sizeof(str), "%s", GetName(playerid));
PlayerTextDrawSetString(pID,bcpdcard[1][pID], str);
format(str, sizeof(str), "%s", GetName(playerid));
PlayerTextDrawSetString(pID,bcpdcard[2][pID], str);
format(str, sizeof(str), "%d.%d.%d", SpielerInfo[playerid][pDay],SpielerInfo[playerid][pMonth],SpielerInfo[playerid][pJahr]);
PlayerTextDrawSetString(pID,bcpdcard[3][pID], str);
doch alles bleibt gleich... -.-
Mach mal deine Firewall kommplet aus und teste es nochmal
Neuinstallieren und in %appdata% alles löschen was mit dem Spiel zutun hat
Wenn das nix bringt in der Firewall das Spiel hinzufügen
Bei 0.3DL könnte man dieses, mit Texdraw als Bild rein holen.
Sieht klasse aus, würde es umsetzten wenn es eine möglichkeit gebe die psd zu bekommen.
hier zb