AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   bug registering fullupdate cmd ? (https://forums.alliedmods.net/showthread.php?t=60530)

ConnorMcLeod 09-06-2007 05:50

bug registering fullupdate cmd ?
 
Hi,

When i register fullupdate cmd in a plugin, cvars or cmds that i register below seem to not exist.
Have you ever got the same problem or do i something wrong ?

ex :
This works fine
Code:
cvar = register_cvar("amx_cvar","1")     register_clcmd("say /test","cmdtest")     register_clcmd("fullupdate", "fullupdateCmd")

But with this code, cvar amx_cvar and cmd test don't exist !!!
Code:
    register_clcmd("fullupdate", "fullupdateCmd")     cvar = register_cvar("amx_cvar","1")     register_clcmd("say /test","cmdtest")


fullupdateCmd is :
Code:
public clcmd_fullupdate() {     return PLUGIN_HANDLED_MAIN }

purple_pixie 09-06-2007 09:08

Re: bug registering fullupdate cmd ?
 
Try it with
Code:
public fullupdatecmd()
Or change the register to
Code:
register_clcmd("fullupdate","clcmd_fullupdate")
...

Might work a tad better.

ConnorMcLeod 09-06-2007 09:12

Re: bug registering fullupdate cmd ?
 
OMG i didn't noticed that !!

purple_pixie 09-06-2007 09:13

Re: bug registering fullupdate cmd ?
 
I only got it because I had debug enabled on the plugin I pasted it into.

It's not obvious, don't worry ^^

Arkshine 09-06-2007 09:13

Re: bug registering fullupdate cmd ?
 
Quote:

Originally Posted by connorr (Post 527894)
OMG i didn't noticed that !!

Bouh, honte sur toi. :mrgreen:

ConnorMcLeod 09-06-2007 09:35

Re: bug registering fullupdate cmd ?
 
Hou punaise :oops::shock::oops:


All times are GMT -4. The time now is 16:03.

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