Velaski
winner
- Aug 4, 2015
- 562
- 165
Making a game in plus emulator and it requires three tables :
- Users
- hoteljobs
- hoteljobs_ranks
I created my two variables:
The users table has JobId and JobRank in and working correctly.
In my hoteljobs table:
In my hoteljobs_ranks table :
What I am trying to do here is use
Going to hoteljobs, finding jobid: 5 and then grabbing the name of the job (jobname).
Then going to hoteljobs_ranks , finding the jobid(5), looks for the rankid(1), grabbing the rankname from it.
And I'll consequently be left with the JobName + RankName.
For example:
Goes to hoteljobs and locates ID 5. Which is for example Shawn's Kitchen Company
So now the jobname has been grabbed.
Now I want to get the Rankname, with my RankId,
So it finds the jobid which is 5, gets my rank id which is 1 and outputs the name into a string variable which I would declare in the code. (string RankName
It's the same concept as Roleplay Jobs but I'm going to use it differently, I just need this to work. I don't need it coded for me, I just need some guidance on how to code it.
Kind regards.
I hope this all makes sense, because I'm nearly confused myself.
@Sledmore @Damiens @Meap @Altercationz @Core @JayCustom
- Users
- hoteljobs
- hoteljobs_ranks
I created my two variables:
Code:
int JobId;
int JobRank;
In my hoteljobs table:
You must be registered for see images attach
In my hoteljobs_ranks table :
You must be registered for see images attach
What I am trying to do here is use
Code:
Session.GetHabbo().JobId;
Session.GetHabbo().JobRank;
Then going to hoteljobs_ranks , finding the jobid(5), looks for the rankid(1), grabbing the rankname from it.
And I'll consequently be left with the JobName + RankName.
For example:
Code:
Session.GetHabbo().JobId = 5;
Session.GetHabbo().JobRank = 1;
So now the jobname has been grabbed.
Now I want to get the Rankname, with my RankId,
You must be registered for see images attach
So it finds the jobid which is 5, gets my rank id which is 1 and outputs the name into a string variable which I would declare in the code. (string RankName
It's the same concept as Roleplay Jobs but I'm going to use it differently, I just need this to work. I don't need it coded for me, I just need some guidance on how to code it.
Kind regards.
I hope this all makes sense, because I'm nearly confused myself.
@Sledmore @Damiens @Meap @Altercationz @Core @JayCustom
Attachments
Last edited: