fix compiling with latest sourcemod

This commit is contained in:
BotoX 2018-08-08 01:10:41 +02:00
parent ec05ea8524
commit 3385d96b54
4 changed files with 26 additions and 26 deletions

View File

@ -31,7 +31,7 @@ if __name__ == "__main__":
OutDir = "plugins" OutDir = "plugins"
OutPath = os.path.join(OutDir, os.path.splitext(os.path.basename(SourcePath))[0] + ".smx") OutPath = os.path.join(OutDir, os.path.splitext(os.path.basename(SourcePath))[0] + ".smx")
Compiler = [SPCOMP, "-i" + SM_INCLUDES] Compiler = [SPCOMP, "-i" + SM_INCLUDES, "-i" + "include"]
if os.path.isdir(IncludePath): if os.path.isdir(IncludePath):
Compiler.append("-i" + IncludePath) Compiler.append("-i" + IncludePath)
Compiler.append(SourcePath) Compiler.append(SourcePath)

View File

@ -28,7 +28,7 @@ if __name__ == "__main__":
OutDir = "plugins" OutDir = "plugins"
OutPath = os.path.join(OutDir, os.path.splitext(os.path.basename(SourcePath))[0] + ".smx") OutPath = os.path.join(OutDir, os.path.splitext(os.path.basename(SourcePath))[0] + ".smx")
Compiler = [SPCOMP, "-i" + SM_INCLUDES] Compiler = [SPCOMP, "-i" + SM_INCLUDES, "-i" + "include"]
if os.path.isdir(IncludePath): if os.path.isdir(IncludePath):
Compiler.append("-i" + IncludePath) Compiler.append("-i" + IncludePath)
Compiler.append(SourcePath) Compiler.append(SourcePath)

View File

@ -203,25 +203,25 @@ native bool:SteamWorks_SetHTTPRequestNetworkActivityTimeout(Handle:hHandle, time
native bool:SteamWorks_SetHTTPRequestHeaderValue(Handle:hHandle, const String:sName[], const String:sValue[]); native bool:SteamWorks_SetHTTPRequestHeaderValue(Handle:hHandle, const String:sName[], const String:sValue[]);
native bool:SteamWorks_SetHTTPRequestGetOrPostParameter(Handle:hHandle, const String:sName[], const String:sValue[]); native bool:SteamWorks_SetHTTPRequestGetOrPostParameter(Handle:hHandle, const String:sName[], const String:sValue[]);
funcenum SteamWorksHTTPRequestCompleted typeset SteamWorksHTTPRequestCompleted
{ {
public(Handle:hRequest, bool:bFailure, bool:bRequestSuccessful, EHTTPStatusCode:eStatusCode), function int (Handle hRequest, bool bFailure, bool bRequestSuccessful, EHTTPStatusCode eStatusCode);
public(Handle:hRequest, bool:bFailure, bool:bRequestSuccessful, EHTTPStatusCode:eStatusCode, any:data1), function int (Handle hRequest, bool bFailure, bool bRequestSuccessful, EHTTPStatusCode eStatusCode, any data1);
public(Handle:hRequest, bool:bFailure, bool:bRequestSuccessful, EHTTPStatusCode:eStatusCode, any:data1, any:data2) function int (Handle hRequest, bool bFailure, bool bRequestSuccessful, EHTTPStatusCode eStatusCode, any data1, any data2);
}; };
funcenum SteamWorksHTTPHeadersReceived typeset SteamWorksHTTPHeadersReceived
{ {
public(Handle:hRequest, bool:bFailure), function int (Handle hRequest, bool bFailure);
public(Handle:hRequest, bool:bFailure, any:data1), function int (Handle hRequest, bool bFailure, any data1);
public(Handle:hRequest, bool:bFailure, any:data1, any:data2) function int (Handle hRequest, bool bFailure, any data1, any data2);
}; };
funcenum SteamWorksHTTPDataReceived typeset SteamWorksHTTPDataReceived
{ {
public(Handle:hRequest, bool:bFailure, offset, bytesreceived), function int (Handle hRequest, bool bFailure, int offset, int bytesreceived);
public(Handle:hRequest, bool:bFailure, offset, bytesreceived, any:data1), function int (Handle hRequest, bool bFailure, int offset, int bytesreceived, any data1);
public(Handle:hRequest, bool:bFailure, offset, bytesreceived, any:data1, any:data2) function int (Handle hRequest, bool bFailure, int offset, int bytesreceived, any data1, any data2);
}; };
native bool:SteamWorks_SetHTTPCallbacks(Handle:hHandle, SteamWorksHTTPRequestCompleted:fCompleted = INVALID_FUNCTION, SteamWorksHTTPHeadersReceived:fHeaders = INVALID_FUNCTION, SteamWorksHTTPDataReceived:fData = INVALID_FUNCTION, Handle:hCalling = INVALID_HANDLE); native bool:SteamWorks_SetHTTPCallbacks(Handle:hHandle, SteamWorksHTTPRequestCompleted:fCompleted = INVALID_FUNCTION, SteamWorksHTTPHeadersReceived:fHeaders = INVALID_FUNCTION, SteamWorksHTTPDataReceived:fData = INVALID_FUNCTION, Handle:hCalling = INVALID_HANDLE);
@ -237,11 +237,11 @@ native bool:SteamWorks_GetHTTPStreamingResponseBodyData(Handle:hRequest, cOffset
native bool:SteamWorks_GetHTTPDownloadProgressPct(Handle:hRequest, &Float:percent); native bool:SteamWorks_GetHTTPDownloadProgressPct(Handle:hRequest, &Float:percent);
native bool:SteamWorks_SetHTTPRequestRawPostBody(Handle:hRequest, const String:sContentType[], const String:sBody[], bodylen); native bool:SteamWorks_SetHTTPRequestRawPostBody(Handle:hRequest, const String:sContentType[], const String:sBody[], bodylen);
funcenum SteamWorksHTTPBodyCallback typeset SteamWorksHTTPBodyCallback
{ {
public(const String:sData[]), function int (const char[] sData);
public(const String:sData[], any:value), function int (const char[] sData, any value);
public(const data[], any:value, datalen) function int (const int[] data, any value, int datalen);
}; };
native bool:SteamWorks_GetHTTPResponseBodyCallback(Handle:hRequest, SteamWorksHTTPBodyCallback:fCallback, any:data = 0, Handle:hPlugin = INVALID_HANDLE); native bool:SteamWorks_GetHTTPResponseBodyCallback(Handle:hRequest, SteamWorksHTTPBodyCallback:fCallback, any:data = 0, Handle:hPlugin = INVALID_HANDLE);

View File

@ -422,14 +422,14 @@ native NativeVotes_Cancel();
* @param item_votes Array of vote vote counts. Parallel with item_indexes. * @param item_votes Array of vote vote counts. Parallel with item_indexes.
* @noreturn * @noreturn
*/ */
functag public NativeVotes_VoteHandler(Handle:vote, typedef NativeVotes_VoteHandler = function int (Handle vote,
num_votes, int num_votes,
num_clients, int num_clients,
const client_indexes[], const int[] client_indexes,
const client_votes[], const int[] client_votes,
num_items, int num_items,
const item_indexes[], const int[] item_indexes,
const item_votes[]); const int[] item_votes);
/** /**
* Function to convert client/vote arrays into their two-dimensional versions, * Function to convert client/vote arrays into their two-dimensional versions,
* which can then be passed to a standard vote handler. * which can then be passed to a standard vote handler.