Raised This Month: $32 Target: $400
 8% 

Help | Cache Cache Plugin Game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Narcos
Junior Member
Join Date: Nov 2017
Location: Germany
Old 12-11-2017 , 06:18   Help | Cache Cache Plugin Game
Reply With Quote #1

I Have Error On This Plugin

Cache Cache

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

new msgScreenFade;
new 
maxplayers;
new 
bool:is_hide;
new 
bool:is_hide_after;
new 
Float:user_speed[33];
new 
MsgSync;

public 
plugin_init() {
    
register_plugin("Cache Cache""1.0""XAmPer")
    
register_logevent("round_end"2"1=Round_End");
    
register_clcmd("say /cache""clcmd_hide", -1"", -1);
    
register_event("HLTV""event_round_start""a""1=0""2=0");
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1);
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage"0);
    
register_message(get_user_msgid("CurWeapon"), "message_cur_weapon");
    
msgScreenFade get_user_msgid("ScreenFade");
    
maxplayers get_maxplayers();
    
MsgSync CreateHudSyncObj(0);
}

public 
event_round_start()
{
    
remove_task(30000);
    
RemoveLimit();
    
is_hide_after false;
    
precache_sound("Jeux/Cache.mp3");
}
public 
message_cur_weapon(msg_idmsg_destmsg_entity)
{
    if (!
is_hide || !is_user_alive(msg_entity) || fm_cs_get_user_team(msg_entity) == 2)
    {
        return 
0;
    }
    
set_pev(msg_entitypev_maxspeed1.00);
    return 
0;
}

public 
fw_PlayerSpawn_Post(id)
{
    if (!
is_hide || !is_user_alive(id) || fm_cs_get_user_team(id) == 2)
    {
        return 
0;
    }
    
SetLimit(id);
    return 
0;
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
attacker != victim && !is_user_connected(attacker))
    {
        return 
1;
    }
    if (
is_hide && fm_cs_get_user_team(attacker) == 2)
    {
        return 
4;
    }
    if ((
is_hide_after || is_hide) && (fm_cs_get_user_team(attacker) == && GetCountAliveT() > 1))
    {
        return 
4;
    }
    return 
1;
}

public 
clcmd_hide(idlevelcid)
{
    if (
cs_get_user_team(id0) == && !is_user_alive(id))
    {
        return 
1;
    }
    if (
is_hide)
    {
        return 
1;
    }
    static 
i;
    
1;
    while (
<= maxplayers)
    {
        if (!
is_user_alive(i) || fm_cs_get_user_team(i) == 2)
        {
        }
        else
        {
            
SetLimit(i);
        }
        
+= 1;
    }
    
set_task(float(60), "RemoveLimit"300000);
    
is_hide 1;
    
HudLeft();
    return 
1;
}

public 
round_end()
{
    
RemoveLimit();
    return 
0;
}

public 
Freeze()
{
    static 
i;
    
1;
    while (
<= maxplayers)
    {
        if (!
is_user_alive(i) || fm_cs_get_user_team(i) == 1)
        {
        }
        else
        {
            
pev(ipev_maxspeeduser_speed[i]);
            
set_pev(ipev_maxspeed1.00);
        }
        
+= 1;
    }
    return 
0;
}

