Raised This Month: $ Target: $400
 0% 

Global var in Stock


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-18-2021 , 07:33   Re: Global var in Stock
Reply With Quote #2

As long as you make it global, you can use it anywhere

PHP Code:
#include <amxmodx>

new somevar[33]

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")
    }

__________________
My plugin:

Last edited by Celena Luna; 05-18-2021 at 07:33.
Celena Luna is offline
 



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