Keep List of players with details!
I am trying to keep the list of players in my server with details on them as follows:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
The ideal output I'm needing should be: PHP Code:
|
Re: Keep List of players with details!
Should be something like this:
new players[33][3][32]; players[id][1]=playerName players[id][0]=playerName players[id][2]=ip |
Re: Keep List of players with details!
Not sure If I'm allowed, but geez I want to jump through my screen and hug you :)
^^ you are of a real help here :) Really happy to have you on alliedmodders (This site holds its name) Thanks A LOT! |
Re: Keep List of players with details!
johnally
It's nice to see people who actually want to learn how to script here, too. Most people just want something to be done/fixed/changed for them. Also there is some interesting thread http://forums.alliedmods.net/showthread.php?t=154538 about how most of people ask questions here :) Well, let's not start offtopic. |
Re: Keep List of players with details!
I don't want pre-made stuffs :S.. I'm no script kiddie in some sense..
Oh, yeah.. no offtopic.. some mods will slap us :P Anyway, I got the listing down.. however, my new del_players function is not really attractive.. Replacing existing values in an array, when you can delete them, is not recommended.. do you know of a way to delete a whole index array entry.. lets say "players[5]" ?? In the amx/pawn wiki it does NOT show how :( New del_players: PHP Code:
|
Re: Keep List of players with details!
johnally
Quote:
Arrays are the whole other story - Check cellarray.inc. Anyway, you don't need them: there is no point in creating a dynamic array when you surely know that your max array size is 32. |
Re: Keep List of players with details!
That's not list. Make real list of ids of connected players and you won't have to worry about removing strings.
|
Re: Keep List of players with details!
Thanks sonysonedit, I got the idea :)
@Sylwester.. Yeah, I know.. But instead of getting someone else work, I thought I could get down a custom player 'list' :) PHP Code:
Thanks, |
Re: Keep List of players with details!
Sylwester
Slower & harder. |
Re: Keep List of players with details!
Quote:
Quote:
EDIT: I would do it this way: PHP Code:
|
| All times are GMT -4. The time now is 04:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.