Raised This Month: $ Target: $400
 0% 

Take the sum of a variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 12-26-2020 , 12:41   Re: Take the sum of a variable
Reply With Quote #4

Quote:
Originally Posted by Dragos View Post
What do you mean?
Can you show a example?
You asked a question in the "scripting help" area, keep in mind that if you don't know how to code you should post in the "suggestions / request" area.

PHP Code:
/* Sublime AMXX Editor v4.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
// #include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0.0-8"
#define AUTHOR  "Author"

new GlobalVariable[32]
new 
GlobalVariable2

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /test""Func")
}

public 
FirstFunc()
{
    switch(
random_num(02))
    {
        case 
0
        {
            
formatex(GlobalVariablecharsmax(GlobalVariable), "Hello World")
            
GlobalVariable2 0
        
}
        case 
1
        {
            
formatex(GlobalVariablecharsmax(GlobalVariable), "Hey wazzup")
            
GlobalVariable2 1
        
}
        case 
2
        {
            
formatex(GlobalVariablecharsmax(GlobalVariable), "BZZZ ERROR")
            
GlobalVariable2 2
        
}
    }
}

public 
Func(id)
{
    
FirstFunc()
    
client_print(id3"VariableString = %s | VariableInt = %i"GlobalVariableGlobalVariable2)
    return 
PLUGIN_HANDLED

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
 



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 14:06.


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