Logging player problem?
Hi, I tried making a plugin that logs a player's steamid and name (I've done this before) but this time, I'm trying to make it so that if their name is already in the txt file, don't write it again. This is the code I have:
Code:
/* Plugin generated by AMXX-Studio */ |
Re: Logging player problem?
|
Re: Logging player problem?
Hmm, are there any good trie tutorials?
|
Re: Logging player problem?
Still not working after trying with trie's :/
Code:
/* Plugin generated by AMXX-Studio */ |
Re: Logging player problem?
If all you are doing is trying to log the player then I would recommend doing it on client_putinserver().
I would start with Bugsy's example and just modify it to add your SteamID to the list and write to the file (as shown in the AddID() function). Don't do anything with names yet. Get it working then you can add or modify from there. As far as your most recent code, you need to put quotes around the %L to get it to compile. Again, you need to start simple. Don't do any multilingual stuff until you have the rest of the code working as it should. |
Re: Logging player problem?
Got it working without the lang file :D. Thanks for the help fysiks.
Code:
/* Plugin generated by AMXX-Studio */ |
Re: Logging player problem?
FYI, if you listen to me and use Bugsy's code as a template it would be much much much more optimized. Reading a file several times and looping through players on NewRound is something you do not need to do at all.
|
Re: Logging player problem?
Yea, I realize that, gonna fix that now :/
|
Re: Logging player problem?
Got a question, if you read the file during plugin_init and a player joins, it'll add his name to the list. But, if he leaves and then joins again without the map changing or soemthing, will his name be added twice?
|
Re: Logging player problem?
Quote:
Hint: It's TrieSetCell() that you skipped. |
| All times are GMT -4. The time now is 00:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.