Suche dieses Object:
Beiträge von Fabi.StaR
-
-
Oh Danke hatte ich über sehen
-
wenn ich z.b. bei der fraktion LSPD in das erste fahrzeug einsteige und will /engine machen (Ich bin nicht bei LSPD) wir die error msg ausgelessen aber wenn ic hdas dann bei denn anderen fahrzeugen versuche startet einfac hder motor
-
Guten abend,
ich habe jetzt ca. 3 std an dem system gesessen und bekomme es einfach nicht hin also hir der stock load:
stock LoadFraktionCars()
{
new idx=0;
mysql_query( "SELECT * FROM `fraktionscars`");
mysql_store_result();
while(mysql_retrieve_row())//lauf durch alle zeilen durch
{
new tmp[128];
mysql_fetch_field_row(tmp, "VehID");
FraktionCar[idx][VehID] = strval(tmp);
if(FraktionCar[idx][VehID] < 400) {
break;//continue;
}
mysql_fetch_field_row(tmp, "X");
FraktionCar[idx][Pos][0] = floatstr(tmp);
mysql_fetch_field_row(tmp, "Y");
FraktionCar[idx][Pos][1] = floatstr(tmp);
mysql_fetch_field_row(tmp, "Z");
FraktionCar[idx][Pos][2] = floatstr(tmp);
mysql_fetch_field_row(tmp, "A");
FraktionCar[idx][Pos][3] = floatstr(tmp);
mysql_fetch_field_row(tmp, "Color1");
FraktionCar[idx][Color][0] = strval(tmp);
mysql_fetch_field_row(tmp, "Color2");
FraktionCar[idx][Color][1] = strval(tmp);
mysql_fetch_field_row(tmp, "FraktionsID");
FraktionCar[idx][FraktionsID] = strval(tmp);
mysql_fetch_field_row(tmp, "ZiviCar");
FraktionCar[idx][ZiviCar] = strval(tmp);
FraktionCar[idx][fCarid] = CreateVehicle(FraktionCar[idx][VehID],FraktionCar[idx][Pos][0],FraktionCar[idx][Pos][1],FraktionCar[idx][Pos][2],FraktionCar[idx][Pos][3],FraktionCar[idx][Color][0],FraktionCar[idx][Color][1],-1);
idx++;
}
mysql_free_result();
return printf("* Es wurden %i Fraktions-Fahrzeuge geladen. *", idx);
}der geht so und jetzt der /engine befehl:
ocmd:engine(playerid,params[]){
if(IsPlayerInAnyVehicle(playerid))
{
new vehid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
for(new idx = 0; idx <sizeof(FraktionCar); idx++) {
if(vehid == FraktionCar[idx][fCarid]) {
if(FraktionCar[idx][FraktionsID] == PlayerInfo[playerid][pTeam]) {
if(Engine[vehid] == 0) {
SetVehicleParamsEx(vehid, 1, lights, alarm, doors, bonnet, boot, objective);
Engine[vehid] = 1;
SendClientMessage(playerid,Grey,"*** Motor gestartet...");
return 1;
} else if(Engine[vehid] == 1) {
SetVehicleParamsEx(vehid, 0, lights, alarm, doors, bonnet, boot, objective);
Engine[vehid] = 0;
SendClientMessage(playerid,Grey,"*** Motor ausgeschaltet...");
return 1;
}
} else {
SendClientMessage(playerid,Grey,"*** Du besitzt keinen Schlüssel für dieses Fahrzeug.!");
return 1;
}
} else {
if(Engine[vehid] == 0) {
SetVehicleParamsEx(vehid, 1, lights, alarm, doors, bonnet, boot, objective);
Engine[vehid] = 1;
SendClientMessage(playerid,Grey,"*** Motor gestartet...");
return 1;
} else if(Engine[vehid] == 1) {
SetVehicleParamsEx(vehid, 0, lights, alarm, doors, bonnet, boot, objective);
Engine[vehid] = 0;
SendClientMessage(playerid,Grey,"*** Motor ausgeschaltet...");
return 1;
}
}
}
}
return 1;
}wenn ich in ein Fraktions Fahrzeug einsteige kann ich denn motor starten aber in dem befehl hab ich es anderes
ich hoffe mir kann jemand helfen
mfg. Fabi.StaR
-
hir der debug:
SQL
Alles anzeigen[19:35:51] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:51] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:51] >> mysql_query( Connection handle: 1 ) [19:35:51] CMySQLHandler::Query(SELECT * FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:51] >> mysql_store_result( Connection handle: 1 ) [19:35:51] CMySQLHandler::StoreResult() - Result was stored. [19:35:51] >> mysql_num_rows( Connection handle: 1 ) [19:35:51] CMySQLHandler::NumRows() - Returned 1 row(s) [19:35:51] >> mysql_free_result( Connection handle: 1 ) [19:35:51] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:51] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:51] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:51] >> mysql_query( Connection handle: 1 ) [19:35:51] CMySQLHandler::Query(SELECT * FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:51] >> mysql_store_result( Connection handle: 1 ) [19:35:51] CMySQLHandler::StoreResult() - Result was stored. [19:35:51] >> mysql_num_rows( Connection handle: 1 ) [19:35:51] CMySQLHandler::NumRows() - Returned 1 row(s) [19:35:51] >> mysql_free_result( Connection handle: 1 ) [19:35:51] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:56] >> mysql_query( Connection handle: 1 ) [19:35:56] CMySQLHandler::Query(SELECT `passwort` FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - An error has occured. (Error ID: 1054, Unknown column 'passwort' in 'field list') [19:35:56] >> mysql_store_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::StoreResult() - No data to store. [19:35:56] >> mysql_fetch_row_format( Connection handle: 1 ) [19:35:56] CMySQLHandler::FetchRow() - You cannot call this function now. (Reason: Empty Result) [19:35:56] >> mysql_free_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::FreeResult() - The result is already empty. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Accounts); - Escaped 8 characters to Accounts. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Money); - Escaped 5 characters to Money. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:56] >> mysql_query( Connection handle: 1 ) [19:35:56] CMySQLHandler::Query(SELECT `Money` FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:56] >> mysql_store_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::StoreResult() - Result was stored. [19:35:56] >> mysql_fetch_int( Connection handle: 1 ) [19:35:56] CMySQLHandler::FetchRow() - Return: NULL [19:35:56] >> mysql_free_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Accounts); - Escaped 8 characters to Accounts. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Score); - Escaped 5 characters to Score. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:56] >> mysql_query( Connection handle: 1 ) [19:35:56] CMySQLHandler::Query(SELECT `Score` FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:56] >> mysql_store_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::StoreResult() - Result was stored. [19:35:56] >> mysql_fetch_int( Connection handle: 1 ) [19:35:56] CMySQLHandler::FetchRow() - Return: NULL [19:35:56] >> mysql_free_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Accounts); - Escaped 8 characters to Accounts. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Kills); - Escaped 5 characters to Kills. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:56] >> mysql_query( Connection handle: 1 ) [19:35:56] CMySQLHandler::Query(SELECT `Kills` FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:56] >> mysql_store_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::StoreResult() - Result was stored. [19:35:56] >> mysql_fetch_int( Connection handle: 1 ) [19:35:56] CMySQLHandler::FetchRow() - Return: NULL [19:35:56] >> mysql_free_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Accounts); - Escaped 8 characters to Accounts. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Tode); - Escaped 4 characters to Tode. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:56] >> mysql_query( Connection handle: 1 ) [19:35:56] CMySQLHandler::Query(SELECT `Tode` FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:56] >> mysql_store_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::StoreResult() - Result was stored. [19:35:56] >> mysql_fetch_int( Connection handle: 1 ) [19:35:56] CMySQLHandler::FetchRow() - Return: NULL [19:35:56] >> mysql_free_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Accounts); - Escaped 8 characters to Accounts. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(AdminLevel); - Escaped 10 characters to AdminLevel. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:56] >> mysql_query( Connection handle: 1 ) [19:35:56] CMySQLHandler::Query(SELECT `AdminLevel` FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:56] >> mysql_store_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::StoreResult() - Result was stored. [19:35:56] >> mysql_fetch_int( Connection handle: 1 ) [19:35:56] CMySQLHandler::FetchRow() - Return: NULL [19:35:56] >> mysql_free_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Accounts); - Escaped 8 characters to Accounts. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(FTeam); - Escaped 5 characters to FTeam. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:56] >> mysql_query( Connection handle: 1 ) [19:35:56] CMySQLHandler::Query(SELECT `FTeam` FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:56] >> mysql_store_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::StoreResult() - Result was stored. [19:35:56] >> mysql_fetch_int( Connection handle: 1 ) [19:35:56] CMySQLHandler::FetchRow() - Return: NULL [19:35:56] >> mysql_free_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Accounts); - Escaped 8 characters to Accounts. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(FLeader); - Escaped 7 characters to FLeader. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:56] >> mysql_query( Connection handle: 1 ) [19:35:56] CMySQLHandler::Query(SELECT `FLeader` FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:56] >> mysql_store_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::StoreResult() - Result was stored. [19:35:56] >> mysql_fetch_int( Connection handle: 1 ) [19:35:56] CMySQLHandler::FetchRow() - Return: NULL [19:35:56] >> mysql_free_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Accounts); - Escaped 8 characters to Accounts. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(FRank); - Escaped 5 characters to FRank. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [19:35:56] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:56] CMySQLHandler::EscapeString([CoR]Fabi.StaR); - Escaped 14 characters to [CoR]Fabi.StaR. [19:35:56] >> mysql_query( Connection handle: 1 ) [19:35:56] CMySQLHandler::Query(SELECT `FRank` FROM `Accounts` WHERE `Name` = '[CoR]Fabi.StaR') - Successfully executed. [19:35:56] >> mysql_store_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::StoreResult() - Result was stored. [19:35:56] >> mysql_fetch_int( Connection handle: 1 ) [19:35:56] CMySQLHandler::FetchRow() - Return: NULL [19:35:56] >> mysql_free_result( Connection handle: 1 ) [19:35:56] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:35:59] >> mysql_real_escape_string( Connection handle: 1 ) [19:35:59] CMySQLHandler::EscapeString([CoR]Flo.StaR); - Escaped 13 characters to [CoR]Flo.StaR. [19:35:59] >> mysql_query( Connection handle: 1 ) [19:35:59] CMySQLHandler::Query(SELECT * FROM `Accounts` WHERE `Name` = '[CoR]Flo.StaR') - Successfully executed. [19:35:59] >> mysql_store_result( Connection handle: 1 ) [19:35:59] CMySQLHandler::StoreResult() - Result was stored. [19:35:59] >> mysql_num_rows( Connection handle: 1 ) [19:35:59] CMySQLHandler::NumRows() - Returned 0 row(s) [19:35:59] >> mysql_free_result( Connection handle: 1 ) [19:35:59] CMySQLHandler::FreeResult() - Result was successfully free'd. [19:36:03] >> mysql_real_escape_string( Connection handle: 1 ) [19:36:03] CMySQLHandler::EscapeString([CoR]Flo.StaR); - Escaped 13 characters to [CoR]Flo.StaR. [19:36:03] >> mysql_real_escape_string( Connection handle: 1 ) [19:36:03] CMySQLHandler::EscapeString(e2a70be0da01d80cb652b90d3a40004f); - Escaped 32 characters to e2a70be0da01d80cb652b90d3a40004f. [19:36:03] >> mysql_query( Connection handle: 1 ) [19:36:03] CMySQLHandler::Query(INSERT INTO `Accounts` (`Name`, `Password`) VALUES ('[CoR]Flo.StaR', 'e2a70be0da01d80cb652b90d3a40004f')) - An error has occured. (Error ID: 1062, Duplicate entry '0' for key 'PRIMARY')
-
Guten Abend,
Ich habe grade ein mysql Login/Register system geschrieben un mein Problem ist jetzt ich kann mich registrieren aber andere user werden nich in der mysql daten bank gespeichert
Bitte um hilfe schreibt mir einfach was ihr sehen wollt und ich zeige es euch
-
wenn ich /openeditor kommt nix
-
sorry aber er geht nicht
-
Guten Tag,
Ich such einen ingame editor womit man sirenen auf einem auto platzieren kann
gibt es so was wenn ja link :;)
-
Guten Mittag,
ich bin dabei ein Fraktions fahrzeug system zu schreiben und habe probleme beim laden also der Punkt ist es werden keine fahrzeuge erstellt
hir mein lade stock :
public LoadFraktionCars() {
new fc;
while(fc<sizeof(FraktionCar)) {
FraktionCar[fc][VehID] = mysql_GetFraktionInt("FraktionsCars","VehID","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Pos][0] = mysql_GetFraktionFloat("FraktionsCars","X","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Pos][1] = mysql_GetFraktionFloat("FraktionsCars","Y","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Pos][2] = mysql_GetFraktionFloat("FraktionsCars","Z","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Pos][3] = mysql_GetFraktionFloat("FraktionsCars","A","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Color][0] = mysql_GetFraktionInt("FraktionsCars","Color1","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][Color][1] = mysql_GetFraktionInt("FraktionsCars","Color2","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][ZiviCar] = mysql_GetFraktionInt("FraktionsCars","ZiviCar","FraktionsID",FraktionCar[fc][FraktionsID]);
FraktionCar[fc][fCarid] = CreateVehicle(FraktionCar[fc][VehID],FraktionCar[fc][Pos][0],FraktionCar[fc][Pos][1],FraktionCar[fc][Pos][2],FraktionCar[fc][Pos][3],FraktionCar[fc][Color][0],FraktionCar[fc][Color][1],-1);
fc++;
}
return printf(" '%d' Fraktionsfahrzeuge wurden geladen & erstellt.",fc);
}Debug:
Code[12:59:33] [12:59:33] ---------------------------[12:59:33] MySQL Debugging activated (06/25/13)[12:59:33] ---------------------------[12:59:33] [12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(VehID); - Escaped 5 characters to VehID.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT `VehID` FROM `fraktionscars` WHERE `FraktionsID` = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_int( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(X); - Escaped 1 characters to X.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT X FROM fraktionscars WHERE FraktionsID = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_float( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(Y); - Escaped 1 characters to Y.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT Y FROM fraktionscars WHERE FraktionsID = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_float( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(Z); - Escaped 1 characters to Z.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT Z FROM fraktionscars WHERE FraktionsID = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_float( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(A); - Escaped 1 characters to A.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT A FROM fraktionscars WHERE FraktionsID = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_float( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(Color1); - Escaped 6 characters to Color1.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT `Color1` FROM `fraktionscars` WHERE `FraktionsID` = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_int( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(Color2); - Escaped 6 characters to Color2.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT `Color2` FROM `fraktionscars` WHERE `FraktionsID` = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_int( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(fraktionscars); - Escaped 13 characters to fraktionscars.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(ZiviCar); - Escaped 7 characters to ZiviCar.[12:59:33] >> mysql_real_escape_string( Connection handle: 1 )[12:59:33] CMySQLHandler::EscapeString(FraktionsID); - Escaped 11 characters to FraktionsID.[12:59:33] >> mysql_query( Connection handle: 1 )[12:59:33] CMySQLHandler::Query(SELECT `ZiviCar` FROM `fraktionscars` WHERE `FraktionsID` = '0') - Successfully executed.[12:59:33] >> mysql_store_result( Connection handle: 1 )[12:59:33] CMySQLHandler::StoreResult() - Result was stored.[12:59:33] >> mysql_fetch_int( Connection handle: 1 )[12:59:33] >> mysql_free_result( Connection handle: 1 )[12:59:33] CMySQLHandler::FreeResult() - Result was successfully free'd.
ich haffe mir kann jemand helfen
-
such du doch also ich find dort nix
-
Guten Morgen,
Ich such folgende include:
PlayerPos
SSCANF2
ich hoffe jemand hat diese include
-
ich suche so ne arte von haus aber kleiner weil da soll von meinem Autohaus nur das Büro rein könnte mir jemand helfen?
-
Guten Abend,
ich suche folgendes include:
ForAllPlayers
wäre echt coll wenn mir jemand den download link geben könnte
-
wo stellst du ihn ein Oo also wie groß er ist Oo
-
Mach es so wie ich es hier mache gebe dir ein besseres System.
Als erstes definierst du die Anzahl der Blitzer so wie hier bei deinen defines.
#define MAX_BLITZER 40 // Maximale Anzahl von Blitzern#define BLITZER_TIMER_INTERVALL 500 // Intervall für das Blitzen (in Milliesekunden)#define BLITZER_PAUSE 1 // Anzahl der Minuten, in denen der Spieler nicht mehr geblitzt werden kannDann machst du ein enum und erstellst was neues wie hier bei den new
enum eBlitzer { ID,Float:BlitzerX, Float:BlitzerY, Float:BlitzerZ, Radius, Geschwindigkeit, Erstellt, Strafe};
new Blitzer[MAX_BLITZER][eBlitzer];new GesammtBlitzer;new BlitzerErstellt[MAX_PLAYERS];Dann unter OnPlayerCommandText & unter den anderen Befehlen den Befehl hinzufügen.
if(strcmp(cmd, "/blitzer", true) == 0) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1|| PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GOLD, "___________________________|Blitzer|___________________________"); SendClientMessage(playerid, COLOR_WHITE, "Benutzung: /blitzer [Funktion]"); SendClientMessage(playerid, COLOR_WHITE, "Verfügbare Funktionen: neu, weg, alleweg [Rang 4], anzeigen"); SendClientMessage(playerid, COLOR_GOLD, "_____________________________________________________________"); return 1; } if(strcmp(tmp,"neu",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "Benutzung: /blitzer neu [Geschwindigkeit] [Strafe]"); return 1; } new b_speed; b_speed = strval(tmp); if(b_speed < 20 || b_speed > 180) { SendClientMessage(playerid, COLOR_GREY, "Hinweis: Die Geschwindigkeit muss zwischen 45 und 200 km/h liegen."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "Benutzung: /blitzer neu [Geschwindigkeit] [Strafe]"); return 1; } new b_strafe; b_strafe = strval(tmp); if(b_strafe < 10 || b_strafe > 100) { SendClientMessage(playerid, COLOR_GREY, "Hinweis: Die Strafe muss zwischen 10$ / KMH und 100$ / KMH liegen."); return 1; } AddBlitzer(playerid,b_speed,b_strafe); new player[MAX_PLAYER_NAME]; GetPlayerName(playerid, player, sizeof(player)); format(string, sizeof(string), "%s hat einen Blitzer aufgestellt.", player); ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string, sizeof(string), "Blitzer aufgestellt, Max. Geschwindigkeit: %d, Strafe: %d.", b_speed, b_strafe); SendClientMessage(playerid, COLOR_GREEN, string); BlitzerErstellt[playerid] = 1; { return 1; } } else if(strcmp(tmp,"weg",true) == 0) { RemoveBlitzer(playerid); new player[MAX_PLAYER_NAME]; GetPlayerName(playerid, player, sizeof(player)); format(string, sizeof(string), "%s hat seinen Blitzer abgebaut.", player); ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); BlitzerErstellt[playerid] = 0; return 1; } else if(strcmp(tmp,"alleweg",true) == 0) { if(PlayerInfo[playerid][pRank] <= 4) { SendClientMessage(playerid, COLOR_GREY, "Mindestens Rang 4 benötigt!"); return 1; } RemoveAllBlitzer(); SendClientMessage(playerid, COLOR_GREEN, "Alle Blitzer abgebaut."); for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerInfo[i][pMember] == 24 || PlayerInfo[i][pLeader] == 24) { RemoveBlitzer(i); UnFreezePlayer(i); new player[MAX_PLAYER_NAME]; GetPlayerName(playerid, player, sizeof(player)); format(string, sizeof(string), "*Alle Blitzer wurden von %s abgebaut.", player); SendClientMessage(i, COLOR_LIGHTBLUE, string); } } return 1; } else if(strcmp(tmp, "anzeigen", true) == 0) { if(GesammtBlitzer != 0) { SendClientMessage(playerid, COLOR_GOLD, "______________| Aktive Blitzer |_______________"); format(string, sizeof(string), "%d / 40 Blitzer derzeit aktiv.", GesammtBlitzer); SendClientMessage(playerid, COLOR_WHITE, string); SendClientMessage(playerid, COLOR_GOLD, "_____________________________________________"); } else { SendClientMessage(playerid, COLOR_GRAD1, "Keine Blitzer aktiv."); } } else { SendClientMessage(playerid, COLOR_RED, "___________________________|Fehler|__________________________"); SendClientMessage(playerid, COLOR_RED, "Benutzung: /blitzer [Funktion]"); SendClientMessage(playerid, COLOR_RED, "Verfügbare Funktionen: neu, weg, alleweg [Rang 4], anzeigen"); SendClientMessage(playerid, COLOR_RED, "_____________________________________________________________"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Poliezei-beamter!"); } return 1; }
Hoffe konnte dir helfen
wo setzt du denn den Radius?
-
Guten Abend,
Ich habe ein Problem bei meinem Blitzer System unzwar:
wie kann ich den Standort der blitzers eingeben un ihn dann ausgeben??
hir der befehl:
if(strcmp(strget(cmdtext,0),"/createblitzer", true, 10) == 0)
{
if(PlayerInfo[playerid][leader] == 1|| PlayerInfo[playerid][Team] == 1)
{
new speed,radius,name, msg[128];
speed = strval(strget(cmdtext,1));
radius = strval(strget(cmdtext,2));
name = strval(strget(cmdtext,3));
if(!strlen(strget(cmdtext,1))||!strlen(strget(cmdtext,2)))
{
SendClientMessage(playerid, 0xffffffff, "Benutzung: /blitzer [Geschwindigkeit] [Radius] [StandOrt Beschreibung]");
return 1;
}
AddBlitzer(playerid,speed,radius,PlayerInfo[playerid][Team],name);
format(msg,sizeof(msg),"*** [HQ]: %s %s hat einen Blitzer am %s /*<- hir der Standort*/ aufegestellt mit einer Geschwindigkeit von: %d ***",FrakName(playerid),PlayerName(playerid),name/*<- die variable*/,speed);
for( new i = 0; i<MAX_PLAYERS; i++) {
if(PlayerInfo[i][Team] == 1 || PlayerInfo[i][Team] == 2 || PlayerInfo[i][Team] == 3 || PlayerInfo[i][Team] == 8) {
SendClientMessage(i,COLOR_PURPLE,msg);
return 1;
}
}
}
return 1;
} -
Guten Tag,
Ich habe probleme beim Spawnen unzwar ich habe wenn man sich eingelogt hat das gesetzt:
SpawnPlayer(playerid);
aber wenn ich mich eingeloggt habe werde ich nicht gespawnt denn ich muss erst aus den Spawn button klicken
Könnte mir jemand helfen?
-
hast du TV?
-
Guten tag,
Wie in der überschrieft schon steht startet mein server nicht hir der log:Zitat
----------
Loaded log file: "server_log.txt".
----------SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team[19:09:21] filterscripts = "" (string)
[19:09:21]
[19:09:21] Server Plugins
[19:09:21] --------------
[19:09:21] Loading plugin: streamer
[19:09:21]*** Streamer Plugin v2.5.2 by Incognito loaded ***
[19:09:21] Loaded.
[19:09:21] Loading plugin: mysql
[19:09:21]> MySQL plugin R5 successfully loaded.
[19:09:21] Loaded.
[19:09:21] Loaded 2 plugins.[19:09:21]
[19:09:21] Filterscripts
[19:09:21] ---------------
[19:09:21] Loaded 0 filterscripts.[19:09:21] Script[gamemodes/Gamemode.amx]: Run time error 19: "File or function is not found"
[19:09:21] Number of vehicle models: 0