storing authID of players in global array
hello i have a problem storing the players authID in an array and I don't know why
i thought of 2 solutions but i don't know where to put this code Code:
g_punish[g_num][0]=id |
Re: storing authID of players in global array
I'm not sure what you're trying to do. You should show your code and explain your goal.
|
Re: storing authID of players in global array
Didn't really understand what you're doing but maybe this is what you need (only an example).
Code:
|
Re: storing authID of players in global array
PHP Code:
i need to keep in the array g_punish[i][] the authID of the players i thought something like this Code:
public client_putinserver(id){ |
Re: storing authID of players in global array
First off, you have an odd number of braces. You end your function half way through the posted code.
g_num will blow up (i.e. go to infinity) I think you should use something like this: PHP Code:
Also, no where in your code do you use "authID". authID will be something like: STEAM_0:1:132334. Also, PHP Code:
Use one of: PHP Code:
EDIT: Ok, I came up with something. You can check it out in the attached file. Basically with my code: if a player is punished 4 times within 5 minutes they get banned. If they don't get banned in that 5 minutes punishes and the time is reset. |
Re: storing authID of players in global array
PHP Code:
|
Re: storing authID of players in global array
Quote:
i mean that from some reasons the g_punish[id][0] ( nr of punishments ) goes crazy and is still rising i think that it could be done by this PHP Code:
thanks for all of the help |
Re: storing authID of players in global array
Quote:
I have a clue as to what the rest of the plugin is so I can't help you :(. |
Re: storing authID of players in global array
i've managed to solve the problem, minor syntax problems and it is good now
i still have to test something and if it won't work i will be back :D thanks for the help guys |
| All times are GMT -4. The time now is 16:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.