Unban without message ?
Hello.
I created a ban system that unbans players after theyr time has past, everything is in database mysql. But the only problem that i have is if in structure Player 1 is id 1 in db and has 5 minutes left and Player 2 is id 2 in db and has 1 minute left if his time will past the server wont give the message about Player 2 that got unbanned because he is id 2 in db and not 1, but when Player 1 is getting unbanned the server will give a message about him that got unbanned, and if i put them both in the same time to get unban server will show only 1 player got unbanned but in db they both got unbanned. Bad english sorry, this is my script, don't judge me about the code, help if you can, thanks. Code:
public UnbanSystem() |
Re: Unban without message ?
remove the return line from the for loop
|
Re: Unban without message ?
Quote:
|
Re: Unban without message ?
what did you test it with? the code you posted wont probably even compile
|
Re: Unban without message ?
Quote:
i am using this function to ban fake ppl. Code:
public test(id) |
Re: Unban without message ?
Code:
|
Re: Unban without message ?
Quote:
I tested without ID without primary_key and auto_incr but still nothing, it's the same problem. |
Re: Unban without message ?
add SQL_NextRow to the for loop. i edited my last post
|
Re: Unban without message ?
Quote:
Now i got a new problem creating the unban cmd, if i try to unban any steam id if the data base is cleared it say's 'that steamid dosen't exist in our data base' but if i want to unban a wrong steamid when i have a player banned it unbans that guy, lol. Code:
public cmd_unban(id) |
Re: Unban without message ?
I"m not familiar with sql, but this just looks like u gotta check if the steam id is valid and if it matches with the one in the database. Make sure you format everything the same way as you do in your database.
|
All times are GMT -4. The time now is 03:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.