code cleanup on the casino parts

This commit is contained in:
Lorenc Pekaj 2018-09-16 16:49:26 +10:00
parent 1c2b4236be
commit 3f47179dba
5 changed files with 12 additions and 13 deletions

View File

@ -17,6 +17,14 @@
#define CLASS_FIREMAN ( 2 ) #define CLASS_FIREMAN ( 2 )
#define CLASS_MEDIC ( 3 ) #define CLASS_MEDIC ( 3 )
/* ** Constants ** */
const
Float: default_X = -2242.152,
Float: default_Y = 759.0619,
Float: default_Z = 30.0,
Float: default_Angle = 0.0
;
/* ** Variables ** */ /* ** Variables ** */
stock const CLASS_NAMES [ ] [ ] = { "Civilian", "Police", "FBI", "Army", "CIA", "Paramedic", "Fireman" }; stock const CLASS_NAMES [ ] [ ] = { "Civilian", "Police", "FBI", "Army", "CIA", "Paramedic", "Fireman" };
stock const CLASS_COLORS [ ] = { 0xC0C0C0FF, 0x3E7EFFFF, 0x0035FFFF, 0x954BFFFF, 0x191970FF, 0x4DFF4DFF, 0xA83434FF }; stock const CLASS_COLORS [ ] = { 0xC0C0C0FF, 0x3E7EFFFF, 0x0035FFFF, 0x954BFFFF, 0x191970FF, 0x4DFF4DFF, 0xA83434FF };

View File

@ -733,8 +733,6 @@ stock initializeBlackjackTextdraws( id )
TextDrawUseBox( g_blackjackPlayerCards[ id ] [ c ] [ p ], 1 ); TextDrawUseBox( g_blackjackPlayerCards[ id ] [ c ] [ p ], 1 );
TextDrawBoxColor( g_blackjackPlayerCards[ id ] [ c ] [ p ], 255 ); TextDrawBoxColor( g_blackjackPlayerCards[ id ] [ c ] [ p ], 255 );
TextDrawTextSize( g_blackjackPlayerCards[ id ] [ c ] [ p ], 22.000000, 37.000000 ); TextDrawTextSize( g_blackjackPlayerCards[ id ] [ c ] [ p ], 22.000000, 37.000000 );
printf("%d", _:g_blackjackPlayerCards[ id ] [ c ] [ p ]);
} }
} }

View File

@ -102,8 +102,8 @@ new
g_rouletteTableData [ MAX_ROULETTE_TABLES ] [ E_ROULETTE_DATA ], g_rouletteTableData [ MAX_ROULETTE_TABLES ] [ E_ROULETTE_DATA ],
Iterator: roulettetables < MAX_ROULETTE_TABLES >, Iterator: roulettetables < MAX_ROULETTE_TABLES >,
Text: g_rouletteNumberBG [ MAX_ROULETTE_TABLES ], Text: g_rouletteNumberBG [ MAX_ROULETTE_TABLES ],
Text: g_rouletteNumberTD [ MAX_ROULETTE_TABLES ], Text: g_rouletteNumberTD [ MAX_ROULETTE_TABLES ],
g_rouletteChipColor [ MAX_PLAYERS ], g_rouletteChipColor [ MAX_PLAYERS ],
g_rouletteChip [ MAX_PLAYERS ] [ 2 ] [ sizeof( g_rouletteOffsets ) ], g_rouletteChip [ MAX_PLAYERS ] [ 2 ] [ sizeof( g_rouletteOffsets ) ],

View File

@ -643,6 +643,7 @@ hook OnPlayerConnect( playerid )
return Y_HOOKS_CONTINUE_RETURN_1; return Y_HOOKS_CONTINUE_RETURN_1;
} }
/* ** Hooked Functions ** */ /* ** Hooked Functions ** */
/*stock Text: TD_TextDrawCreate( Float: x, Float: y, text[ ] ) /*stock Text: TD_TextDrawCreate( Float: x, Float: y, text[ ] )
{ {

View File

@ -16,7 +16,7 @@
#pragma option -d3 #pragma option -d3
#pragma dynamic 7200000 #pragma dynamic 7200000
//#define DEBUG_MODE #define DEBUG_MODE
#if defined DEBUG_MODE #if defined DEBUG_MODE
#pragma option -d3 #pragma option -d3
@ -79,7 +79,6 @@ new bool: False = false;
#define IsPlayerLorenc(%0) (p_AccountID[%0]==1) #define IsPlayerLorenc(%0) (p_AccountID[%0]==1)
#define Achievement:: ach_ #define Achievement:: ach_
#define UpdateWoodStockObject() (format(szNormalString,32,"%d Logs Ready",g_LogsInStock),SetDynamicObjectMaterialText(g_LogCountObject,0,szNormalString,130,"Arial",0,1,-1,0,1)) #define UpdateWoodStockObject() (format(szNormalString,32,"%d Logs Ready",g_LogsInStock),SetDynamicObjectMaterialText(g_LogCountObject,0,szNormalString,130,"Arial",0,1,-1,0,1))
#define replacePercentageSymbol(%0) strreplacechar(szString,'%','#')
#define IsPlayerInEntrance(%0,%1) (p_LastEnteredEntrance[%0]==(%1)) #define IsPlayerInEntrance(%0,%1) (p_LastEnteredEntrance[%0]==(%1))
#define IsPlayerInPlayerGang(%0,%1) (p_Class[%0] == p_Class[%1] && p_Class[%0] == CLASS_CIVILIAN && p_GangID[%0] == p_GangID[%1] && p_GangID[%0] != INVALID_GANG_ID) #define IsPlayerInPlayerGang(%0,%1) (p_Class[%0] == p_Class[%1] && p_Class[%0] == CLASS_CIVILIAN && p_GangID[%0] == p_GangID[%1] && p_GangID[%0] != INVALID_GANG_ID)
#define IsPlayerNpcEx(%0) (IsPlayerNPC(%0) || strmatch(p_PlayerIP[%0], "127.0.0.1")) #define IsPlayerNpcEx(%0) (IsPlayerNPC(%0) || strmatch(p_PlayerIP[%0], "127.0.0.1"))
@ -124,13 +123,6 @@ new bool: False = false;
#define VW_SHAMAL 220 #define VW_SHAMAL 220
const
Float: default_X = -2242.152,
Float: default_Y = 759.0619,
Float: default_Z = 30.0,
Float: default_Angle = 0.0
;
/* ** Donation System ** */ /* ** Donation System ** */
#define szRedemptionSalt "7resta#ecacakumedeM=yespawr!d@et" #define szRedemptionSalt "7resta#ecacakumedeM=yespawr!d@et"
enum E_DONATION_DATA enum E_DONATION_DATA