Raised This Month: $ Target: $400
 0% 

Problems at Compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ray
Junior Member
Join Date: Oct 2009
Location: Germany
Old 10-14-2009 , 13:48   Re: Problems at Compiling
Reply With Quote #1

I tried to do like mickee did here http://forums.alliedmods.net/showthr...t=86907&page=3
Attached Files
File Type: sma Get Plugin or Get Source (blockmaker_v4.01.sma - 509 views - 177.7 KB)

Last edited by Ray; 10-14-2009 at 14:42.
Ray is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-14-2009 , 14:47   Re: Problems at Compiling
Reply With Quote #2

PHP Code:
new const gszBlockNames[gBlockMax][32] =
{
    
"Platform",
    
"Bunnyhop",
    
"Damage",
    
"Healer",
    
"No Fall Damage",
    
"Ice",
    
"Trampoline",
    
"Speed Boost",
    
"Invincibility",
    
"Stealth",
    
"Death",
    
"Camouflage",
    
"Low Gravity",
    
"Fire",
    
"Slap",
    
"Random",
    
"Honey",
    
"CT Barrier",
    
"T Barrier",
    
"Boots Of Speed",
    
"Glass",
    
"Bunnyhop (No slow down)",
    
"Trampolin(High)",
    
"Trampolin(Low)",
    
"HE Grenade",
    
"Duckjump",
    
"Frostnade",
    
"Flashbang",
    
"Delayed Bhop",
    
"Money Block",
    
"Deagle",
    
"Awp",
    
"Superman",
    
"Blind trap (Delay)",
    
"Blind trap (No Delay)",
    
"Shotgun",
    
"Super Heal",
    
"Super Honey",
    
"Colt",
    
"You need something here"
}; 
PHP Code:
actionColt(idOverrideTimer

    
//get game time 
    
new Float:fTime halflife_time(); 
  
    
//make sure player is alive 
    
if (fTime >= gfDeagleNextUse[33] || OverrideTimer && cs_get_user_team(id) == CS_TEAM_T
    { 
        
give_item(id"weapon_m4a1"); 
        
cs_set_weapon_ammo(find_ent_by_owner(-1"weapon_m4a1"id), 3); 
         
        
//set the time when the player can use the nuke again (someone might have been invincible) 
        
gfDeagleNextUse[33] = fTime get_cvar_float("bm_coltcooldown"); 
         
         
//setup hud message to show who nuked what team 
        
set_hudmessage(2552550, -1.00.3506.010.01.01.0); 

        
//Show Message 
        
new szPlayerName[32]; 
        
get_user_name(idszPlayerName32); 
         
        
show_hudmessage(0"Oh My God, All CT's Run %s Got the Colt!"szPlayerName); 
    } 
    else 
    { 
        
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel); 
        
show_hudmessage(id"COLT NEXT USE AFTER 1 ROUND"gfDeagleNextUse[33] - fTime); 
    } 

gfDeagleNextUse is never defined (as the error clearly says). Also, you input an index of 33 but it should be id. This will show up again on line 2348.
__________________

Last edited by fysiks; 10-14-2009 at 14:50.
fysiks is offline
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:45.


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