mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
Update natives
This commit is contained in:
parent
fb5e657fc3
commit
a6f0af27c0
@ -1631,29 +1631,29 @@ public int Native_PauseTimer(Handle handler, int numParams)
|
||||
PauseTimer(client);
|
||||
}
|
||||
|
||||
public int Native_GetTimeOffset(Handle handler, int numParams)
|
||||
public any Native_GetTimeOffset(Handle handler, int numParams)
|
||||
{
|
||||
int client = GetNativeCell(1);
|
||||
int zonetype = GetNativeCell(2);
|
||||
|
||||
if(zonetype < 1)
|
||||
if(zonetype > 1)
|
||||
{
|
||||
return 0;
|
||||
return ThrowNativeError(32, "ZoneType is out of bounds");
|
||||
}
|
||||
return view_as<int>(gA_Timers[client].fOffset[zonetype]);
|
||||
return gA_Timers[client].fOffset[zonetype];
|
||||
}
|
||||
|
||||
public int Native_GetTimeOffsetDistance(Handle handler, int numParams)
|
||||
public any Native_GetTimeOffsetDistance(Handle handler, int numParams)
|
||||
{
|
||||
int client = GetNativeCell(1);
|
||||
int zonetype = GetNativeCell(2);
|
||||
|
||||
if(zonetype < 1)
|
||||
if(zonetype > 1)
|
||||
{
|
||||
return 0;
|
||||
return ThrowNativeError(32, "ZoneType is out of bounds");
|
||||
}
|
||||
|
||||
return view_as<int>(gA_Timers[client].fOffsetDistance[zonetype]);
|
||||
return gA_Timers[client].fOffsetDistance[zonetype];
|
||||
}
|
||||
|
||||
public int Native_ResumeTimer(Handle handler, int numParams)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user