Raised This Month: $ Target: $400
 0% 

[ HELP ] Scripting error.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Banana.
BANNED
Join Date: Oct 2015
Location: Brazil [<o>]
Old 10-11-2015 , 18:48   [ HELP ] Scripting error.
Reply With Quote #1

I am coding with two problems.

1- I'm trying to remove the fakemeta of the zombie_plague but I have a compile error , this is the code:

PHP Code:
// Set the right model
if (get_pcvar_num(cvar_adminmodelshuman) && (get_user_flags(id) & g_access_flag[ACCESS_ADMIN_MODELS]))
{
    
iRand random_num(0ArraySize(model_admin_human) - 1)
    
ArrayGetString(model_admin_humaniRandg_playermodel[id], charsmax(g_playermodel[]))
    if (
g_set_modelindex_offsetfm_cs_set_user_model_index(idArrayGetCell(g_modelindex_admin_humaniRand))


PHP Code:
// Set the right model
if (get_pcvar_num(cvar_adminmodelshuman) && (get_user_flags(id) & g_access_flag[ACCESS_ADMIN_MODELS]))
{
    
iRand random_num(0ArraySize(model_admin_human) - 1)
    
ArrayGetString(model_admin_humaniRandg_playermodel[id], charsmax(g_playermodel[]))
    if (
g_set_modelindex_offsetcs_set_user_model(idArrayGetCell(g_modelindex_admin_humaniRand))

2- I tried this , but I am in error at compile time , the code is this:
PHP Code:
#include < amxmodx >
#include < fun >
#include < cstrike >
#include < fakemeta >
#include < hamsandwich >

#if defined CSCZBOT_SUPPORT
#include < cs_ham_bots_api >
#endif

#include < zombieplague >

#define CSCZBOT_SUPPORT //Uncomment this line to add damage support in CS/CZ bots 
PHP Code:
public plugin_init() 

    
// Hams 
    #if defined CSCZBOT_SUPPORT 
    
RegisterHamBots(Ham_TakeDamage"fw_TakeDamage"
    
#endif 

How to fix?

Last edited by Banana.; 10-11-2015 at 18:49.
Banana. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-11-2015 , 20:00   Re: [ HELP ] Scripting error.
Reply With Quote #2

Quote:
Originally Posted by Banana. View Post
I'm trying to remove the fakemeta
Why would you do that?
__________________
fysiks is offline
Banana.
BANNED
Join Date: Oct 2015
Location: Brazil [<o>]
Old 10-11-2015 , 21:00   Re: [ HELP ] Scripting error.
Reply With Quote #3

For optimize the zombie_plague40 code.
Banana. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-11-2015 , 22:01   Re: [ HELP ] Scripting error.
Reply With Quote #4

Quote:
Originally Posted by Banana. View Post
For optimize the zombie_plague40 code.
And why do you think removing fakemeta is an optimization?
__________________
fysiks is offline
Banana.
BANNED
Join Date: Oct 2015
Location: Brazil [<o>]
Old 10-11-2015 , 22:28   Re: [ HELP ] Scripting error.
Reply With Quote #5

Quote:
Originally Posted by yokomo View Post
I've review current progress on developer build it seems amxmodx has changes too much. You can try it.

For example cstrike module has been updated, you don't need to use any task (delay) to set player model/team. Also you have an option whether to send teaminfo or not. Also cs_set_user_model can use modelindex.. See cstrike.inc for details.

You can also remove all fakemeta stocks and replace it with cstrike/engine natives.. Engine module also been updated...
Banana. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-11-2015 , 23:27   Re: [ HELP ] Scripting error.
Reply With Quote #6

So, you are formerly known as "CrazY." who is banned right now . . .
__________________
fysiks is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-11-2015 , 23:40   Re: [ HELP ] Scripting error.
Reply With Quote #7

Yeah "forget about the past n keep on movin forward" lol


Btw
Code:
#define CSCZBOT_SUPPORT
should be placed before
Code:
if #defined blabla

Last edited by Chihuahuax; 10-11-2015 at 23:43.
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-12-2015 , 00:09   Re: [ HELP ] Scripting error.
Reply With Quote #8

Quote:
Originally Posted by Chihuahuax View Post
Btw
Code:
#define CSCZBOT_SUPPORT
should be placed before
Code:
if #defined blabla
You should probably test code before you post it.
__________________
fysiks is offline
Old 10-12-2015, 21:19
fysiks
This message has been deleted by fysiks. Reason: asdf
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-12-2015 , 00:17   Re: [ HELP ] Scripting error.
Reply With Quote #10

At least thats what I saw on a working plugin

Cant test it bcoz im not with my pc
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Reply



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 22:17.


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