Raised This Month: $12 Target: $400
 3% 

Solved Get Variable Address, Is it possible?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ABCDEFGH23
Junior Member
Join Date: Jun 2020
Location: HEEELP!!!
Old 10-07-2020 , 02:36   Get Variable Address, Is it possible?
Reply With Quote #1

PHP Code:
#include <sourcemod>
#include <sdktools>

Handle hTest;

public 
void OnPluginStart(){

Handle Config LoadGameConfigFile("config");

StartPrepSDKCall(SDKCall_Static);
PrepSDKCall_SetFromConf(ConfigSDKConf_Signature"ABCDEFG");
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
hTest EndPrepSDKCall();

CloseHandle(Config);

RegConsoleCmd("GetAddress"getaddress);

}

public 
Action getaddress(int clientint args){
int var1[3];
SDKCall(hTest, &var1);
PrintToConsole(client"%d"var1[0]+var1[1]+var1[2]);
return 
Plugin_Handled;


Last edited by ABCDEFGH23; 10-07-2020 at 21:03.
ABCDEFGH23 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-07-2020 , 04:02   Re: Get Variable Address, Is it possible?
Reply With Quote #2

Your example is nonsensical and it would be easier to help you with a concrete function you want to call.

The general answer to your title question is no, but obviously SDKCall needs to be able to support that sort of calls - look at the SDKType and SDKPass enums.
__________________
asherkin is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode