AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Help / Support Problem Copile (https://forums.alliedmods.net/showthread.php?t=168695)

ESPADONGAMING 10-02-2011 18:11

Problem Copile
 
Error copile...

PHP Code:

new g_isconnected[33// whether player is connected

#define is_user_valid_connected(%1) (1 <= %1 <= g_maxplayers && g_isconnected[%1]) 

PHP Code:

// Temporarily save player stats?
    
if (get_pcvar_num(cvar_statssave))
    {
        static 
idteam
        
for (id 1id <= g_maxplayersid++)
        {
            
// Not connected
            
if (!is_user_valid_connected(id)) // here's the problem
                
continue;
            
            
team =  cs_get_user_team(id)
            
            
// Not playing
            
if (team == FM_CS_TEAM_SPECTATOR || team == FM_CS_TEAM_UNASSIGNED)
                continue;
            
            
save_stats(id)
        }
    } 

[IMG]http://img132.**************/img132/9899/chighcs.png[/IMG]

ESPADONGAMING 10-03-2011 02:45

Re: Problem Copile
 
help...?

ESPADONGAMING 10-03-2011 07:42

Re: Problem Copile
 
solved...
new error :D

PHP Code:

// Reward ammo packs
        
if (!g_survivor[attacker] || !get_pcvar_num(cvar_survignoreammo))
        || (
g_hero[attacker] || !get_pcvar_num(cvar_heroignoreammo)) 

Error: Invalid expression, assumed zero on line 2308

artos 10-03-2011 09:22

Re: Problem Copile
 
Quote:

Originally Posted by ESPADONGAMING (Post 1567563)
solved...
new error :D

PHP Code:

// Reward ammo packs
        
if (!g_survivor[attacker] || !get_pcvar_num(cvar_survignoreammo))
        || (
g_hero[attacker] || !get_pcvar_num(cvar_heroignoreammo)) 

Error: Invalid expression, assumed zero on line 2308

Replace with:

PHP Code:

if (!g_survivor[attacker] || !get_pcvar_num(cvar_survignoreammo) || g_hero[attacker] || !get_pcvar_num(cvar_heroignoreammo)) 


abdul-rehman 10-03-2011 10:22

Re: Problem Copile
 
Wrong section, post in scripting help.

Dolph_Ziggler 10-03-2011 13:00

Re: Problem Copile
 
Quote:

Originally Posted by abdul-rehman (Post 1567657)
Wrong section, post in scripting help.

what the diffrence between Help / Support and Scripting / Help ???? , thei are the same

abdul-rehman 10-03-2011 13:41

Re: Problem Copile
 
Quote:

Originally Posted by Dolph_Ziggler (Post 1567734)
what the diffrence between Help / Support and Scripting / Help ???? , thei are the same

Help/Support is ragarding help in configuring the mod it self, installing sub-plugins etc, Scripting help is for help regarding your own piece of code you may be working on.

ESPADONGAMING 10-03-2011 16:09

Re: Problem Copile
 
thx,:)


All times are GMT -4. The time now is 12:20.

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