Raised This Month: $ Target: $400
 0% 

Change the natives?


Post New Thread Closed Thread   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-07-2013 , 15:51   Re: Change the natives?
#11

There are not even 34 lines on the code you posted...

I'm done with this, good luck.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 09-07-2013 , 15:53   Re: Change the natives?
#12

Quote:
Originally Posted by ConnorMcLeod View Post
Check line 34, don't be stupid, paste/attach whole code + include files if you want someone being able to help you in any way.

When you want to make your car being repaired, you don't only bring the wheel at garage.
Quote:
Originally Posted by ConnorMcLeod View Post
There are not even 34 lines on the code you posted...

I'm done with this, good luck.
PHP Code:
///// If you no need theses no more - DELETE /////

/*native hnsxp_get_user_xp(client);
 
native hnsxp_set_user_xp(client, xp);
 
stock hnsxp_add_user_xp(client, xp)
{
        return hnsxp_set_user_xp(client, hnsxp_get_user_xp(client) + xp);
}
 
stock hnsxp_sub_user_xp(client, xp)
{
        return hnsxp_set_user_xp(client, hnsxp_get_user_xp(client) - xp);
}*/

///// If you no need theses no more - DELETE /////

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <pointmod>

#pragma semicolon 1
 
#define PLUGIN_NAME                             "SK"
#define PLUGIN_VERSION                          "1.0"
#define PLUGIN_AUTHOR                           ""
#define PLUGIN_PREFIX                           "SK"
 
new const g_blank[] =                           "";
new const 
g_a[] =                               "a";
new const 
g_b[] =                               "b";
 
new const 
g_block_classname[] =                 "BM_Block";
new const 
g_start_classname[] =                 "BM_TeleportStart";
new const 
g_destination_classname[] =           "BM_TeleportDestination";
new const 
g_light_classname[] =                 "BM_Light";
 
new const 
g_model_platform[] =                  "models/SweKungHns/Normal/SK_Platformen.mdl";
new const 
g_model_bunnyhop[] =                  "models/SweKungHns/Normal/SK_Bhop.mdl";
new const 
g_model_damage[] =                    "models/SweKungHns/Normal/SK_Damage.mdl";
new const 
g_model_healer[] =                    "models/SweKungHns/Normal/SK_Healer.mdl";
new const 
g_model_no_fall_damage[] =            "models/SweKungHns/Normal/SK_NoFallDamage.mdl";
new const 
g_model_ice[] =                       "models/SweKungHns/Normal/SK_Ice.mdl";
new const 
g_model_trampoline[] =                        "models/SweKungHns/Normal/SK_Trampoline.mdl";
new const 
g_model_speed_boost[] =               "models/SweKungHns/Normal/SK_SpeedBoost.mdl";
new const 
g_model_death[] =                     "models/SweKungHns/Normal/SK_Death.mdl";
new const 
g_model_low_gravity[] =               "models/SweKungHns/Normal/SK_LowGravity.mdl";
new const 
g_model_slap[] =                      "models/SweKungHns/Normal/SK_Slap.mdl";
new const 
g_model_honey[] =                     "models/SweKungHns/Normal/SK_Honey.mdl";
new const 
g_model_ct_barrier[] =                        "models/SweKungHns/Normal/SK_CTBarrier.mdl";
new const 
g_model_t_barrier[] =                 "models/SweKungHns/Normal/SK_TBarrier.mdl";
new const 
g_model_glass[] =                     "models/SweKungHns/Normal/SK_Glass.mdl";
new const 
g_model_no_slow_down_bunnyhop[] =     "models/SweKungHns/Normal/SK_NoSlowDown.mdl";
new const 
g_model_delayed_bunnyhop[] =          "models/SweKungHns/Normal/SK_Delay.mdl";
new const 
g_model_invincibility[] =             "models/SweKungHns/Normal/SK_Invincibility.mdl";
new const 
g_model_stealth[] =                   "models/SweKungHns/Normal/SK_Stealth.mdl";
new const 
g_model_boots_of_speed[] =            "models/SweKungHns/Normal/SK_BootsOfSpeed.mdl";
new const 
g_model_superman[] =                   "models/SweKungHns/Normal/SK_SuperMan.mdl";
new const 
g_model_deagle[] =                     "models/SweKungHns/Normal/SK_Deagle.mdl";
new const 
g_model_nades[] =                      "models/SweKungHns/Normal/SK_Nades.mdl";
new const 
g_model_pistols[] =                    "models/SweKungHns/Normal/SK_Platform3.mdl";
new const 
g_model_rifles[] =                     "models/SweKungHns/Normal/SK_Rifles.mdl";
new const 
g_model_point[] =                                  "models/SweKungHns/Normal/SK_Point.mdl";
new const 
g_model_blindtrap[] =                    "models/SweKungHns/Normal/SK_Blind.mdl";
new const 
g_model_moneygiver[] =                   "models/SweKungHns/Normal/SK_Exp.mdl";
new const 
g_model_awp[] =                           "models/SweKungHns/Normal/SK_Awp.mdl";
new const 
g_model_duck[] =                       "models/SweKungHns/Normal/SK_Duck.mdl";
new const 
g_model_poison[] =                       "models/SweKungHns/Normal/SK_Potion.mdl";
new const 
g_model_antidote[] =                     "models/SweKungHns/Normal/SK_Platform8.mdl";
new const 
g_model_suffer[] =                       "models/SweKungHns/Normal/SK_Platform9.mdl";
new const 
g_model_he_grenade[] =                         "models/SweKungHns/Normal/SK_Nades.mdl";
new const 
g_model_flashbang[] =                  "models/SweKungHns/Normal/SK_Nades.mdl";
new const 
g_model_smoke_grenade[] =              "models/SweKungHns/Normal/SK_Nades.mdl";
new const 
g_model_armor[] =                        "models/SweKungHns/Normal/SK_Platform.mdl";
new const 
g_model_quake[] =                        "models/SweKungHns/Normal/SK_Slap.mdl";
new const 
g_model_shotgun[] =                      "models/SweKungHns/Normal/SK_Shotgun.mdl";
new const 
g_model_camouflage[] =                        "models/SweKungHns/Normal/SK_Camouflage.mdl";
new const 
g_model_music[] =                     "models/SweKungHns/Normal/SK_Music.mdl";
new const 
g_model_weapon_block[] =              "models/SweKungHns/Normal/SK_Weapon.mdl";
 
