DK22Pac / plugin-sdk

An SDK for developing ASI/CLEO plugins for GTA San Andreas, GTA Vice City and GTA III
zlib License
431 stars 115 forks source link

GPS dependencies Error - CFont #76

Closed ArmynC closed 6 years ago

ArmynC commented 6 years ago

Error C3861 'SetAlignment': identifier not found Error (active) E0135 class "CFont" has no member "SetAlignment"
Error (active) E0135 class "CFont" has no member "SetProp"
Error C2039 'SetAlignment': is not a member of 'CFont'
Error C2039 'SetProp': is not a member of 'CFont'
Error C3861 'SetProp': identifier not found GPS

Possible Fix (main.cpp):

CFont::SetAlignment(ALIGN_CENTER); -> CFont::SetOrientation(ALIGN_CENTER); CFont::SetProp(true); -> CFont::SetProportional(true);

After: Error LNK1181 cannot open input file 'plugin.lib'

EightyVice commented 6 years ago

Well, what game you are using? In Vice City i cant find that function i think it exists in GTA 3 as i tested before.

ArmynC commented 6 years ago

GTA SA

EightyVice commented 6 years ago

these two functions doesn't exists in SA too

EightyVice commented 6 years ago

but there are two booleas

bool& CFont::m_bFontCentreAlign = *(bool *)0xC71A79;
bool& CFont::m_bFontRightAlign = *(bool *)0xC71A7A;

you can check for alignment.

ArmynC commented 6 years ago

Hmm.. I want to compile the SA_GPS (from example folder) and if I build it show: Error C3861 'SetAlignment': identifier not found Error (active) E0135 class "CFont" has no member "SetAlignment" Error (active) E0135 class "CFont" has no member "SetProp" Error C2039 'SetAlignment': is not a member of 'CFont' Error C2039 'SetProp': is not a member of 'CFont' Error C3861 'SetProp': identifier not found GPS

And I saw in CFont that these 2 functions have different 'names' so I changed them, now I have that error

Crspy commented 6 years ago

problem fixed, thank you for reporting.