mirror of
https://github.com/rehlds/reapi.git
synced 2025-01-15 08:08:08 +03:00
Fixed startPercent argument type for native rg_send_bartime2
This commit is contained in:
parent
1a72c8a45c
commit
11ead5d3b6
@ -868,7 +868,7 @@ native rg_send_bartime(const index, const duration, const bool:observer = true);
|
|||||||
*
|
*
|
||||||
* @noreturn
|
* @noreturn
|
||||||
*/
|
*/
|
||||||
native rg_send_bartime2(const index, const duration, const startPercent, const bool:observer = true);
|
native rg_send_bartime2(const index, const duration, const Float:startPercent, const bool:observer = true);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sends the SendAudio message - plays the specified audio.
|
* Sends the SendAudio message - plays the specified audio.
|
||||||
|
@ -2014,7 +2014,7 @@ cell AMX_NATIVE_CALL rg_send_bartime(AMX *amx, cell *params)
|
|||||||
*
|
*
|
||||||
* @noreturn
|
* @noreturn
|
||||||
*
|
*
|
||||||
* native rg_send_bartime2(const index, const duration, const startPercent, const bool:observer = true);
|
* native rg_send_bartime2(const index, const duration, const Float:startPercent, const bool:observer = true);
|
||||||
*/
|
*/
|
||||||
cell AMX_NATIVE_CALL rg_send_bartime2(AMX *amx, cell *params)
|
cell AMX_NATIVE_CALL rg_send_bartime2(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
@ -2024,15 +2024,16 @@ cell AMX_NATIVE_CALL rg_send_bartime2(AMX *amx, cell *params)
|
|||||||
CHECK_CONNECTED(pPlayer, arg_index);
|
CHECK_CONNECTED(pPlayer, arg_index);
|
||||||
|
|
||||||
CAmxArgs args(amx, params);
|
CAmxArgs args(amx, params);
|
||||||
|
float startPercent = args[arg_start_percent];
|
||||||
if (!args[arg_observer]) {
|
if (!args[arg_observer]) {
|
||||||
EMESSAGE_BEGIN(MSG_ONE_UNRELIABLE, gmsgBarTime2, nullptr, pPlayer->edict());
|
EMESSAGE_BEGIN(MSG_ONE_UNRELIABLE, gmsgBarTime2, nullptr, pPlayer->edict());
|
||||||
EWRITE_SHORT(args[arg_time]);
|
EWRITE_SHORT(args[arg_time]);
|
||||||
EWRITE_SHORT(args[arg_start_percent]);
|
EWRITE_SHORT(startPercent);
|
||||||
EMESSAGE_END();
|
EMESSAGE_END();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
pPlayer->CSPlayer()->SetProgressBarTime2(args[arg_time], args[arg_start_percent]);
|
pPlayer->CSPlayer()->SetProgressBarTime2(args[arg_time], startPercent);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user