new const 
g_sprite_light[] =                    "sprites/SweKungHns/LightMaker.spr";
 
new const 
g_sprite_teleport_start[] =           "models/SweKungHns/Misc/SK_TeleportStart.spr";
new const 
g_sprite_teleport_destination[] =     "models/SweKungHns/Misc/SK_TeleportEnd.spr";
 
new const 
g_sound_invincibility[] =             "warcraft3/divineshield.wav";
new const 
g_sound_stealth[] =                   "warcraft3/levelupcaster.wav";
new const 
g_sound_boots_of_speed[] =            "warcraft3/purgetarget1.wav";
new const 
g_sound_superman[] =                   "warcraft3/superman.wav";
new const 
g_sound_pointblock[] =                    "warcraft3/pointblock.wav";
new const 
g_sound_money[] =                     "warcraft3/purgetarget1.wav";
new const 
g_sound_camouflage[] =                        "warcraft3/camouflage.wav";
new const 
g_sound_healer[] =                    "warcraft3/heal.wav";
 
new const 
g_szWeaponNames[][] =
{
        
"weapon_p228",
        
"weapon_scout",              
        
"weapon_hegrenade",              
        
"weapon_xm1014",                  
        
"weapon_mac10",            
        
"weapon_aug",
        
"weapon_smokegrenade",            
        
"weapon_elite",          
        
"weapon_fiveseven",
        
"weapon_ump45",              
        
"weapon_sg550",
        
"weapon_galil",  
        
"weapon_famas",
        
"weapon_usp",  
        
"weapon_glock18",  
        
"weapon_awp",  
        
"weapon_mp5navy",    
        
"weapon_m249",            
        
"weapon_m3",  
        
"weapon_m4a1",                
        
"weapon_tmp",      
        
"weapon_g3sg1",    
        
"weapon_flashbang",            
        
"weapon_deagle",
        
"weapon_sg552",
        
"weapon_ak47",                    
        
"weapon_p90"
}; 

Here is the beginning of the code...
__________________
JailBreak & HNS
MrKiller2010 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-07-2013 , 19:06   Re: Change the natives?
#13

Compiles fine...
__________________
Black Rose is offline
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 09-08-2013 , 05:06   Re: Change the natives?
#14

Quote:
Originally Posted by Black Rose View Post
Compiles fine...
But it doesn't with the rest of the code,, ;S
__________________
JailBreak & HNS
MrKiller2010 is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 09-08-2013 , 05:13   Re: Change the natives?
#15

then post all code so we can help you.
JusTGo is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-08-2013 , 06:48   Re: Change the natives?
#16

Fine, if you don't want to share the full code at least do this.
1. Compile it.
2. Post all errors here.
3. Post all lines that contains the errors and include one line above and one line below.
4. If the line contains a variable, post the line which declares it.
5. Be sure to comment which line is which.
I can't guarantee success, but I'll try my best.
__________________

Last edited by Black Rose; 09-08-2013 at 06:48.
Black Rose is offline
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 09-08-2013 , 07:19   Re: Change the natives?
#17

Quote:
Originally Posted by Black Rose View Post
Fine, if you don't want to share the full code at least do this.
1. Compile it.
2. Post all errors here.
3. Post all lines that contains the errors and include one line above and one line below.
4. If the line contains a variable, post the line which declares it.
5. Be sure to comment which line is which.
I can't guarantee success, but I'll try my best.
Code:
Error: Expected token: ";", but found "new" on line 35
1 Error.
Line 35:
PHP Code:
new const g_blank[] =                           ""

Where it uses g_blank:

PHP Code:
        command =                               "CmdGrab";
        
register_clcmd("+bmGrab",               command,                -1g_blank);
        
register_clcmd("+bmGrab",               command,                -1g_blank);
       
        
command =                               "CmdRelease";
        
register_clcmd("-bmGrab",               command,                -1g_blank);
        
register_clcmd("-bmGrab",               command,                -1g_blank); 
PHP Code:
RegisterSayCmd(const command[], const handle[])
{
        static 
temp[64];
       
        
register_clcmd(commandhandle, -1g_blank);
       
        
formatex(tempcharsmax(temp), "say /bm"command);
        
register_clcmd(temphandle, -1g_blank);
       
        
formatex(tempcharsmax(temp), "say_team /bm"command);
        
register_clcmd(temphandle, -1g_blank);

and so on....
__________________
JailBreak & HNS
MrKiller2010 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-08-2013 , 07:23   Re: Change the natives?
#18

Just attach the damn plugin if you want help.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-08-2013 , 08:57   Re: Change the natives?
#19

Code:
Error: Expected token: ";", but found "new" on line 35
This is a typical error on line 34. It's expecting ";" but instead it find a new line reading "new ..."
The code you provided is unable to produce this error.

The easiest solution because you don't share the code is to remove "#pragma semicolon 1".
__________________
Black Rose is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-08-2013 , 11:02   Re: Change the natives?
#20

You make us loose time, you have been asked numerous times to post whole code, you doesn't seem to understand, thread closed.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Closed Thread



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 19:09.


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