Beiträge von Skyborder
-
-
Seite sieht gut aus
Respekt 10/10 Fische
-
Dann nimm mal die Battery aus dem Mainboard warte 10 Sekunden und setze sie wieder ein
Dann ist das bios auf standard vielleicht erkennt er dann auch den Ramriegel
-
Lass mich Raten nun hast du Bluescreen was?!
Habe ich auch gehabt neu aufsetzen und nun geht alles
-
Editiert
-
Ok //edit Ich schreibe mehr
Also Ich suche einen .de Domain Sponsoren für mich
Ich habe ein kleines Vorhaben und sollte auch dort Unterstützt werden.
Ein Freund von mir hat ein Community Script was er mir geben würde es bassiert auf eine Art Facebook.
Nur das man sich Freunde Abboniert.Es gibt einen Post bereich für alle Fragen Ansagen usw.
Das Script ist nicht so gut ausgereift und deswegen bräuchten wir eine Seite womit wir das weiter ausbauen könnten.
Das Script läuft auf Mysql und dient auch als Speicher Ort für Kommende Spielstände uvm..mehr kann ich derzeit echt nicht sagen sonst wäre es schon Kaputt bevor es losgehen würde
Ich danke euch
-
Dann nutz mal den Nativchecker
-
Blocking 127.0.0.1 due to a 'server full' attack (1)
Versuch mal localhost zunehmen
Kann es sein das du win 8 hast? denn dann musst du die Ports freischalten in der Firewall
-
Hi
Ich habe ein Problem
Wenn ich mich einloggen möchte ne bei meiner DB für den SA-MP Server
Ich habe ja schon auf dem SA-MP server ein Account jedoch findet er meinen Nicht,
Könnte evtl einer mal darauf schauen ob ich alles Richtig gemacht habe?
Ich möchte gerne auch wissen wieso er die Users Tabelle nicht finden kann
p.s. Ich weis das es ein UCP ist aber mit diesen Tabellen web_users und web_news
Dennoch muss es ja irgendwie gehen das an meine DB anzupassen nur wie das wäre nett wenn mir einer Helfen könnte
Ich möchte euch bitten das ihr mir sagt was ihr braucht
hier schonmal die Login.php
hier die Testseite
UCPPHP
Alles anzeigen<center><?php if(!IsLogged()) { if(isset($_POST['loggomb'])) { Login($_POST['name'], $_POST['pass']); } else { echo ' <form action="index.php?p=login" method="post"> <input type="text" name="name" placeholder="Benutzername "erforderlich"/> <br> <input type="password" name="pass" placeholder="Passwort" Erforderlich/> <br> <input type="submit" name="loggomb" /> </form>'; } } else header('Location: index.php'); ?></center>
hier die Reg.php
PHP
Alles anzeigen<center><?php if(!IsLogged()) { if(isset($_POST['reggomb'])) { Register($_POST['name'], $_POST['pass'], $_POST['email']); } else { echo ' <form action="index.php?p=reg" method="post"> <input type="text" name="name" placeholder="Name" required/> <br> <input type="email" name="email" placeholder="E-Mail" required/> <br> <input type="password" name="pass" placeholder="Kennwort" required/><br> <input type="submit" name="reggomb"/> </form>'; } } else header('Location: index.php'); ?></center>
heir die Index.php
PHP
Alles anzeigen<?php require_once "inc/func.php"; ?> <html> <head> <meta charset="UTF-8" /> <title>UCP by Atomic RP - <?php echo $_SERVER['SERVER_NAME']; ?></title> <link href="default.css" rel="stylesheet" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1><a href="#">UCP by Atomic RP</a></h1> </div> <?php $num = mysql_num_rows(mysql_query("SELECT * FROM `users` WHERE 1")); echo "<h3 class='title' style='font-weight: normal;'>"; echo ( $num == 0 ? "$num Mitglied seit" : "<a href='?p=users'>$num Mitglied seit</a>" ); echo "</h3>"; ?> </div> <div id="menu"> <ul> <li><a href="?p=home" <?php echo (!isset($_GET['p']) || $_GET['p'] == "home" ? 'class="active"' : '');?>>Home</a></li> <li><a href="?p=team" <?php echo (isset($_GET['p']) && $_GET['p'] == "team" ? 'class="active"' : '');?>>Team</a></li> <li><a href="?p=server" <?php echo (isset($_GET['p']) && $_GET['p'] == "server" ? 'class="active"' : '');?>>Server-Status</a></li> <?php if(IsAdmin(2) || IsAdmin(3)) { echo ( isset($_GET['p']) && $_GET['p'] == "admin" ? '<li><a href="?p=admin" class="active">Admin Panel</a></li>':'<li><a href="?p=admin">Admin Panel</a></li>'); } if(IsLogged()) { echo ( isset($_GET['p']) && $_GET['p'] == "profile" ? '<li><a href="?p=profile" class="active">Profil</a></li>' : '<li><a href="?p=profile">Profil</a></li>'); echo '<li><a href="?p=logout">Kijelentkezés</a></li>'; } else { echo ( isset($_GET['p']) && $_GET['p'] == "login" ? '<li><a href="?p=login" class="active">Anmelden</a></li>' : '<li><a href="?p=login">Anmelden</a></li>' ); echo ( isset($_GET['p']) && $_GET['p'] == "reg" ? '<li><a href="?p=reg" class="active">Registrieren</a></li>' : '<li><a href="?p=reg">Registrieren</a></li>' ); } ?> </ul> </div> <div id="page"> <div id="content"> <?php if( !empty($_GET['p']) && isset($_GET['p']) ) { if(file_exists("pages/$_GET[p].php")) { require("pages/$_GET[p].php"); } else { require("pages/error.php"); } } else { require("pages/home.php"); } ?> </div> </div> <div class="clr"></div> <hr class="sz" /> <div id="footer" style="text-align: center;"> <p class="left">© 2014 -Atomic RP<br>YOKO CO.KG : <?php echo $_SERVER['REMOTE_ADDR']; ?></p> <p class="right"><br><?php echo $_SERVER['SERVER_NAME'];?></p> </div> </div> </body> </html>
und die Connections
PHP
Alles anzeigenhier die settings.php # <?php $sql = array ( "host" => "127.0.0.1", "user" => "samp03", "pass" => "privat", "db" => "samp03" ); $samp = array ( "ip" => "178.33.79.60", "port" => "7300"); ?>
Die Functions.php
PHP
Alles anzeigen<?php require_once "Settings.php"; require_once "SampQuery.class.php"; $db_con = mysql_connect($sql["host"], $sql["user"], $sql["pass"]); $db_db = mysql_select_db($sql["db"]); if($db_con && $db_db) {} else { die ("Konnte nicht mit dem Mysql Server verbinden': ".mysql_error().""); } $query = new SampQuery($samp['ip'], $samp['port']); session_start(); ob_start(); /* # Vendégek if( !IsLogged() ) { $time = time(); $res = mysql_query("SELECT * FROM web_guest_online WHERE IP = '$_SERVER[REMOTE_ADDR]'"); $guest = mysql_fetch_assoc($res); $guestnum = mysql_num_rows($res); if( $guestnum == 0 ) { mysql_query("INSERT INTO web_guest_online(IP, TIME) VALUES('$_SERVER[REMOTE_ADDR]', '$time')"); } else { mysql_query("UPDATE web_guest_online SET TIME = '$time' WHERE IP = $guest[IP]"); } } $res = mysql_query("SELECT * FROM web_guest_online"); $guest = mysql_fetch_assoc($res); $elhagyta = time() - $guest['TIME']; if( $elhagyta > 120 || IsLogged() ) { mysql_query("DELETE FROM web_guest_online WHERE IP = '$guest[IP]' LIMIT 1"); } $guest_irhato = mysql_num_rows(mysql_query("SELECT * FROM web_guest_online")); # Felhasználók if( IsLogged() ) { $time = time(); $res = mysql_query("SELECT * FROM web_user_online WHERE IP = '$_SERVER[REMOTE_ADDR]'"); $member = mysql_fetch_assoc($res); $membernum = mysql_num_rows($res); if( $membernum == 0 ) { mysql_query("INSERT INTO web_user_online(NAME, IP, TIME) VALUES('$_SESSION[NAME]', '$_SERVER[REMOTE_ADDR]', '$time')"); } else { mysql_query("UPDATE web_user_online SET TIME = '$time' WHERE NAME = '$_SESSION[NAME]'"); } } $res2 = mysql_query("SELECT * FROM web_user_online"); $member = mysql_fetch_assoc($res2); $elhagyta2 = time() - $member['TIME']; if( $elhagyta2 > 120 ) { mysql_query("DELETE FROM web_guest_online WHERE IP = '$member[IP]'"); } $member_irhato = mysql_num_rows(mysql_query("SELECT * FROM web_user_online")); */ if(IsLogged()) { $time = time(); mysql_query("UPDATE users SET LASTLOGGED = '$time' WHERE NAME = '$_SESSION[NAME]'"); } function GetData($data) { mysql_query("SET NAMES UTF8"); $res = mysql_query("SELECT * FROM users WHERE NAME = '$_SESSION[NAME]' "); $tomb = mysql_fetch_array($res); return $tomb[$data]; } function GetDataEx($data) { mysql_query("SET NAMES UTF8"); $res = mysql_query("SELECT * FROM users WHERE NAME = '$_GET[nev]' "); $tomb = mysql_fetch_array($res); return $tomb[$data]; } function IsLogged() { if(isset($_SESSION['NAME']) && !empty($_SESSION['NAME'])) { if(GetData("BANNED") == "0") { return 1; } else { return 0; } } else { return 0; } } function IsAdmin($level) { if(isset($_SESSION['NAME']) && GetData("GROUP") == $level){ if(GetData("BANNED") == "1") { return 0; } else return 1; } else return 0; } function Register($user2, $pass2, $mail2) { mysql_query("SET NAMES UTF8"); $user = mysql_real_escape_string($user2); $pass = sha1(mysql_real_escape_string($pass2)); $mail = mysql_real_escape_string($mail2); $time = time(); $vane = mysql_num_rows(mysql_query("SELECT * FROM users WHERE NAME = '$user'")); if($vane == 0 && !empty($user2) && !empty($pass2) && !empty($mail2) ) { mysql_query("INSERT INTO `samp03`.`users` (`SQLid`, `NAME`, `KEY`, `keyConfirmKey`, `Level`, `AdminLevel`, `DonateRank`, `UpgradePoints`, `ConnectedTime`, `Registered`, `Sex`, `Age`, `Origin`, `Muted`,`Respect`) VALUES (NULL, '$user', '$pass', '$_SERVER[REMOTE_ADDR]', '0', '0', '0', '0', 0, '$mail', '$time', '$time', 0);"); //mail($mail, "Üdvözöllek!", "Szia $user!\nEzt a mailt azért kapod mert regisztráltál a szerverre!\n\nNév: $user\nÜdvözlettel: Valaki"); # Ha támogatja az email küldést a szolgáltatód akkor vedd ki a //-t echo 'Erfolgreiche Registrierung! Sie können jetzt anmelden!'; } else { echo 'Einige sind leer oder existiert schon links, dem Benutzer!'; } } function Login($user2, $pass2) { mysql_query("SET NAMES UTF8"); $user = mysql_real_escape_string($user2); $pass = sha1(mysql_real_escape_string($pass2)); $res = mysql_query("SELECT * FROM users WHERE NAME = '$user'"); if( mysql_num_rows($res) == 0 ) { echo 'A felhasználónév nem létezik!'; } else { while( $row = mysql_fetch_array($res) ) { if($row['BANNED'] == 0) { if( $pass == $row['PASS'] ) { $_SESSION['NAME'] = $user; $time = time(); mysql_query("UPDATE users SET IP = '$_SERVER[REMOTE_ADDR]' WHERE NAME = '$user'"); mysql_query("UPDATE users SET LASTONLINE = '$time' WHERE NAME = '$user'"); header('location: index.php'); } else { echo 'Der Benutzername / Passwort ist nicht korrekt!'; } } else { echo 'Haben Sie von der Website verbannt!'; } } } } function Logout() { session_unset(); header('Location: index.php'); } function ListUsers() { mysql_query("SET NAMES UTF8"); echo "<table class='users'><tr><th>Name</th><th>eingetragen</th></tr>"; $res = mysql_query("SELECT * FROM `users` WHERE 1"); while( $row = mysql_fetch_array($res) ) { $time = date("Y.m.d - H:m:s", $row['REGDATE']); echo "<tr>"; echo "<td>$row[NAME]</td> <td>$time"; echo "</tr>"; } echo "</table>"; } function HirTitle($text) { echo '<h3 class="titlebg">'.$text.'</h3>'; echo '<div class="hirbg">'; } function HirFooter() { echo '</div>'; } function HirAdd($title, $content) { mysql_query(" SET NAMES UTF8 "); mysql_query("INSERT INTO web_news (ID, TITLE, CONTENT, ADDED, DATE) VALUES (NULL, '$title', '$content', '$_SESSION[NAME]', '".time()."') "); } function ListNews() { mysql_query(" SET NAMES UTF8 "); $res = mysql_query("SELECT * FROM web_news ORDER BY ID DESC"); if(mysql_num_rows($res) > 0) { while( $row = mysql_fetch_array($res) ) { $ekkor = date("Y.m.d - H:m:s", $row['DATE']); HirTitle("$row[TITLE]"); echo nl2br("$row[CONTENT]<br><br><hr class='sz' />Írta: $row[ADDED]<br>Ekkor: $ekkor"); HirFooter(); } } else { echo '<h3>Nem található hír!</h3>'; } } function AdminListNews() { echo '<table class="admin"> <tr><td><b>Cím</b></td> <td><b>Törlés</b></td></tr>'; mysql_query(" SET NAMES UTF8 "); $res = mysql_query(" SELECT * FROM web_news ORDER BY ID DESC"); while ( $row = mysql_fetch_array($res) ) { echo "<tr> <td>$row[TITLE]</td> <th><a href='index.php?p=admin&delid=$row[ID]'>Törlés</a></th> </tr>"; } echo '</table>'; } function UnBan($id) { mysql_query("UPDATE users SET BANNED = 0 WHERE ID = $id"); header('location: index.php?p=admin&i=bans&msg=Unban megadva!'); } function Ban($id) { mysql_query("UPDATE users SET BANNED = 1 WHERE ID = $id"); header('location: index.php?p=admin&i=bans&msg=Felhasználó kitiltva!'); } function Team($level, $string) { echo "<h2>$string</h2><br />"; $res = mysql_query("SELECT * FROM `users` WHERE 1 = $level"); if( mysql_num_rows($res) == 0 ) { echo "$string."; } else { echo '<table>'; while( $t = mysql_fetch_array($res) ) { echo '<tr>'; echo "<td>$t[NAME]</td>"; echo '</tr>'; } echo '</table>'; } } function MakeAdmin($name2, $level) { $name = mysql_real_escape_string($name2); mysql_query("UPDATE `users` SET `GROUP` = '$level' WHERE `NAME` LIKE '$name'"); header('location: index.php?p=admin&i=makeadmin&msg=Sikeresen beállítottad a játékos adminszintjét!'); } ?>
Das UCP war in einer Anderen Sprache und musste ich soweit auf deutsch Übersetzen,
Ich hoffe es wird kein Problem sein mir zuhelfen vielleicht auch über Teamviewer -
Code
C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(7871) : warning 209: function "OnPlayerKeyStateChange" should return a value C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(7878) : warning 209: function "OnPlayerKeyStateChange" should return a value
Und die Onplayerkeystatechange
new string[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
if(newkeys & KEY_FIRE && GetPlayerState(playerid) == PLAYER_STATE_DRIVER )
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
GetPlayerName(playerid, sendername, sizeof(sendername));
if(vid != INVALID_VEHICLE_ID)
{
if(engine == VEHICLE_PARAMS_ON)
{
StopEngine(playerid,vid);
SendClientMessage(playerid,COLOR_GRAD2," Motor abgeschaltet.");
}
else
{
if(Gas[vid] > 0){
if(PlayerInfo[playerid][pAdmin] >= 1337){
if(Maske[playerid] == 0) {
format(string, sizeof(string), "* %s startet den Motor",sendername);
SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 30.0, 2000); SetTimerEx("StartEngineSleep",800,0,"i",playerid);
}
else {
SetPlayerChatBubble(playerid, "* jemand startet einen Motor", COLOR_PURPLE, 30.0, 2000); SetTimerEx("StartEngineSleep",800,0,"i",playerid);
}
SendClientMessage(playerid,COLOR_GRAD2," Motor wird gestartet.");
if(SpawnKillAktiv[playerid] == 1) { SpawnSkillSchutz(playerid);}
return 1;
}
new typ = IsAutohausCar(vid);
new GATyp = IsGangAutohausCar(vid);
if(typ != -1 || GATyp != -1){
SendClientMessage(playerid,COLOR_GRAD2," Du hast keinen Schlüssel für das Fahrzeug.");
return 1;
}
if(IsAMedicCar(vid)){
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht bei den Medics !"); return 1; }
}
/* if(IsAFahrschulCar(vid)){
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || TakingLesson[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht bei der Fahrschule oder in einer Fahrstunde.");
return 1;
}}*/
if(IsATruckerCar(vid)){
if(PlayerInfo[playerid][pJob] == 16 || TakingLesson[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist kein Trucker !");
return 1;
}}
if(IsANewsCar(vid)){
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht bei den News Reportern !");
return 1;
}}
if(IsAOAmtCar(vid)){
if(!IsAOrdnungsbeamter(playerid)){
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht beim Ordnungsamt !");
return 1;
}}
if(IsACopCar(vid)){
if(IsACop(playerid) && OnDuty[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist kein Cop oder nicht OnDuty !");
return 1;
}}
for(new h = 0; h < sizeof(PilotFlug); h++){
if(GetPlayerVehicleID(playerid) == PilotFlug[h]){
if(PlayerInfo[playerid][pJob] == 18)
{
}
else
{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!");
return 1;
}}}
for(new h = 0; h < sizeof(RobTransporter); h++){
if(GetPlayerVehicleID(playerid) == RobTransporter[h]){
if(TransporterRobberID == playerid || IsACop(playerid) && OnDuty[playerid] == 1){}
else {
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!");
return 1;
}}}
for(new h = 0; h < sizeof(GangAutoInfo); h++){
if(vid == GangAutoInfo[h][cID]){
if(PlayerInfo[playerid][pMember] == GangAutoInfo[h][cOwner] || PlayerInfo[playerid][pLeader] == GangAutoInfo[h][cOwner] || TakingLesson[playerid] == 1 && GangAutoInfo[h][cOwner] == 1 || GangAutoInfo[h][cOwner] == 11 || (GangAutoInfo[h][cOwner] == 7 || GangAutoInfo[h][cOwner] == 14 || GangAutoInfo[h][cOwner] == 16) && IsACop(playerid)) { }
else {
SendClientMessage(playerid, COLOR_ERRORTEXT, "Du hast keinen Schlüssel für das Fahrzeug!"); return 1; }
break;
}}
for(new h = 0; h < sizeof(AutomatischeFSCars); h++) {
if(vid == AutomatischeFSCars[h]) {
if(TakingLesson[playerid] == 2) { CP[playerid] = 24; SetPlayerCheckpoint(playerid, 1213.7196,-1841.5648,13.3828, 5.0); }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug! !"); return 1; }
}}
for(new h = 0; h < sizeof(MechanikerWagenCars); h++) {
if(vid == MechanikerWagenCars[h]) {
if(PlayerInfo[playerid][pJob] == 7) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug! !"); return 1; }
}}
for(new h = 0; h < sizeof(Drescher); h++) {
if(vid == Drescher[h]) {
if(PlayerInfo[playerid][pJob] == 10) {
if(CP[playerid] == 50) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du musst erst mit /harvest die Ernte bestätiegen um den Motor Starten zu können!"); return 1; } }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); return 1; }
}}
for(new SlotID = 0; SlotID < sizeof(RentSystemInfo); SlotID++) {
if(vid == RentSystemInfo[SlotID][RSCarID]) {
if(RentSystemInfo[SlotID][RSRenterID] == playerid) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); return 1; }
}}
for(new car = 0; car < sizeof(KorierVans); car++) {
if(vid == KorierVans[car][KRVehicle]) {
if(KorierVans[car][KRMieterID] == playerid) { }
else {
if(PlayerInfo[playerid][pJob] == 19) { SendClientMessage(playerid, COLOR_GRAD4, " Du musst das Fahrzeug erst Mieten, dies kannst du mit /reservecar machen."); }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); }
return 1;
}}}
for(new car = 0; car < sizeof(MulmanInfo); car++){
if(vid == MulmanInfo[car][MmCarID]){
if(MulmanInfo[car][MmLeiher] != playerid){
if(PlayerInfo[playerid][pJob] == 20) { SendClientMessage(playerid, COLOR_GRAD4, " Du musst das Fahrzeug erst Mieten, dies kannst du mit /reservecar machen."); }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); }
return 1;
}}}
for(new van = 0; van < 20; van++) {
if(HackerVans[van][Aktive] == 1){
if(vid == HackerVans[van][Vehicle]) {
if(HackerVans[van][MieterID] == playerid) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); return 1;
}}}}
if(Maske[playerid] == 0) { format(string, sizeof(string), "* %s startet den Motor",sendername); SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 30.0, 2000); }
else { SetPlayerChatBubble(playerid, "* jemand startet einen Motor", COLOR_PURPLE, 30.0, 2000); }
SetTimerEx("StartEngineSleep",1300,0,"i",playerid); SendClientMessage(playerid,COLOR_GRAD2," Motor wird gestartet.");
format(string,sizeof(string),"%s macht de motor an/aus.", sendername);
EnterToLog("motor",string);
if(SpawnKillAktiv[playerid] == 1) { SpawnSkillSchutz(playerid);}
}
else { SendClientMessage(playerid,COLOR_GRAD2," Tank leer..."); }
}
}
}Code
Alles anzeigenC:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6422) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6494) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6500) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6503) : warning 213: tag mismatch C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6505) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(7854) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(7871) : warning 209: function "OnPlayerKeyStateChange" should return a value C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(7878) : warning 209: function "OnPlayerKeyStateChange" should return a value C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(9345) : warning 213: tag mismatch C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(14992) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(15113) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(18822) : warning 203: symbol is never used: "logtext" C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(18822) : warning 203: symbol is never used: "log" C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(27323) : warning 213: tag mismatch C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(36724) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(36763) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 16 Warnings.
//warnings
-
Danke aber da steht der Error C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(38585) : error 017: undefined symbol "newkeys"
Ich habe es unter OnplayerKeyStatechange eingefügt
-
Ok danke Jeffry: habe dennoch ein Error wie kann ich diesen Lösen?
Code
Alles anzeigenC:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6422) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6494) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6500) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6503) : warning 213: tag mismatch C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(6505) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(9198) : warning 213: tag mismatch C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(14845) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(14966) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(18675) : warning 203: symbol is never used: "logtext" C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(18675) : warning 203: symbol is never used: "log" C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(27176) : warning 213: tag mismatch C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(36577) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(36616) : warning 217: loose indentation C:\Users\Thomas\Desktop\lkllllll\gamemodes\irneu.pwn(38585) : error 017: undefined symbol "newkeys" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
-
Hi
Ich habe ein Problem
Wie kann ich anstatt immer /motor einzugeben den Motor mit einer Taste starten lassen?
if(strcmp(cmd, "/engine",true) == 0 || strcmp(cmd, "/motor",true) == 0)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
GetPlayerName(playerid, sendername, sizeof(sendername));
if(vid != INVALID_VEHICLE_ID)
{
if(engine == VEHICLE_PARAMS_ON)
{
StopEngine(playerid,vid);
SendClientMessage(playerid,COLOR_GRAD2," Motor abgeschaltet.");
}
else
{
if(Gas[vid] > 0){
if(PlayerInfo[playerid][pAdmin] >= 1337){
if(Maske[playerid] == 0) {
format(string, sizeof(string), "* %s startet den Motor",sendername);
SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 30.0, 2000); SetTimerEx("StartEngineSleep",800,0,"i",playerid);
}
else {
SetPlayerChatBubble(playerid, "* jemand startet einen Motor", COLOR_PURPLE, 30.0, 2000); SetTimerEx("StartEngineSleep",800,0,"i",playerid);
}
SendClientMessage(playerid,COLOR_GRAD2," Motor wird gestartet.");
if(SpawnKillAktiv[playerid] == 1) { SpawnSkillSchutz(playerid);}
return 1;
}
new typ = IsAutohausCar(vid);
new GATyp = IsGangAutohausCar(vid);
if(typ != -1 || GATyp != -1){
SendClientMessage(playerid,COLOR_GRAD2," Du hast keinen Schlüssel für das Fahrzeug.");
return 1;
}
if(IsAMedicCar(vid)){
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht bei den Medics !"); return 1; }
}
/* if(IsAFahrschulCar(vid)){
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || TakingLesson[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht bei der Fahrschule oder in einer Fahrstunde.");
return 1;
}}*/
if(IsATruckerCar(vid)){
if(PlayerInfo[playerid][pJob] == 16 || TakingLesson[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist kein Trucker !");
return 1;
}}
if(IsANewsCar(vid)){
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht bei den News Reportern !");
return 1;
}}
if(IsAOAmtCar(vid)){
if(!IsAOrdnungsbeamter(playerid)){
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht beim Ordnungsamt !");
return 1;
}}
if(IsACopCar(vid)){
if(IsACop(playerid) && OnDuty[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist kein Cop oder nicht OnDuty !");
return 1;
}}
for(new h = 0; h < sizeof(PilotFlug); h++){
if(GetPlayerVehicleID(playerid) == PilotFlug[h]){
if(PlayerInfo[playerid][pJob] == 18)
{
}
else
{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!");
return 1;
}}}
for(new h = 0; h < sizeof(RobTransporter); h++){
if(GetPlayerVehicleID(playerid) == RobTransporter[h]){
if(TransporterRobberID == playerid || IsACop(playerid) && OnDuty[playerid] == 1){}
else {
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!");
return 1;
}}}
for(new h = 0; h < sizeof(GangAutoInfo); h++){
if(vid == GangAutoInfo[h][cID]){
if(PlayerInfo[playerid][pMember] == GangAutoInfo[h][cOwner] || PlayerInfo[playerid][pLeader] == GangAutoInfo[h][cOwner] || TakingLesson[playerid] == 1 && GangAutoInfo[h][cOwner] == 1 || GangAutoInfo[h][cOwner] == 11 || (GangAutoInfo[h][cOwner] == 7 || GangAutoInfo[h][cOwner] == 14 || GangAutoInfo[h][cOwner] == 16) && IsACop(playerid)) { }
else {
SendClientMessage(playerid, COLOR_ERRORTEXT, "Du hast keinen Schlüssel für das Fahrzeug!"); return 1; }
break;
}}
for(new h = 0; h < sizeof(AutomatischeFSCars); h++) {
if(vid == AutomatischeFSCars[h]) {
if(TakingLesson[playerid] == 2) { CP[playerid] = 24; SetPlayerCheckpoint(playerid, 1213.7196,-1841.5648,13.3828, 5.0); }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug! !"); return 1; }
}}
for(new h = 0; h < sizeof(MechanikerWagenCars); h++) {
if(vid == MechanikerWagenCars[h]) {
if(PlayerInfo[playerid][pJob] == 7) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug! !"); return 1; }
}}
for(new h = 0; h < sizeof(Drescher); h++) {
if(vid == Drescher[h]) {
if(PlayerInfo[playerid][pJob] == 10) {
if(CP[playerid] == 50) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du musst erst mit /harvest die Ernte bestätiegen um den Motor Starten zu können!"); return 1; } }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); return 1; }
}}
for(new SlotID = 0; SlotID < sizeof(RentSystemInfo); SlotID++) {
if(vid == RentSystemInfo[SlotID][RSCarID]) {
if(RentSystemInfo[SlotID][RSRenterID] == playerid) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); return 1; }
}}
for(new car = 0; car < sizeof(KorierVans); car++) {
if(vid == KorierVans[car][KRVehicle]) {
if(KorierVans[car][KRMieterID] == playerid) { }
else {
if(PlayerInfo[playerid][pJob] == 19) { SendClientMessage(playerid, COLOR_GRAD4, " Du musst das Fahrzeug erst Mieten, dies kannst du mit /reservecar machen."); }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); }
return 1;
}}}
for(new car = 0; car < sizeof(MulmanInfo); car++){
if(vid == MulmanInfo[car][MmCarID]){
if(MulmanInfo[car][MmLeiher] != playerid){
if(PlayerInfo[playerid][pJob] == 20) { SendClientMessage(playerid, COLOR_GRAD4, " Du musst das Fahrzeug erst Mieten, dies kannst du mit /reservecar machen."); }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); }
return 1;
}}}
for(new van = 0; van < 20; van++) {
if(HackerVans[van][Aktive] == 1){
if(vid == HackerVans[van][Vehicle]) {
if(HackerVans[van][MieterID] == playerid) { }
else { SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Schlüssel für das Fahrzeug!"); return 1;
}}}}
if(Maske[playerid] == 0) { format(string, sizeof(string), "* %s startet den Motor",sendername); SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 30.0, 2000); }
else { SetPlayerChatBubble(playerid, "* jemand startet einen Motor", COLOR_PURPLE, 30.0, 2000); }
SetTimerEx("StartEngineSleep",1300,0,"i",playerid); SendClientMessage(playerid,COLOR_GRAD2," Motor wird gestartet.");
format(string,sizeof(string),"%s macht de motor an/aus.", sendername);
EnterToLog("motor",string);
if(SpawnKillAktiv[playerid] == 1) { SpawnSkillSchutz(playerid);}
}
else { SendClientMessage(playerid,COLOR_GRAD2," Tank leer..."); return 1; }
}
}
return 1;
}Danke im Vorraus
-
Danke Kaliber: dich habe ich in Skype geäddet
p.s. ich muss md5 nehmen da ich ein UCP Davon habe was nur mit md5 geht
-
was nutzt du für ein Script?!
-
Hi
Ich brauche hilfe bei meinem MD5 Verschlüsseln nur wie kann ich das machen habe kein Plan davonIch habe in meinem Script so alles eingetragen
Code
Alles anzeigenpublic OnPlayerRegister(playerid, password[]) { StuffInfo[sNeuUser] += 1; if(IsPlayerConnected(playerid)) { new string[128], playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); MD5_Hash(password); format(string, sizeof(string), "%s", password); strmid(PlayerInfo[playerid][pKey], string, 0, strlen(string), 255); //PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]; //#if defined MySQLSpeicherung format(string, sizeof(string), "INSERT INTO `users` (`Name`, `Key`) VALUES ('%s', '%s')", playername, PlayerInfo[playerid][pKey]); self_mysql_query(string); format(string, sizeof(string), "UPDATE `users` SET `RegisterDatum`='%d' WHERE `Name`='%s'", Time(), playername); self_mysql_query(string); PlayerUpdate(playerid); //PlayerCarUpdate(playerid); //#else format(string, sizeof(string), "user/%s.ini", playername); new File: hFile = fopen(string, io_write); if (hFile) { new var[32]; format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var); format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var); format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var); format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonatorRank]);fwrite(hFile, var); format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var); format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var); format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var); format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var); format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAlter]);fwrite(hFile, var); format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var); format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var); format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pRespekt]);fwrite(hFile, var); format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var); format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pBank]);fwrite(hFile, var); format(var, 32, "Allowed=%d\n",PlayerInfo[playerid][pAllowed]);fwrite(hFile, var); format(var, 32, "bankfach1=%d\n",PlayerInfo[playerid][pBankFach1]);fwrite(hFile, var); format(var, 32, "bankfach2=%d\n",PlayerInfo[playerid][pBankFach2]);fwrite(hFile, var); format(var, 32, "bankfach3=%d\n",PlayerInfo[playerid][pBankFach3]);fwrite(hFile, var); format(var, 32, "bankfach4=%d\n",PlayerInfo[playerid][pBankFach4]);fwrite(hFile, var); format(var, 32, "wgs=%d\n",PlayerInfo[playerid][pwgs]);fwrite(hFile, var); format(var, 32, "facherlaubis=%d\n",PlayerInfo[playerid][pfacherlaubis]);fwrite(hFile, var); format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var); format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var); format(var, 32, "sKills=%d\n",PlayerInfo[playerid][psKills]);fwrite(hFile, var); format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var); format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var); format(var, 32, "ArrestTime=%d\n",PlayerInfo[playerid][pArrestTime]);fwrite(hFile, var); format(var, 32, "PhoneBook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var); format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var); format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var); format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var); format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var); format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var); format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var); format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var); format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var); format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var); format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var); format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var); format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var); format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var); format(var, 32, "Skin=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var); format(var, 32, "Vertragszeit=%d\n",PlayerInfo[playerid][pVertragszeit]);fwrite(hFile, var); format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var); format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var); format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pAnwaltSkill]);fwrite(hFile, var); format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var); format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var); format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var); format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var); format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var); format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var); format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var); format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var); format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var); format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pNummer]);fwrite(hFile, var); format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var); format(var, 32, "Biz=%d\n",PlayerInfo[playerid][pBizKey]);fwrite(hFile, var); format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var); format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var); format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var); format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var); format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var); format(var, 32, "Zollpass=%d\n",PlayerInfo[playerid][pZollpass]);fwrite(hFile, var); format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var); format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var); format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var); format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var); format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var); format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var); format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var); format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var); format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var); format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var); format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var); format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var); format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var); format(var, 32, "PainKillerPerk=%d\n",PlayerInfo[playerid][pPainKillerPerk]);fwrite(hFile,var); format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var); format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var); format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var); format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var); format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var); format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var); format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var); format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var); format(var, 32, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var); format(var, 32, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var); format(var, 32, "SavedMaterials=%d\n",PlayerInfo[playerid][pSaveMats]);fwrite(hFile, var); format(var, 32, "SavedDrugs=%d\n",PlayerInfo[playerid][pSaveDrugs]);fwrite(hFile, var); format(var, 32, "BikeLic=%d\n",PlayerInfo[playerid][pBikeLic]);fwrite(hFile, var); format(var, 32, "LKWLic=%d\n",PlayerInfo[playerid][pLKWLic]);fwrite(hFile, var); format(var, 32, "DonatorTime=%d\n",PlayerInfo[playerid][pDonatorZeit]);fwrite(hFile, var); format(var, 32, "WerberName=%s\n",PlayerInfo[playerid][pWerberName]);fwrite(hFile, var); format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][pFightingStyle]);fwrite(hFile, var); format(var, 32, "Handy=%d\n",PlayerInfo[playerid][pHandy]);fwrite(hFile, var); format(var, 32, "OnDutySkin=%d\n",PlayerInfo[playerid][pOnDutySkin]);fwrite(hFile, var); format(var, 32, "CarLicPoints=%d\n",PlayerInfo[playerid][pCarLicPoints]);fwrite(hFile, var); format(var, 32, "BikeLicPoints=%d\n",PlayerInfo[playerid][pBikeLicPoints]);fwrite(hFile, var); format(var, 32, "InviteSperre=%d\n",PlayerInfo[playerid][pInviteSperre]);fwrite(hFile, var); format(var, 32, "wartime1=%d\n",PlayerInfo[playerid][pWarnTime1]);fwrite(hFile, var); format(var, 32, "warntime2=%d\n",PlayerInfo[playerid][pWarnTime2]);fwrite(hFile, var); format(var, 32, "Ticketsopen=%d\n",PlayerInfo[playerid][pTicketsopen]);fwrite(hFile, var); fclose(hFile); } format(string,sizeof(string),"%s(%d) hat sich soebend mit der IP [%s] Registriert.", playername, playerid, PlayerInfo[playerid][pUserIP]); EnterToLog("ip",string); } return 1; }
ist das so Richig wo ich das md5_hash eingetragen habe?! -
xGreekz7x:
Bist du gerade so lieb und würdest mich für 10 Minuten unterstützen bzw. mich auch in Skype ädden?Mein Name in skype ist dieLegende14
Es geht um mein UCP was nicht so richtig will
-
Ok habe angenommen
-
Hey Community
Ich habe nun das UCP von hlucas das Ephram
Würdet ihr mir nur bitte Helfen das ich mich auch einloggen kann? die datenbank ist zwar verbunden aber es passiert nix
Siehe hier UCP
Ich habe alles so eingegeben aber es kommt immer wieder die Meldun Kennwort Fehlerhaft
hier ist die Auth.page.php
PHP
Alles anzeigen<?php new Module; if(!User::isLoggedIn()): ?> <div id="login" class="ui-widget-content ui-corner-all" style="width:500px; height:400px; box-shadow:0px 0px 20px 5px #111;"> <h3> Autorisierung</h3> <div style="margin: 20px; padding: 0.5em;" align="center"> <p> <span id="waiting" class="alert alert-info"> <img src="img/loading.gif" alt="Warte ..." title="Warte ..." /> Anmeldevorgang wird gesucht ... </span> <span id="status" class="alert alert-error"> </span> <span id="message" class="alert alert-info"> Bitte melden Sie sich mit Ihren Zugangsdaten an. </span> </p> </div> <form action="" method="post"> <table class="ui-widget" align="center"> <tr> <td><input type="text" id="username" name="username" placeholder="Nutzername" style="width:300px; height:40px; font-size:1.5em; font-family:'DejaVu Sans Light';" /></td> </tr> <tr> <td><input type="password" id="password" name="password" placeholder="Kennwort" style="width:300px; height:40px; font-size:1.5em; font-family:'DejaVu Sans Light';" /></td> </tr> <tr> <td><input type="submit" id="logon" name="logon" value="Anmelden" class="btn btn-large" style="float:right;" /></td> </tr> </table> </form> </div> <?php else: ?> <div class="alert alert-error">Sie sind bereits angemeldet.</div> <?php endif; ?>
hier die auth.js
Code
Alles anzeigen/* * auth.js * (c) 2012-2013 by hlucas * * http://hlucas.de * **/ $(function() { var timeout; $('#login').center(); $('#login').hide(); $('#status').hide(); $('#waiting').hide(); $("#logon").removeAttr('disabled'); $('#logon').click(function() { clearTimeout(timeout); $("#logon").attr('disabled', 'true'); $('#message').hide(); $('#status').hide(); $('#waiting').show(500); $.ajax({ type : 'POST', url : 'lib/ajax/AuthRequest.ajax.php', dataType : 'json', data: { user : $('#username').val(), password : $('#password').val() }, success : function(data){ $('#waiting').hide(); if(data.error == 0) { location.reload(); } else { $('#login').effect('highlight',{color:'#9E4A48'},500).effect('highlight',{color:'#9E4A48'},500); $('#status').text(data.code).show(500); } timeout = setTimeout(resetMessage,10000); }, error : function(XMLHttpRequest, textStatus, errorThrown) { $('#login').effect('highlight',{color:'#9E4A48'},500).effect('highlight',{color:'#9E4A48'},500); //$('#login').effect('shake',500); $('#waiting').hide(); $('#status').removeClass().text('Serverfehler: '+textStatus+', '+errorThrown).show(500); timeout = setTimeout(resetMessage,10000); } }); return false; }); function resetMessage() { $("#logon").removeAttr('disabled'); $('#status').hide(); $('#message').show(500); } });
Danke im Vorraus
Ich hoffe mir kann einer helfen
-
Würde es auch Sanandreas Multiplayer bald als Lua Geben können?