Raised This Month: $51 Target: $400
 12% 

How to fix these errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
2389736818
Member
Join Date: Jul 2014
Location: China
Old 11-10-2018 , 20:28   How to fix these errors
Reply With Quote #1

Code:
PHP Code:
//----------------------------------------------------------------------------------------------------
// Purpose: 
//----------------------------------------------------------------------------------------------------
public Action RetrieveWaveSettings(int waveint clientint argsint event)
{
    
int attacker GetClientOfUserId(GetEventInt(event"attacker"));
    if(!
attacker || !g_damage[attacker]) // si no hay atacante no se sigue con el codigo
    
    
int clientzm GetClientOfUserId(GetEventInt(event"userid"));
    
int restante GetClientHealth(clientzm);
    
//decl String:input[512];
    
char input[512];
    
int size 512;
    
char[] input = new char[size];
    
    
Handle l_hWave INVALID_HANDLE;
    
l_hWave OpenFile(g_cPathsWaveSettings"r");
    if (
l_hWave == INVALID_HANDLErestante 0)
    {
        
int damage GetEventInt(event"dmg_health");
        
CreateDefaultWave();
        
delete l_hWave;
        return 
Plugin_Handled;
    }
    
PrintHintText("%t""WAVE"wavedamageclientzmrestante);
    
LoadWave(wave);
    
delete l_hWave;
    return 
Plugin_Handled;
    for(
int clientzm 1clientzm <= MaxClientsclientzm)
    {
        if(
IsClientInGame(clientzm))
        {
            
g_damage[clientzm] = true;
        }
    }
    
g_damage[clientzm] = true;

''840'' in here
PHP Code:
    RetrieveWaveSettings(g_iWave); 
PHP Code:
//----------------------------------------------------------------------------------------------------
// Purpose: 
//----------------------------------------------------------------------------------------------------
public void Event_roundStart(Handle event, const char[] namebool dontBroadcast)
{
    
int l_iHumanPlayers;
    
g_bRoundInProgress false;
    
g_bSwitchingIndex true;
    
CreateTimer(g_fSwitchingTimerTimer_switchingModelINVALID_HANDLE);
    
RetrieveWaveSettings(g_iWave);
    for (
int i 1<= MaxClientsi++)
    {
        if (
IsValidClient(i) && !IsClientSourceTV(i))
        {
            if (
IsFakeClient(i))
            {
                
SelectWaveBasedZM(i0);
            }
            else if (
GetClientTeam(i) > CS_TEAM_SPECTATOR)
            {
                
g_iClientRespawnCount[i] = g_iClientRespawnCountNum;
                
SelectWavebasedHuman(i);
                
l_iHumanPlayers++;
            }
        }
    }
    if (
l_iHumanPlayers 1)
        
ServerCommand("bot_kick");

Attached Thumbnails
Click image for larger version

Name:	error2-min.png
Views:	105
Size:	31.7 KB
ID:	172221  
__________________

Last edited by 2389736818; 11-10-2018 at 20:32.
2389736818 is offline
 



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 23:32.


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