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

Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: Craxor
Forum: Code Snippets/Tutorials 09-23-2016, 14:13
Replies: 132
Sticky: nVault Tutorial
Views: 164,365
Posted By Craxor
Re: nVault Tutorial

I'm confuse, by that do you mean to let guys who reads our code that 'MAX_PLAYERS" will be to store for players indexes and +1 just for container wich contain the arrays, you know what i mean:)) -...
Forum: Code Snippets/Tutorials 09-23-2016, 13:55
Replies: 132
Sticky: nVault Tutorial
Views: 164,365
Posted By Craxor
Re: nVault Tutorial

ok, so why not like that:


const MAX_PLAYERS = 33;
new szAuthId[ MAX_PLAYERS ];


I suppose it's ok for readabilty ...
???
Forum: Code Snippets/Tutorials 09-23-2016, 02:02
Replies: 132
Sticky: nVault Tutorial
Views: 164,365
Posted By Craxor
Re: nVault Tutorial

Not realeated to nvault but i have a question, why this:
MAX_PLAYERS + 1

And why not directly set the define 33 ? why need a calculations, i'm realy curious, thanks :D
Forum: Code Snippets/Tutorials 09-22-2016, 02:02
Replies: 132
Sticky: nVault Tutorial
Views: 164,365
Posted By Craxor
Re: nVault Tutorial

Yes, but if i will use you examples also for Saving data i willl need to call more times get_user_authid, i'm wrong?
I know about if i use just for taking data from nvault and is logic if i'm using...
Forum: Code Snippets/Tutorials 09-21-2016, 15:03
Replies: 132
Sticky: nVault Tutorial
Views: 164,365
Posted By Craxor
Re: nVault Tutorial

I know man.

Sometimes when server works slowly and more players connect in the same times it can appears problems, so for safety i'm using a task. ( Anyway players not even observe ) and i don't...
Forum: Code Snippets/Tutorials 09-21-2016, 14:44
Replies: 132
Sticky: nVault Tutorial
Views: 164,365
Posted By Craxor
Re: nVault Tutorial

@prostetamoto: Just for safety, 'maybe' player is not fully connected so i make a little delay, is not big deal but just to be sure( and in my past i was having problems some times so this should be...
Forum: Code Snippets/Tutorials 09-21-2016, 03:28
Replies: 132
Sticky: nVault Tutorial
Views: 164,365
Posted By Craxor
Re: nVault Tutorial

What about my small example:



#include <amxmodx>
#include <nvault>

// '32' store indexes, 31 the string size.
new szAuthId[32][31];
new iPoint[32];
Forum: Code Snippets/Tutorials 02-12-2016, 08:52
Replies: 132
Sticky: nVault Tutorial
Views: 164,365
Posted By Craxor
Re: nVault Tutorial

Bugsy,opinion about this Save functions ?


public SaveGravity( id )
{
new szKey[40] , szGravity[11] , szAuthID[35];
get_user_authid( id, szAuthID, charsmax( szAuthID ) );

formatex( szKey...
Showing results 1 to 8 of 8

 
Forum Jump

All times are GMT -4. The time now is 11:20.


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