Hello. I'm using OSBanditi 1.6 and i got problem with Vacation. When i go to the vacation, game log me out, but when i log again in, i can do crimes like before. In MYSQL table users are not updated. Vacation are still 0 and should be 7.
What's wrong ?
Vacation problem
-
-
-
Hallo. Ik gebruik OSBanditi 1.6 en ik heb probleem met Vacation. Wanneer ik naar de vakantie, wild Log me uit, maar toen ik log weer in, kan ik misdaden doen als vroeger. In MYSQL tabel gebruikers zijn niet bijgewerkt. Vacation nog steeds 0 en moet worden 7.
Wat is er mis?[offtopic]hier ongeveer de NL vertaling[/offtopic]
-
Can you post your vacationscript please,
I will help you. -
PHP
Toon Meer<? if($_GET['x'] == go){ mysql_query("UPDATE `users` SET `vakantie`='7' WHERE `login`='$data->login'"); ?> <table width="100%"> <tr> <td align="center"> <br><br><br><br> <table class="div_popup" align="center"> <tr> <td align="center"> Właśnie wysłałeś swojego gangstera na urlop. Zostaniesz teraz wylogowany. Za równy tydzień możesz wrócić i zalogować się ponownie.<br /> <img src="images/vacation.jpg" width="400" height="300" /></td> </tr> <tr> <td> <br><br> <a href="login.php?x=logout" class="msg_ok">Wciśnij, jeśli twoja przeglądarka nie przeniesie ciebie automatycznie..</a> </td> </tr> </table> </td> </tr> </table> <script language="javascript"> setTimeout("document.location.href='login.php?x=logout'",(4000*2)); </script> </div> </td> </tr> </table> </td> <?} if($_GET['x'] != go){ ?> <div class="title_bg"> <div class="title">Urlop</div> </div> <div style="background-color:#dbd2b7; padding:10px; padding-top:4px;"> <table cellpadding="0" cellspacing="0" width="100%"><tr> <td><table border="0"> <tr> <td>Jeżeli z jakiś przyczyn nie możesz teraz grać, możesz skorzystać z opcji urlopowej. Po wybraniu tej opcji masz pewność, że przez ten czas nie zostaniesz zaatakowany, a na twoim profilu pokaże się informacja, że jesteś na wakacjach<br /> <br /> Przechodząc w tryb urlopowy nie będziesz w stanie wykonywać żadnych czynności na koncie. <strong>Wakacje trwają minimum 7 dni !</strong><br /> <br /> Chcesz wziąć urlop? Wciśnij przycisk poniżej, zostaniesz automatycznie wylogowany i po minimum tygodniu będziesz mógł znów się zalogować. </td> <td valign="top"><img src="images/geek-vacation.jpg" width="227" height="260" /></td> </tr> </table> <br /><br /> <input type="button" name="submit" value="Wyjedź na urlop!" class="mod_submit" onclick="askAgain('Are you sure you want to set your account on vacation?','vacation.php?x=go')"> </td></tr></table> </div> <table width='100%' cellspacing='2' cellpadding='2'> <tr> <td class='content_bottom'></td> </tr> </table> <script language="javascript" type="text/javascript"> function askAgain(pQuestion,pURL) { if(confirm(pQuestion)){ document.location.href = pURL; } } </script> </div> </td> </tr> </table> </td> <? } ?>
-
Hello, you have an example of what you mean maybe I can help. Because I have a completely different holiday or scrip that you can use pb else but me.
-
so then if you can help me, then plz do it
Nieuwe reactie samengevoegd met originele reactie op 30.03.10 18:17:55:
refreshing topic...
Participate now!
Heb je nog geen account? Registreer je nu en word deel van onze community!