AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error Message (https://forums.alliedmods.net/showthread.php?t=184130)

Randomize 05-01-2012 08:58

Error Message
 
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?

claudiuhks 05-01-2012 09:22

Re: Error Message
 
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" );



CryWolf 05-01-2012 09:32

Re: Error Message
 
<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 :-?

claudiuhks 05-01-2012 09:34

Re: Error Message
 
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.

Exolent[jNr] 05-01-2012 09:41

Re: Error Message
 
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.

Randomize 05-01-2012 09:44

Re: Error Message
 
So what should i do with this code?

claudiuhks 05-01-2012 09:45

Re: Error Message
 
Quote:

Originally Posted by Randomize (Post 1699890)
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.

Randomize 05-01-2012 09:47

Re: Error Message
 
okay i understand


All times are GMT -4. The time now is 07:47.

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