ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 2043

Info Apartament

by Cayman_-Modz - 11-25-2018 - 04:37 PM
#1
I'm trying in this way who could help me to realize the information of the apartment that you own??
Code:
//NATIVE :
static char* _GET_LABEL_TEXT(char *labelName) { return invoke<char*>(0x95C4B5AD, labelName); } // 0x95C4B5AD




void  Apartament(int SelectPlayer, int propertyID)
{
char getLabel0[0x100];
char getLabel1[0x100];
char getLabel2[0x100];

int globalHash1 = getPlayerStat(SelectPlayer, propertyID);
//getPlayerStat(SelectPlayer, 0xEA); // Apt 1
int globalHash2 = getPlayerStat(SelectPlayer, propertyID);
//getPlayerStat(SelectPlayer, 0xEB); // Apt 2
int globalHash3 = getPlayerStat(SelectPlayer, propertyID);
//getPlayerStat(SelectPlayer, 0xEC); // Apt 3

sprintf(getLabel0, "Apartament 1 : %s, n° %i", _GET_LABEL_TEXT(getLabel0), getPlayerStat(SelectPlayer, 0xEA)); // Apt 1
sprintf(getLabel1, "Apartament 2 : %s, n° %i", _GET_LABEL_TEXT(getLabel1), getPlayerStat(SelectPlayer, 0xEB)); // Apt 2
sprintf(getLabel2, "Apartament 3 : %s, n° %i", _GET_LABEL_TEXT(getLabel2), getPlayerStat(SelectPlayer, 0xEC)); // Apt 3

InfoText(getLabel0, 4, Infoapartament1, infoapartamentY1, 0.38f, 0.38f, 255, 255, 255, 255, false);
InfoText(getLabel1, 4, Infoapartament2, infoapartamentY2, 0.38f, 0.38f, 255, 255, 255, 255, false);
InfoText(getLabel2, 4, Infoapartament3, infoapartamentY3, 0.38f, 0.38f, 255, 255, 255, 255, false);
}
Reply
#2
if your gonna post any code, use the code tags or put it in a spoiler
Reply
#3
(11-25-2018 - 05:03 PM)PhucedMODZ Wrote: if your gonna post any code, use the code tags or put it in a spoiler

Ok bro
Reply
#4
(11-25-2018 - 05:27 PM)Cayman_-Modz Wrote:
(11-25-2018 - 05:03 PM)PhucedMODZ Wrote: if your gonna post any code, use the code tags or put it in a spoiler

Ok bro

it actually looks fine to me

might be the get_label_text native
Reply
#5
(11-25-2018 - 08:44 PM)Venom_Modz Wrote:
(11-25-2018 - 05:27 PM)Cayman_-Modz Wrote:
(11-25-2018 - 05:03 PM)PhucedMODZ Wrote: if your gonna post any code, use the code tags or put it in a spoiler

Ok bro

it actually looks fine to me

might be the get_label_text native
thanks for the info
Reply
#6
(11-25-2018 - 04:37 PM)Cayman_-Modz Wrote: I'm trying in this way who could help me to realize the information of the apartment that you own??
Code:
//NATIVE :
static char* _GET_LABEL_TEXT(char *labelName) { return invoke<char*>(0x95C4B5AD, labelName); } // 0x95C4B5AD




void  Apartament(int SelectPlayer, int propertyID)
{
char getLabel0[0x100];
char getLabel1[0x100];
char getLabel2[0x100];

int globalHash1 = getPlayerStat(SelectPlayer, propertyID);
//getPlayerStat(SelectPlayer, 0xEA); // Apt 1
int globalHash2 = getPlayerStat(SelectPlayer, propertyID);
//getPlayerStat(SelectPlayer, 0xEB); // Apt 2
int globalHash3 = getPlayerStat(SelectPlayer, propertyID);
//getPlayerStat(SelectPlayer, 0xEC); // Apt 3

sprintf(getLabel0, "Apartament 1 : %s, n° %i", _GET_LABEL_TEXT(getLabel0), getPlayerStat(SelectPlayer, 0xEA)); // Apt 1
sprintf(getLabel1, "Apartament 2 : %s, n° %i", _GET_LABEL_TEXT(getLabel1), getPlayerStat(SelectPlayer, 0xEB)); // Apt 2
sprintf(getLabel2, "Apartament 3 : %s, n° %i", _GET_LABEL_TEXT(getLabel2), getPlayerStat(SelectPlayer, 0xEC)); // Apt 3

InfoText(getLabel0, 4, Infoapartament1, infoapartamentY1, 0.38f, 0.38f, 255, 255, 255, 255, false);
InfoText(getLabel1, 4, Infoapartament2, infoapartamentY2, 0.38f, 0.38f, 255, 255, 255, 255, false);
InfoText(getLabel2, 4, Infoapartament3, infoapartamentY3, 0.38f, 0.38f, 255, 255, 255, 255, false);
}

easy
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply

Users browsing: 3 Guest(s)