Saving a killers auth-id to use later
If I want to save a killers auth-id for use later, would I use
PHP Code:
PHP Code:
|
Re: Saving a killers auth-id to use later
No. Just use their id. The only time you would ever need their SteamID in a variable is if they leave the server and you still need their info.
Or, if you really want them then get the SteamID of everybody an client_authorized(). PHP Code:
|
Re: Saving a killers auth-id to use later
Along with what fysiks said, what you showed would not work, because steamid(authid) is saved in string "Authid" and you cannot save that string inside of the cell of an array. Use what fysiks said.
|
Re: Saving a killers auth-id to use later
Quote:
However, it's bad code to do that. |
Re: Saving a killers auth-id to use later
Oh yea :(
Got a question, what would happen to whatever part of the string is left out? Would it just not appear in the cells? Or does it loop around and go back to KillerID[0]? |
Re: Saving a killers auth-id to use later
Since the array sizes do not match, it would result in either:
|
Re: Saving a killers auth-id to use later
You shouldn't be able to compile it. Assigning an array to a cell gives compiler error:
error 006: must be assigned to an array |
| All times are GMT -4. The time now is 10:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.