Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: klippy
Forum: Code Snippets/Tutorials 09-24-2016, 12:28
Replies: 132
Sticky: nVault Tutorial
Views: 164,520
Posted By klippy
Re: nVault Tutorial

Yes, the number has to be a string in a query, but DB will parse your query and use it as an integer most likely. Performance should be better with an integer as a key, I think, especially in table...
Forum: Code Snippets/Tutorials 09-23-2016, 03:48
Replies: 132
Sticky: nVault Tutorial
Views: 164,520
Posted By klippy
Re: nVault Tutorial

Readability and maintainability. Just by sizing an array with MAX_PLAYERS + 1 (MAX_PLAYERS is 32, so +1 makes it 33), it gets self-documented, saying that array is intended for player data.

Always...
Forum: Code Snippets/Tutorials 09-21-2016, 15:06
Replies: 132
Sticky: nVault Tutorial
Views: 164,520
Posted By klippy
Re: nVault Tutorial

There can be no problems with multiple players connecting "at the same time" because the game loop is completely single threaded. But whatever, do as you like.
Forum: Code Snippets/Tutorials 09-21-2016, 14:54
Replies: 132
Sticky: nVault Tutorial
Views: 164,520
Posted By klippy
Re: nVault Tutorial

client_authorized() is called once the player gets authenticated (gets the Steam ID), so you can already safely retrieve their Steam ID.
Forum: Code Snippets/Tutorials 07-29-2014, 05:03
Replies: 132
Sticky: nVault Tutorial
Views: 164,520
Posted By klippy
Re: nVault

Maybe a vault file for each class, instead for each player? Or maybe, you could change key to

STEAM_0:1:234567-4

where that "4" would be class id, which means, every player can have up to 60(or...
Showing results 1 to 5 of 5

 
Forum Jump

All times are GMT -4. The time now is 22:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode