|
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
|

10-14-2009
, 14:47
Re: Problems at Compiling
|
#1
|
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(id, OverrideTimer)
{
//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(255, 255, 0, -1.0, 0.35, 0, 6.0, 10.0, 1.0, 1.0);
//Show Message
new szPlayerName[32];
get_user_name(id, szPlayerName, 32);
show_hudmessage(0, "Oh My God, All CT's Run %s Got the Colt!", szPlayerName);
}
else
{
set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
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.
|
|