Raised This Month: $64 Target: $400
 16% 

How to fix these errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
2389736818
Member
Join Date: Jul 2014
Location: China
Old 11-10-2018 , 21: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:	16
Size:	31.7 KB
ID:	172221  
__________________

Last edited by 2389736818; 11-10-2018 at 21:32.
2389736818 is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 11-10-2018 , 21:51   Re: How to fix these errors
Reply With Quote #2

public Action RetrieveWaveSettings(int wave, int client, int args, int event) has four parameters. RetrieveWaveSettings(g_iWave) is only passing one.
Fyren 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 21:39.


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