Pperro
User
- Joined
- Jul 19, 2010
- Messages
- 18
- Reaction score
- 0
Powita? wszystkich, mam problem z Ots'em.
Dok?adnie chc? go zrobi? ?eby ludzie na nim grali ale w programie XAMPP.
A dok?adniej chcia?bym dowiedzie? si? paru rzeczy takich jak:
-Jak zrobi? accmarkera w Xampp ??
-Co potrzeba wy?onczy? a co wy?onczy? ?eby ludzie grali ??
-I jaki slinik proponujecie ??
A chcia?bym si? jescze zapytac 1 gdy udaje mi sie zrobi? cos przy accmarkerze
to wbijam no moje ip ?eby sprawdzi? to pojawie mi sie accmarker.
sci?gno?em accmarker Prosty.
Ale gdy zrobie posta? do wyskakuje to:
' . $bp[$vocation] . ''); else $str .= ('/>'); $str .= ('' . "\n"); } } return $str; } function newacc() { require('config.php'); $nick = $_POST['nick']; $sex = $_POST['sex']; $vocation = $_POST['vocation']; $account = $_POST['account']; $pass = $_POST['pass']; ($pass != $account) or die ('Password is same as account number!'); ($pass != $nick) or die ('Password is same as character name!'); ($pass != 'tibia' && $pass != 'lol') or die ('Password is too simple!'); ($sex == 0 || $sex == 1) or die ('Invalid sex!'); ($vocation >= 1 && $vocation <= 4) or die ('Invalid vocation!'); ($account >= 100000 && $account <= 999999) or die ('Invalid account number!'); preg_match("/^[a-zA-Z][a-zA-Z ]*$/", $nick) or die ('Name contains illegal characters!'); preg_match("/^[a-zA-Z0-9]+$/", $pass) or die ('Password contains illegal characters!'); !preg_match("/^gm/i", $nick) or die ('GM is only one!'); $account_file = "$diraccount/$account.xml"; $player_file = "$dirplayer/$nick.xml"; $vip_file = "$dirvip/$account.xml"; !file_exists($account_file) or die ('There is already an account with this number!'); !file_exists($player_file) or die ("There is already a player $nick!"); $file = fopen($account_file, 'w'); fwrite($file, ' '); fclose($file); $file = fopen($player_file, 'w'); fwrite($file, ' ' . "\n" . skills($vocation) . ' ' . equip($vocation) . ' '); fclose($file); $file = fopen($vip_file, 'w'); fwrite($file, ''); fclose($file); print "Account $account was successfully created!"; } newacc(); ?>
[/COLOR]
Moja strona
Dam Wielkiego reputa !!!!!!!!!!!!!!!!!!!!!!!!!!
Dok?adnie chc? go zrobi? ?eby ludzie na nim grali ale w programie XAMPP.
A dok?adniej chcia?bym dowiedzie? si? paru rzeczy takich jak:
-Jak zrobi? accmarkera w Xampp ??
-Co potrzeba wy?onczy? a co wy?onczy? ?eby ludzie grali ??
-I jaki slinik proponujecie ??
A chcia?bym si? jescze zapytac 1 gdy udaje mi sie zrobi? cos przy accmarkerze
to wbijam no moje ip ?eby sprawdzi? to pojawie mi sie accmarker.
sci?gno?em accmarker Prosty.
Ale gdy zrobie posta? do wyskakuje to:
' . $bp[$vocation] . ''); else $str .= ('/>'); $str .= ('' . "\n"); } } return $str; } function newacc() { require('config.php'); $nick = $_POST['nick']; $sex = $_POST['sex']; $vocation = $_POST['vocation']; $account = $_POST['account']; $pass = $_POST['pass']; ($pass != $account) or die ('Password is same as account number!'); ($pass != $nick) or die ('Password is same as character name!'); ($pass != 'tibia' && $pass != 'lol') or die ('Password is too simple!'); ($sex == 0 || $sex == 1) or die ('Invalid sex!'); ($vocation >= 1 && $vocation <= 4) or die ('Invalid vocation!'); ($account >= 100000 && $account <= 999999) or die ('Invalid account number!'); preg_match("/^[a-zA-Z][a-zA-Z ]*$/", $nick) or die ('Name contains illegal characters!'); preg_match("/^[a-zA-Z0-9]+$/", $pass) or die ('Password contains illegal characters!'); !preg_match("/^gm/i", $nick) or die ('GM is only one!'); $account_file = "$diraccount/$account.xml"; $player_file = "$dirplayer/$nick.xml"; $vip_file = "$dirvip/$account.xml"; !file_exists($account_file) or die ('There is already an account with this number!'); !file_exists($player_file) or die ("There is already a player $nick!"); $file = fopen($account_file, 'w'); fwrite($file, ' '); fclose($file); $file = fopen($player_file, 'w'); fwrite($file, ' ' . "\n" . skills($vocation) . ' ' . equip($vocation) . ' '); fclose($file); $file = fopen($vip_file, 'w'); fwrite($file, ''); fclose($file); print "Account $account was successfully created!"; } newacc(); ?>
[/COLOR]
Moja strona
Dam Wielkiego reputa !!!!!!!!!!!!!!!!!!!!!!!!!!