Skip to content

Commit

Permalink
Another small fixes..
Browse files Browse the repository at this point in the history
  • Loading branch information
kurta999 committed Jun 17, 2014
1 parent 17bf2ab commit 00af8f5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
8 changes: 5 additions & 3 deletions Addresses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ void CAddress::Initialize(eSAMPVersion sampVersion)

switch(sampVersion)
{
case SAMP_VERSION_03Z:
case SAMP_VERSION_03Z:
{
VAR_pRestartWaitTime = 0x8150130;

FUNC_CConsole_AddStringVariable = 0x0809F590;
Expand All @@ -52,8 +52,9 @@ void CAddress::Initialize(eSAMPVersion sampVersion)

FUNC_CFilterscripts_LoadFilterscript = 0x0809FDB0;
FUNC_CFilterscripts_UnLoadFilterscript = 0x080A01E0;
break;
}
case SAMP_VERSION_03Z_R2_2:
case SAMP_VERSION_03Z_R2_2:
{
VAR_pRestartWaitTime = 0x8150B60;

Expand All @@ -63,6 +64,7 @@ void CAddress::Initialize(eSAMPVersion sampVersion)

FUNC_CFilterscripts_LoadFilterscript = 0x0809FF80;
FUNC_CFilterscripts_UnLoadFilterscript = 0x080A03B0;
break;
}
}
#endif
Expand Down
3 changes: 2 additions & 1 deletion Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ bool Unlock(void *address, int len)
#endif
}

#ifdef WIN32
DWORD FindPattern(char *pattern, char *mask)
{
#ifdef WIN32
Expand Down Expand Up @@ -101,7 +102,7 @@ DWORD FindPattern(char *pattern, char *mask)

return NULL;
}

#endif
void GetAddresses()
{
DWORD temp;
Expand Down
2 changes: 2 additions & 0 deletions Hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#define POINTER_TO_MEMBER(m,n,o) temp = n, m = *(o *)&temp

bool Unlock(void *address, int len);
#ifdef WIN32
DWORD FindPattern(char *pattern, char *mask);
#endif
void GetAddresses();
void InstallPreHooks();
void InstallPostHooks();
Expand Down
8 changes: 4 additions & 4 deletions Scripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ static cell AMX_NATIVE_CALL n_IsObjectMaterialSlotUsed( AMX* amx, cell* params )
return pObject->Material[i].byteUsed;
}

// native GetObjectMaterial(objectid, materialindex, &modelid, txdname[], txdnamelen = sizeof(txdname), texturename[], texturenamelen = sizeof(txdnamelen), &materialcolor);
// native GetObjectMaterial(objectid, materialindex, &modelid, txdname[], txdnamelen = sizeof(txdname), texturename[], texturenamelen = sizeof(texturename), &materialcolor);
static cell AMX_NATIVE_CALL n_GetObjectMaterial( AMX* amx, cell* params )
{
// If unknown server version
Expand Down Expand Up @@ -1450,7 +1450,7 @@ static cell AMX_NATIVE_CALL n_GetObjectMaterial( AMX* amx, cell* params )
return 1;
}

// native GetObjectMaterialText(objectid, materialindex, text[], textlen= sizeof(text), &materialsize, fontface[], fontfacelen = sizeof(fontface), &fontsize, &bold, &fontcolor, &backcolor, &textalignment);
// native GetObjectMaterialText(objectid, materialindex, text[], textlen = sizeof(text), &materialsize, fontface[], fontfacelen = sizeof(fontface), &fontsize, &bold, &fontcolor, &backcolor, &textalignment);
static cell AMX_NATIVE_CALL n_GetObjectMaterialText( AMX* amx, cell* params )
{
// If unknown server version
Expand Down Expand Up @@ -1696,7 +1696,7 @@ static cell AMX_NATIVE_CALL n_IsPlayerObjectMaterialSlotUsed( AMX* amx, cell* pa
}


// native GetPlayerObjectMaterial(playerid, objectid, materialindex, &modelid, txdname[], txdnamelen = sizeof(txdname), texturename[], texturenamelen = sizeof(txdnamelen), &materialcolor);
// native GetPlayerObjectMaterial(playerid, objectid, materialindex, &modelid, txdname[], txdnamelen = sizeof(txdname), texturename[], texturenamelen = sizeof(texturename), &materialcolor);
static cell AMX_NATIVE_CALL n_GetPlayerObjectMaterial( AMX* amx, cell* params )
{
// If unknown server version
Expand Down Expand Up @@ -1737,7 +1737,7 @@ static cell AMX_NATIVE_CALL n_GetPlayerObjectMaterial( AMX* amx, cell* params )
return 1;
}

// native GetPlayerObjectMaterialText(playerid, objectid, materialindex, text[], textlen= sizeof(text), &materialsize, fontface[], fontfacelen = sizeof(fontface), &fontsize, &bold, &fontcolor, &backcolor, &textalignment);
// native GetPlayerObjectMaterialText(playerid, objectid, materialindex, text[], textlen = sizeof(text), &materialsize, fontface[], fontfacelen = sizeof(fontface), &fontsize, &bold, &fontcolor, &backcolor, &textalignment);
static cell AMX_NATIVE_CALL n_GetPlayerObjectMaterialText( AMX* amx, cell* params )
{
// If unknown server version
Expand Down
3 changes: 0 additions & 3 deletions main.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
#include "Scripting.h"
#include "CModelSizes.h"

#define MAX_HOUSES 300
#define MAX_HOUSE_ELEMENTS 500

typedef void (* logprintf_t)(char *, ...);
extern logprintf_t logprintf;

Expand Down

0 comments on commit 00af8f5

Please sign in to comment.