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

Stack went below stack boundary


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Min2liz
AlliedModders Donor
Join Date: Feb 2008
Location: Street
Old 08-17-2018 , 06:47   Stack went below stack boundary
Reply With Quote #1

Hello guys,

i'm just confused and completely lost. Tried to google it, but without any luck, and can't solve this issue.

So, I get this error:

Code:
Exception reported: Stack went below stack boundary
With these Lines:
  • 432 (sdktools_sound.inc::EmitSoundToClient)
  • 951 (gungame.sp::gg_PlaySound)

So mine gg_PlaySound function:

PHP Code:

public void gg_PlaySound(int teamchar[] sound) {
    for (
int client 1client <= MaxClientsclient++) {
        if (
IsValidPlayer(client) && gg_IsValidTeam(team) && GetClientTeam(client) == team) {
            
PrintToChatAll("Team: %i Sound: %s",teamsound);
            
EmitSoundToClient(client,sound,SOUND_FROM_PLAYER,SNDCHAN_AUTO,SNDLEVEL_NORMAL,SND_NOFLAGS,SNDVOL_NORMAL,SNDPITCH_NORMAL,-1,NULL_VECTOR,NULL_VECTOR,true,0.0);  
        }
    }  

I tried EmitSoundToClient(client,sound) and with full EmitSoundToClient function parameters, nothing helps.

PrintToChatAll returns me: (int) 2 and (string) "hlx/gg_levelup.mp3", sounds are precached.

In fact, i have no idea whats wrong here and how need to solve. Maybe I missing something, but spet 2 days for now and can't figure out.

EDIT: I pass arguments to mine function like this:

Quote:
gg_PlaySound(EnemyTeam,SOUND_TAKEN_LEAD);
Where:

EnemyTeam is CS_TEAM_T or CS_TEAM_CT,
char SOUND_TAKEN_LEAD[] = "hlx/gg_taken_lead.mp3";

Last edited by Min2liz; 08-17-2018 at 06:50.
Min2liz is offline
Reply



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 12:43.


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