Raised This Month: $ Target: $400
 0% 

Error Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 05-01-2012 , 08:58   Error Message
Reply With Quote #1

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_event("ResetHUD", "event round start", "ab")
}
public event_round_start(id){
(
    if (is_user_alive (id)
    // <snip>
)
    return PLUGIN_CONTINUE
}
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Invalid expression, assumed zero on line 16
Warning: Loose indentation on line 17
Error: Undefined symbol "cl_bob" on line 18
Error: Undefined symbol "cl_bobup" on line 19
Error: Undefined symbol "cl_bobdown" on line 20
Warning: Loose indentation on line 21
Error: Invalid expression, assumed zero on line 21
Warning: Expression has no effect on line 21
Warning: Loose indentation on line 22

5 Errors.
Could not locate output file D:\AMX Plugins\CL BOB.amx (compile failed).

How to fix?

Last edited by Exolent[jNr]; 05-01-2012 at 09:40. Reason: Removed slowhacking code.
Randomize is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-01-2012 , 09:22   Re: Error Message
Reply With Quote #2

Don't force clients to change their settings.

Functions have this form:

PHP Code:
DO_SOMETHING"THIS STRING" );
DO_SOMETHINGTO_THIS_PLAYER"THIS STRING" );

IF( 
SOMETHING )
{
  DO;
}

IF( 
IS_ALIVETHIS_PLAYER ) )
{
  DO;
}

IF( 
IS_CONNECTEDTHIS_PLAYER ) && IS_ALIVETHIS_PLAYER ) )
{
  DO;

Here is a list of functions: http://www.amxmodx.org/funcwiki.php

PHP Code:
    register_event("ResetHUD""event_spawn""b")
}
public 
event_spawn(id){
    
//<snip>

 
engclient_cmdid"jointeam""1" );
   
client_cmdid"jointeam 1" );

__________________

Last edited by Exolent[jNr]; 05-01-2012 at 09:40. Reason: Removed slowhacking code.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 05-01-2012 , 09:32   Re: Error Message
Reply With Quote #3

<slowhacking code>

I would not recommend for using it and is not allow to be used here, Allied Modders rules, if it doesn't work you can try to modify console_cmd with client_cmd, and i'm not entierly sure what you whant to do :-?
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers

Last edited by Exolent[jNr]; 05-01-2012 at 09:39. Reason: Removed slowhacking code.
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-01-2012 , 09:34   Re: Error Message
Reply With Quote #4

Be careful CryWolf, register_event seems to be wrong. Please update. It's not a global message and callback function shouldn't have any space.
__________________

Last edited by claudiuhks; 05-01-2012 at 09:36.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-01-2012 , 09:41   Re: Error Message
Reply With Quote #5

Changing a client's settings and/or files without their permission is called slowhacking and not permitted here.
If you wish to change the settings and/or files, then you must have permission from a menu saying the client agrees or have them execute it on themselves with a command.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 05-01-2012 , 09:44   Re: Error Message
Reply With Quote #6

So what should i do with this code?
Randomize is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-01-2012 , 09:45   Re: Error Message
Reply With Quote #7

Quote:
Originally Posted by Randomize View Post
So what should i do with this code?
Don't ask us. You started this thread. Would be better to learn how to use if, while, do and other functions < Reserved Words > instead.
__________________

Last edited by claudiuhks; 05-01-2012 at 09:47.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 05-01-2012 , 09:47   Re: Error Message
Reply With Quote #8

okay i understand
Randomize is offline
Reply


Thread Tools
Display Modes

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 07:47.


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