[b]Situation:[/b] I am working on a currency addon, and I'm creating a ConCommand to sync the removal of money from both the client and server's money variable.
I am wondering if I should send the ConCommand, and just assume everything went okay on the server (the amount was successfully subtracted from the server var and commited to the .txt for the player) or should I send the amount to subtract, do the math on the server, then umsg the server var back to the client. It seems like this method would ensure consistency between the client and server, but I don't know how much I will sacrifice in performance.
Thank you.
Sorry if this is a bit newbie, but I was unable to find the newbie question section.
Do checks on both client and server:
[list]
[*]If the checks fail on the client, don't send the console command at all (nothing changes).
[*]If the checks fail on the server, notify the player (nothing changes).
[*]If everything checks out okay, sync the affected variables (currency, inventory, etc) to the client.
[/list]
[QUOTE=_nonSENSE;27147832]Do checks on both client and server:
[list]
[*]If the checks fail on the client, don't send the console command at all (nothing changes).
[*]If the checks fail on the server, notify the player (nothing changes).
[*]If everything checks out okay, sync the affected variables (currency, inventory, etc) to the client.
[/list][/QUOTE]
Thank you for a response, and that seems like the best way to go about this, thanks!
Sorry, you need to Log In to post a reply to this thread.