AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   problem with pcvar (https://forums.alliedmods.net/showthread.php?t=74767)

Nepopus 07-24-2008 16:03

problem with pcvar
 
full code is pretty big, if u want to see it go to http://forums.alliedmods.net/showthread.php?t=74581

doesnt work
Quote:

public client_putinserver(id) {

if(msg_hide != 0)
return PLUGIN_CONTINUE
works
Quote:

public client_putinserver(id) {

log_amx("msg_hide = %d", msg_hide)

if(msg_hide != 0)
return PLUGIN_CONTINUE
what the hell :\

P.S. i got error from example 1, and i did test with log_amx like as example 2, but with this line all works fine

Exolent[jNr] 07-24-2008 16:07

Re: problem with pcvar
 
I don't understand.
Show your full code.

Nepopus 07-24-2008 16:08

Re: problem with pcvar
 
Quote:

Originally Posted by X-olent (Post 658019)
I don't understand.
Show your full code.

http://forums.alliedmods.net/showthread.php?t=74581

hleV 07-24-2008 16:08

Re: problem with pcvar
 
PHP Code:

public client_putinserver(id)
{
        if (!
msg_hide// Or if (!get_pcvar_num(msg_hide)), I didn't really understand what you gave us
                
return PLUGIN_HANDLED
 
        log_amx
("msg_hide = %d"msg_hide)



Nepopus 07-24-2008 16:10

Re: problem with pcvar
 
Quote:

Originally Posted by hleV (Post 658021)
PHP Code:

public client_putinserver(id)
{
        if (!
get_pcvar_num(msg_hide))
                return 
PLUGIN_HANDLED
 
        log_amx
("msg_hide = %d"msg_hide)



i dont need log_amx, i did it for testing, but with this works fine
u can see full code from link above, i commented this error("//")

Nepopus 07-24-2008 16:54

Re: problem with pcvar
 
em.. now works fine :\ dunno what was it, anyway thanks


All times are GMT -4. The time now is 05:40.

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