Wie erhöhe ich in MySQL / SQL einen wert um bspw. 1?
Ich habe sowas gemacht... aber jetzt trägt er nichts mehr ein...
format(query,128,"UPDATE `USERS` SET `WANTED` += '1' WHERE `Name` = '%s'",query);
Wie erhöhe ich in MySQL / SQL einen wert um bspw. 1?
Ich habe sowas gemacht... aber jetzt trägt er nichts mehr ein...
format(query,128,"UPDATE `USERS` SET `WANTED` += '1' WHERE `Name` = '%s'",query);
ExTaZZe:
Ich benutze Crashdetect und streamer
[10:09:43]
----------------------------------
[10:09:43] Blank Gamemode by your name here
[10:09:43] ----------------------------------
[10:09:43] Number of vehicle models: 0
[10:09:52] [connection] 24.134.73.157:62344 requests connection cookie.
[10:09:53] Incoming connection: 24.134.73.157:62344 id: 0
[10:09:53] [join] Derek_Westbrook has joined the server (0:24.134.73.157)
leider nein...
@SeaD™:
Das kann ich dir so grade nicht sagen...
Einer bei Zap-Hosting...
Was ist denn das "ackslimit"
public OnPlayerConnect(playerid)
{
new
Query[ 150 ],
DBResult: Result,
name[ MAX_PLAYER_NAME ]
;
GetPlayerName(playerid, name, sizeof(name));
Bit1_Set(g_PlayerLogged, playerid, false);
format(Query, sizeof(Query), "SELECT `NAME` FROM `USERS` WHERE `NAME` = '%s' COLLATE NOCASE", DB_Escape(name));
Result = db_query(Database, Query);
if(db_num_rows(Result))
{
format(Query, sizeof(Query), "{FFFFFF}Willkommen "COL_BLUE"%s(%d){FFFFFF} auf unserem Server, Du bist Registriert!\n\nBitte Logge dich nun mit deinem Passwort ein.", name, playerid);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{FFFFFF}Login", Query, "Login", "Verlassen");
}
else
{
format(Query, sizeof(Query), "{FFFFFF}Willkommen "COL_BLUE"%s(%d){FFFFFF} auf unserem Server, Du bist "COL_RED"nicht{FFFFFF} Registriert!\n\nBitte Logge dich nun mit deinem Passwort ein.", name, playerid);
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "{FFFFFF}Registration", Query, "Register", "Verlassen");
}
db_free_result(Result);
}
teamlevelload
Zeile 1076
if(db_num_rows(result)) db_get_field(result, 0, str, sizeof(str));
Ich habe das Script neu aufgebaut.... es ist quasi dasselbe, nur das es beim EInloggen abstürzt
Hallo, mein server stürzt ab sobald ich mich einlogge....
Crashdetect hat auch nichts gefunden...
[07:21:30]
----------------------------------
[07:21:30] Blank Gamemode by your name here
[07:21:30] ----------------------------------
[07:21:30] Number of vehicle models: 0
[07:21:45] [connection] 24.134.73.157:57010 requests connection cookie.
[07:21:46] Incoming connection: 24.134.73.157:57010 id: 0
[07:21:46] [join] Derek_Westbrook has joined the server (0:24.134.73.157)
Danach war der server aus.
[23:27:52] Number of vehicle models: 0
[23:28:21] [connection] 127.0.0.1:60279 requests connection cookie.
[23:28:22] Incoming connection: 127.0.0.1:60279 id: 0
[23:28:23] [join] Derek_Westbrook has joined the server (0:127.0.0.1)
[23:28:31] [debug] Server crashed while executing SQLite.amx
[23:28:31] [debug] AMX backtrace:
[23:28:31] [debug] #0 native db_get_field () from samp-server.exe
[23:28:31] [debug] #1 0000a8d8 in teamlevelload (playerid=0) at C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn:1076
[23:28:31] [debug] #2 00007a10 in public OnPlayerSpawn (playerid=0) at C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn:487
[23:28:31] [debug] #3 00009640 in public JBC_OnDialogResponse (playerid=0, dialogid=0, response=1, listitem=-1, inputtext[]=@0000b090 "c48cc9e64c") at C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn:898
[23:28:31] [debug] #4 native CallLocalFunction () from samp-server.exe
[23:28:31] [debug] #5 000012dc in public OnDialogResponse (playerid=0, dialogid=0, response=1, listitem=-1, inputtext[]=@0000b064 "c48cc9e64c") at C:\Users\Yannik\Desktop\samp037_svr_R1_win32\pawno\include\JunkBuster.inc:111
[23:28:31] [debug] Native backtrace:
[23:28:31] [debug] #0 0044dad1 in ?? () from samp-server.exe
[23:28:31] [debug] #1 69c362ca in ?? () from plugins\crashdetect.DLL
[23:28:31] [debug] #2 69c38b28 in ?? () from plugins\crashdetect.DLL
[23:28:31] [debug] #3 69c309c7 in ?? () from plugins\crashdetect.DLL
[23:28:31] [debug] #4 69c3631a in ?? () from plugins\crashdetect.DLL
[23:28:31] [debug] #5 6a1e51b9 in ?? () from plugins\streamer.DLL
[23:28:31] [debug] #6 0047441e in ?? () from samp-server.exe
[23:28:31] [debug] #7 004010b6 in ?? () from samp-server.exe
[23:28:31] [debug] #8 69c362ca in ?? () from plugins\crashdetect.DLL
[23:28:31] [debug] #9 69c38b28 in ?? () from plugins\crashdetect.DLL
[23:28:31] [debug] #10 69c309c7 in ?? () from plugins\crashdetect.DLL
[23:28:31] [debug] #11 69c3631a in ?? () from plugins\crashdetect.DLL
[23:28:31] [debug] #12 6a1e51b9 in ?? () from plugins\streamer.DLL
[23:28:31] [debug] #13 0046eae1 in ?? () from samp-server.exe
[23:28:31] [debug] #14 004528f0 in ?? () from samp-server.exe
[23:28:31] [debug] #15 77d62cd8 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[23:28:31] [debug] #16 7607c484 in ?? () from C:\Windows\system32\kernel32.dll
[23:28:31] [debug] #17 004a8a4e in ?? () from samp-server.exe
[23:28:31] [debug] #18 68106ac3 in ?? () from samp-server.exe
[23:28:31] [debug] #19 004b6b28 in ?? () from samp-server.exe
Auf Linux, ein Plugin wurde ja geladen. das hatte die endung *.so
Ja dann kriege ich wieder 26 Errors
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(205) : error 017: undefined symbol "LoadDealershipVehicles"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(208) : error 017: undefined symbol "VehicleConnect"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(461) : error 017: undefined symbol "SaveDealershipVehicles"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(465) : error 017: undefined symbol "VehicleDisconnect"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(489) : error 017: undefined symbol "VehicleConnect"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(499) : error 017: undefined symbol "DB_Escape"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(574) : error 017: undefined symbol "VehicleDisconnect"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(583 -- 587) : error 017: undefined symbol "DB_Escape"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(603) : error 017: undefined symbol "teamlevelload"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(638) : error 017: undefined symbol "sscanf"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(644) : error 017: undefined symbol "CreateDealershipVehicle"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(653) : error 017: undefined symbol "SaveDealershipVehicles"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(702) : error 017: undefined symbol "sscanf"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(707) : error 017: undefined symbol "DeleteDealershipVehicle"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(709) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(711) : error 017: undefined symbol "SaveDealershipVehicles"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(705) : warning 204: symbol is assigned a value that is never used: "iModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(721) : error 017: undefined symbol "GetPlayerVehicleAmount"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(723) : error 017: undefined symbol "GetPlayerVehicleSlot"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(724) : error 017: undefined symbol "ParkVehicle"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(744) : error 017: undefined symbol "GetPlayerVehicleAmount"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(754) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(755) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(790) : error 017: undefined symbol "GetPlayerVehicleAmount"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(802) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(803) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(815) : error 017: undefined symbol "GetPlayerVehicleAmount"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Ja so wird die aufgerufen
So sieht die Stock aus
stock LoadDealershipVehicles()
{
new DBResult:result;
new query[128], field[64], string[256];
for (new i = 1; i < MAX_VEHICLES; i += 1)
{
format(query, sizeof(query), "SELECT * FROM `DEALERCARS` WHERE vID = '%d'", i);
result = db_query(DealerVehicleDatabase, query);
if (db_num_rows(result))
{
new model, Float:x, Float:y, Float:z, Float:rot, forsale, price, vehicleid;
db_get_field_assoc(result, "vModel", field, sizeof(field)); model = strval(field);
db_get_field_assoc(result, "vX", field, sizeof(field)); x = strval(field);
db_get_field_assoc(result, "vY", field, sizeof(field)); y = strval(field);
db_get_field_assoc(result, "vZ", field, sizeof(field)); z = strval(field);
db_get_field_assoc(result, "vRot", field, sizeof(field)); rot = strval(field);
db_get_field_assoc(result, "vForSale", field, sizeof(field)); forsale = strval(field);
db_get_field_assoc(result, "vPrice", field, sizeof(field)); price = strval(field);
vehicleid = CreateVehicle(model, x, y, z, rot, 1, 1, 5);
DealershipVehicles[vehicleid][vModel] = model;
DealershipVehicles[vehicleid][vX] = x;
DealershipVehicles[vehicleid][vY] = y;
DealershipVehicles[vehicleid][vZ] = z;
DealershipVehicles[vehicleid][vRot] = rot;
DealershipVehicles[vehicleid][vForSale] = forsale;
DealershipVehicles[vehicleid][vPrice] = price;
DealershipVehicles[vehicleid][vID] = vehicleid;
format(string, sizeof(string), "This {FFFFFF}%s {F5DEB3}is for sale.\nThe cost of this vehicle is {FFFFFF}$%d.\n{F5DEB3}For more information, enter the vehicle.", GetVehicleName(vehicleid), price);
DealershipVehicles[vehicleid][vLabel] = Create3DTextLabel(string, YELLOW2, x, y, z, 10.0, 0);
DealershipVehicles[vehicleid][vSQL_ID] = dealershipCars + 1;
dealershipCars += 1;
}
db_free_result(result);
}
return 1;
}
Ich habe mal die stock LoadDealershipVehicles definiert....
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(205) : error 029: invalid expression, assumed zero
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(205) : error 001: expected token: ")", but found ";"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(205 -- 206) : warning 215: expression has no effect
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(206) : error 001: expected token: ";", but found "for"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(206) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
LoadDealershipVehicles();
foreach(Player, i)
{
VehicleConnect(i);
}
#define LoadDealershipVehicles
@xMichael:
Alle Fehler!
Es liegt kein Klammerfehler vor!
geprüft auf: http://germanrsbot.square7.de/Klammerfehler/?Seite=profile
Hallo, ich habe eigentlich nichts an meinem Script geändert und habe nun 26 Errors
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(203) : error 017: undefined symbol "LoadDealershipVehicles"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(206) : error 017: undefined symbol "VehicleConnect"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(459) : error 017: undefined symbol "SaveDealershipVehicles"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(463) : error 017: undefined symbol "VehicleDisconnect"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(487) : error 017: undefined symbol "VehicleConnect"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(497) : error 017: undefined symbol "DB_Escape"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(572) : error 017: undefined symbol "VehicleDisconnect"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(581 -- 585) : error 017: undefined symbol "DB_Escape"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(601) : error 017: undefined symbol "teamlevelload"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(636) : error 017: undefined symbol "sscanf"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(642) : error 017: undefined symbol "CreateDealershipVehicle"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(651) : error 017: undefined symbol "SaveDealershipVehicles"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(700) : error 017: undefined symbol "sscanf"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(705) : error 017: undefined symbol "DeleteDealershipVehicle"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(707) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(709) : error 017: undefined symbol "SaveDealershipVehicles"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(703) : warning 204: symbol is assigned a value that is never used: "iModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(719) : error 017: undefined symbol "GetPlayerVehicleAmount"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(721) : error 017: undefined symbol "GetPlayerVehicleSlot"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(722) : error 017: undefined symbol "ParkVehicle"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(742) : error 017: undefined symbol "GetPlayerVehicleAmount"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(753) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(754) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(789) : error 017: undefined symbol "GetPlayerVehicleAmount"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(801) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(802) : error 017: undefined symbol "GetVehicleNameByModel"
C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(814) : error 017: undefined symbol "GetPlayerVehicleAmount"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Naja zurzeit haben wir ja ein Ganz einfaches System... Problematisch ist nur das ich nicht weiter machen kann solange der server nicht (vermutlich wegen dem Login System) bei 1-2 Usern Gleichzeitig abstürzt
Falls Ihr mir dabei helfen könnt/wollt dann schreibt mir bitte eine lösung oder ähnliches hier rein.
Naja, ich wüsste nicht wie es den Server überfordern sollte... Es gibt nur ein Admin system, ein Dynamisches Autohaus (Extra SQL datenbank) und halt das SQLite login/register system
Mehr ist da nicht.
http://pastebin.com/01191DM1
Die Verwendung des Scripts ist nicht gestattet.
Bei Zuwiderhandlung leiten wir ggf. Rechtliche schritte ein.
Dies ist KEIN release
Sorry für das Obige aber sicher ist sicher
Hat denn keiner eine Idee oder gar eine Lösung wie man das FIxxen kann...
Ich kann sonst nicht weitermachen.
Seit Tagen ist das schon so
Boah ey... ich hasse dass... ich gebe rund 10 mal das selbe Steam PW ein und beim letzen versuch geht es dann... was hat steam schon wieder für probleme
Hallo, ich biete euch hier einen 30 slot TS3 server an.
auf Ultra Host ist das Hosten von Reallife/Roleplay gamemodes verboten. Steht da aber auch