multiple syntax updates to adjust for 1.11.0.6946 SM build

This commit is contained in:
jenz
2023-08-29 18:11:52 +02:00
parent 69f859f2ea
commit c00a625910
6 changed files with 195 additions and 15 deletions
+5 -3
View File
@@ -55,7 +55,8 @@ public void OnPluginEnd()
public Action OnRoundEnd(Handle event, const char[] name, bool dontBroadcast)
{
perform_resets();
perform_resets();
return Plugin_Handled;
}
public void Event_RoundStart(Handle event, const char[] name, bool dontBroadcast)
@@ -77,7 +78,8 @@ public void perform_resets()
public Action reset_round_switch(Handle timer, any data)
{
round_switch = false;
round_switch = false;
return Plugin_Handled;
}
stock bool IsValidClient(int client)
@@ -212,7 +214,7 @@ public Action update_mimic_coords(Handle timer, any data)
return Plugin_Continue;
}
public float get_power_distance(int target_player, float [3]pos)
public float get_power_distance(int target_player, float pos[3])
{
float vec[3];
GetClientAbsOrigin(target_player, vec);
+6 -5
View File
@@ -202,7 +202,7 @@ enum SocketOption {
*/
typeset SocketConnectCB
{
function void(Handle socket, any arg);
function void(Handle socket, int arg);
};
/**
@@ -218,7 +218,7 @@ typeset SocketConnectCB
*/
typeset SocketIncomingCB
{
function void(Handle socket, Handle newSocket, const char remoteIP[], char remotePort, any arg);
function void(Handle socket, Handle newSocket, const char remoteIP[64], char remotePort, any arg);
};
/**
@@ -237,7 +237,7 @@ typeset SocketIncomingCB
*/
typeset SocketReceiveCB
{
function void(Handle socket, const char receiveData[], const int dataSize, any arg);
function void(Handle socket, char receiveData[3500], int dataSize, int arg);
};
/**
@@ -263,7 +263,7 @@ typeset SocketSendqueueEmptyCB
*/
typeset SocketDisconnectCB
{
function void(Handle socket, any arg);
function void(Handle socket, int arg);
};
/**
@@ -333,7 +333,8 @@ native bool SocketBind(Handle socket, const char[] hostname, char port);
* @param cell_t port The port to connect to.
* @noreturn
*/
native void SocketConnect(Handle socket, SocketConnectCB cfunc, SocketReceiveCB rfunc, SocketDisconnectCB dfunc, const char[] hostname, char port);
//native void SocketConnect(Handle socket, SocketConnectCB cfunc, SocketReceiveCB rfunc, SocketDisconnectCB dfunc, char[] hostname , int port);
native void SocketConnect(Handle socket, SocketConnectCB cfunc, SocketReceiveCB rfunc, SocketDisconnectCB dfunc, char[] hostname, char port);
/**
* Disconnects a socket