AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Why's nothing happening ? (https://forums.alliedmods.net/showthread.php?t=307373)

instinctpt1 05-07-2018 10:23

Why's nothing happening ?
 
PHP Code:

public CS_OnBuyiditem )
{
   
client_print(idprint_chat"Func Called.., Weapon : %d"item)


No Output .. ? :shock:
I even tried CS_onBuyAttempt bt same story there too ..

Natsheh 05-07-2018 11:03

Re: Why nothing happening ?
 
Are you using amx 183?

Make sure the cstrike module is running

instinctpt1 05-07-2018 11:48

Re: Why nothing happening ?
 
Yes 183 and module is running

Black Rose 05-07-2018 12:06

Re: Why nothing happening ?
 
If something is not working it could be anything. Most likely some issue with your plugin which you chose not to attach, so are we just gonna guess? What answer did you expect really?

Here's the cold reality, if you don't want to share your code, fix it yourself.

instinctpt1 05-07-2018 12:20

Re: Why nothing happening ?
 
Black Rose .. theres no plugin i was about to use this func for another plugin ..
But when i saw my another plugin not working bcoz of this forward, i thought to test it separately

Just include amx, cstrike, register plugin thats my test plugin ... Now this must print on BUY but nothings happening :3

Black Rose 05-07-2018 12:25

Re: Why nothing happening ?
 
I'm sorry, I don't have, and I won't upgrade to 1.8.3 until it's more used than 1.8.2.

Make sure that both AMXX and the cstrike module (and prefferably all other modules) is 1.8.3, I'm not sure exactly which build this was implemented in but if you're unsure, upgrade them all to the latest.

instinctpt1 05-07-2018 12:32

Re: Why nothing happening ?
 
Actually i m already running 1.8.3 5154 ( LATEST )
- Ok NP Black Rose i will wait for a 183 user to come up and tell me whts happening wrong :)

Natsheh 05-07-2018 12:48

Re: Why nothing happening ?
 
Could you attach the plugin so i could test and give a feedback

instinctpt1 05-07-2018 12:55

Re: Why nothing happening ?
 
As i said i m just testing this as a test plugin
PHP Code:

#include <amxmodx>
#include <cstrike>

public plugin_init()
    
register_plugin("TEST BUY""1.0""-")

public 
CS_OnBuyAttempt(iditem)
    
client_print_color(id0"^4You are Buying")

public 
CS_OnBuy(iditem)
    
client_print_color(id0"^4You Bought"


OciXCrom 05-07-2018 13:28

Re: Why nothing happening ?
 
Then you're clearly not running the latest 1.8.3 dev build.


All times are GMT -4. The time now is 23:42.

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