View Single Post
Author Message
ABCDEFGH23
Junior Member
Join Date: Jun 2020
Location: HEEELP!!!
Old 10-07-2020 , 03: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 22:03.
ABCDEFGH23 is offline