Raised This Month: $ Target: $400
 0% 

Global var in Stock


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Crackhead69
Member
Join Date: Feb 2021
Old 05-18-2021 , 05:53   Global var in Stock
Reply With Quote #1

Hello!
How could i put a global in a stock or is it even possible.
I have searched for some time and haven't found information on this
For example:
PHP Code:
#include <amxmodx>

public plugin_init()
    
register_clcmd("say /trigger","SetTargetInfo")
    
public 
GetTarget(id){
    
get_client_info(id20)
}

stock get_client_info(idsomevar[]){
    if(
somevar[id] == 20){
        
client_print(0print_chat"Debug1")
    }

When in this situation the "somevar" is suppose to be global

Last edited by Crackhead69; 05-18-2021 at 06:31.
Crackhead69 is offline
 


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 02:32.


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