SetLimit(id)
{
    
message_begin(MSG_ONEmsgScreenFade1112id);
    
write_short(4096);
    
write_short(256);
    
write_short(1);
    
write_byte(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
message_end();
    
pev(idpev_maxspeeduser_speed[id]);
    
set_pev(idpev_maxspeed1.00);
    
set_task(0.80"DelayFade"id""0""0);
    return 
0;
}

RemoveFade(id)
{
    
message_begin(MSG_ONEmsgScreenFade1112id);
    
write_short(4096);
    
write_short(256);
    
write_short(2);
    
write_byte(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
message_end();
    
set_pev(idpev_maxspeeduser_speed[id]);
    return 
0;
}

public 
DelayFade(id)
{
    
message_begin(MSG_ONEmsgScreenFade1112id);
    
write_short(1);
    
write_short(1);
    
write_short(4);
    
write_byte(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
message_end();
    return 
0;
}

public 
RemoveLimit()
{
    !!! 
Removed Phi
    
static i;
    
1;
    while (
<= maxplayers)
    {
        if (!
is_user_alive(i) || fm_cs_get_user_team(i) == 2)
        {
        }
        else
        {
            
RemoveFade(i);
        }
        
+= 1;
    }
    
is_hide 0;
    
is_hide_after 1;
    return 
0;
}

public 
HudLeft()
{
    static 
show_time;
    if (!
is_hide)
    {
        if (
is_hide_after)
        {
            
set_hudmessage(025500.350.2006.005.000.000.00, -1);
            
show_hudmessage(0"We're Going To Look ! Beware, The Prisoners !");
        }
        
show_time 0;
        return 
0;
    }
    if (!
show_time)
    {
        
show_time 60;
    }
    
set_hudmessage(025500.310.1006.001.100.000.00, -1);
    
show_time += -1;
    
ShowSyncHudMsg(0MsgSync"Playing Cache Cache !^nThe Prisoners Have %d Seconds To Hide !"show_time);
    
set_task(1.00"HudLeft"0""0""0);
    return 
0;
}

fm_cs_get_user_team(id)
{
    return 
get_pdata_int(id1145);
}

GetCountAliveT()
{
    static 
count;
    static 
i;
    
1;
    
count 0;
    while (
<= maxplayers)
    {
        if (
is_user_alive(i) && fm_cs_get_user_team(i) == 1)
        {
            
count += 1;
            
+= 1;
        }
        
+= 1;
    }
    return 
count;

Please I Need Help This Plugin Game "Cache Cache"
Narcos is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-11-2017 , 08:16   Re: Help | Cache Cache Plugin Game
Reply With Quote #2

Have you ever thought about sharing the error with us?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Narcos
Junior Member
Join Date: Nov 2017
Location: Germany
Old 12-11-2017 , 12:38   Re: Help | Cache Cache Plugin Game
Reply With Quote #3

I Need Help In This Plugin
I Have Error
Narcos is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-11-2017 , 12:53   Re: Help | Cache Cache Plugin Game
Reply With Quote #4

What is the error? And it`s Catch not cache
__________________
retired chump

Last edited by DjSoftero; 12-11-2017 at 12:54.
DjSoftero is offline
Narcos
Junior Member
Join Date: Nov 2017
Location: Germany
Old 12-12-2017 , 06:04   Re: Help | Cache Cache Plugin Game
Reply With Quote #5

# Error :

PHP Code:
Cache.sma(38) : error 017undefined symbol "set_pev"
Cache.sma(38) : warning 215expression has no effect
Cache
.sma(38) : error 001expected token";"but found ")"
Cache.sma(38) : error 029invalid expressionassumed zero
Cache
.sma(38) : fatal error 107too many error messages on one line

Compilation aborted
.
4 Errors
Narcos is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-12-2017 , 06:49   Re: Help | Cache Cache Plugin Game
Reply With Quote #6

#include <fakemeta>
klippy is offline
Narcos
Junior Member
Join Date: Nov 2017
Location: Germany
Old 12-12-2017 , 12:59   Re: Help | Cache Cache Plugin Game
Reply With Quote #7

Other Error

# Plugin
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>

new msgScreenFade;
new 
maxplayers;
new 
bool:is_hide;
new 
bool:is_hide_after;
new 
Float:user_speed[33];
new 
MsgSync;

public 
plugin_init() {
    
register_plugin("Cache Cache""1.0""XAmPer")
    
register_logevent("round_end"2"1=Round_End");
    
register_clcmd("say /cache""clcmd_hide", -1"", -1);
    
register_event("HLTV""event_round_start""a""1=0""2=0");
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1);
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage"0);
    
register_message(get_user_msgid("CurWeapon"), "message_cur_weapon");
    
msgScreenFade get_user_msgid("ScreenFade");
    
maxplayers get_maxplayers();
    
MsgSync CreateHudSyncObj(0);
}

public 
event_round_start()
{
    
remove_task(30000);
    
RemoveLimit();
    
is_hide_after false;
    
precache_sound("Jeux/Cache.mp3");
}
public 
message_cur_weapon(msg_idmsg_destmsg_entity)
{
    if (!
is_hide || !is_user_alive(msg_entity) || fm_cs_get_user_team(msg_entity) == 2)
    {
        return 
0;
    }
    
set_pev(msg_entitypev_maxspeed1.00);
    return 
0;
}

public 
fw_PlayerSpawn_Post(id)
{
    if (!
is_hide || !is_user_alive(id) || fm_cs_get_user_team(id) == 2)
    {
        return 
0;
    }
    
SetLimit(id);
    return 
0;
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
attacker != victim && !is_user_connected(attacker))
    {
        return 
1;
    }
    if (
is_hide && fm_cs_get_user_team(attacker) == 2)
    {
        return 
4;
    }
    if ((
is_hide_after || is_hide) && (fm_cs_get_user_team(attacker) == && GetCountAliveT() > 1))
    {
        return 
4;
    }
    return 
1;
}

public 
clcmd_hide(idlevelcid)
{
    if (
cs_get_user_team(id) == CS_TEAM_CT && !is_user_alive(id))
    {
        return 
1;
    }
    if (
is_hide)
    {
        return 
1;
    }
    static 
i;
    
1;
    while (
<= maxplayers)
    {
        if (!
is_user_alive(i) || fm_cs_get_user_team(i) == CS_TEAM_CT)
        {
        }
        else
        {
            
SetLimit(i);
        }
        
+= 1;
    }
    
set_task(float(60), "RemoveLimit"3000);
    
is_hide true;
    
HudLeft();
    return 
1;
}

public 
round_end()
{
    
RemoveLimit();
    return 
0;
}

public 
Freeze()
{
    static 
i;
    
1;
    while (
<= maxplayers)
    {
        if (!
is_user_alive(i) || fm_cs_get_user_team(i) == CS_TEAM_T)
        {
        }
        else
        {
            
pev(ipev_maxspeeduser_speed[i]);
            
set_pev(ipev_maxspeed1.00);
        }
        
+= 1;
    }
    return 
0;
}

SetLimit(id)
{
    
message_begin(MSG_ONEmsgScreenFade1112id);
    
write_short(4096);
    
write_short(256);
    
write_short(1);
    
write_byte(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
message_end();
    
pev(idpev_maxspeeduser_speed[id]);
    
set_pev(idpev_maxspeed1.00);
    
set_task(0.80"DelayFade"id00);
    return 
0;
}

RemoveFade(id)
{
    
message_begin(MSG_ONEmsgScreenFade1112id);
    
write_short(4096);
    
write_short(256);
    
write_short(2);
    
write_byte(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
message_end();
    
set_pev(idpev_maxspeeduser_speed[id]);
    return 
0;
}

public 
DelayFade(id)
{
    
message_begin(MSG_ONEmsgScreenFade1112id);
    
write_short(1);
    
write_short(1);
    
write_short(4);
    
write_byte(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
message_end();
    return 
0;
}

public 
RemoveLimit()
{
    static 
i;
    
1;
    while (
<= maxplayers)
    {
        if (!
is_user_alive(i) || fm_cs_get_user_team(i) == 2)
        {
        }
        else
        {
            
RemoveFade(i);
        }
        
+= 1;
    }
    
is_hide 0;
    
is_hide_after 1;
    return 
0;
}

public 
HudLeft()
{
    static 
show_time;
    if (!
is_hide)
    {
        if (
is_hide_after)
        {
            
set_hudmessage(025500.350.2006.005.000.000.00, -1);
            
show_hudmessage(0"We're Going To Look ! Beware, The Prisoners !");
        }
        
show_time 0;
        return 
0;
    }
    if (!
show_time)
    {
        
show_time 60;
    }
    
set_hudmessage(025500.310.1006.001.100.000.00, -1);
    
show_time += -1;
    
ShowSyncHudMsg(0MsgSync"Playing Cache Cache !^nThe Prisoners Have %d Seconds To Hide !"show_time);
    
set_task(1.00"HudLeft"0""0""0);
    return 
0;
}

fm_cs_get_user_team(id)
{
    return 
get_pdata_int(id1145);
}

GetCountAliveT()
{
    static 
count;
    static 
i;
    
1;
    
count 0;
    while (
<= maxplayers)
    {
        if (
is_user_alive(i) && fm_cs_get_user_team(i) == 1)
        {
            
count += 1;
            
+= 1;
        }
        
+= 1;
    }
    return 
count;

# Error :

PHP Code:
ache.sma(85) : warning 213tag mismatch
Cache
.sma(112) : warning 213tag mismatch
Cache
.sma(127) : error 035argument type mismatch (argument 3)
Cache.sma(138) : error 035argument type mismatch (argument 4)
Cache.sma(144) : error 035argument type mismatch (argument 3)
Cache.sma(159) : error 035argument type mismatch (argument 3)
Cache.sma(173 -- 174) : error 088number of arguments does not match definition
Cache
.sma(187) : warning 213tag mismatch
Cache
.sma(188) : warning 213tag mismatch

6 Errors
.
Compile failed
Narcos is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-12-2017 , 13:29   Re: Help | Cache Cache Plugin Game
Reply With Quote #8

PHP Code:
while (<= maxplayers)
    {
        if (!
is_user_alive(i) || fm_cs_get_user_team(i) == CS_TEAM_CT)
        {
        }
        else
        {
            
SetLimit(i);
        }
        
+= 1;
    } 
Blank functions everywhere !?
__________________
edon1337 is offline
Reply


Thread Tools
Display Modes

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:24.


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