Adding & Saving an amount
#1

I want to create the number of jobs that the whole server has done collectively and add onto it when a player does a job. How would I go about doing this and saving this?
Reply
#2

Код:
static JobsDone;

JobsDone++; // when player does a job
And save the variable JobsDone using MySQL under OnGameModeInit or whatever saving method you're using.
Reply
#3

Quote:
Originally Posted by TheToretto
Посмотреть сообщение
Код:
static JobsDone;

JobsDone++; // when player does a job
And save the variable JobsDone using MySQL under OnGameModeInit or whatever saving method you're using.
Ah okay MySQL, that's mainly what I wanted to know (how to save it). Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)