[HELP] runtime error 7: stack underflow - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] runtime error 7: stack underflow (
/showthread.php?tid=591405)
[HELP] runtime error 7: stack underflow -
Luca12 - 11.10.2015
Hello. So crashdetect says that there is runtime error 7: stack underflow in this public
Quote:
forward OdvozTimer();
public OdvozTimer()
{
for(new i; i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(OdvozT[i] > 0)
{
OdvozT[i] -= 1;
if(OdvozT[i] == 0)
{
SendClientMessage(i,SVIJETLOPLAVA,"Hello!");
}
}
}
}
return 1;
}
|
Re: [HELP] runtime error 7: stack underflow -
AbyssMorgan - 11.10.2015
Oh my God, use the indentation
PHP код:
forward OdvozTimer();
public OdvozTimer(){
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
if(OdvozT[i] > 0){
OdvozT[i] -= 1;
if(OdvozT[i] == 0){
SendClientMessage(i,SVIJETLOPLAVA,"Hello!");
}
}
}
}
return 1;
}
show
PHP код:
#define SVIJETLOPLAVA
Re: [HELP] runtime error 7: stack underflow -
Luca12 - 11.10.2015
Quote:
Originally Posted by AbyssMorgan
Oh my God, use the indentation
PHP код:
forward OdvozTimer();
public OdvozTimer(){
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
if(OdvozT[i] > 0){
OdvozT[i] -= 1;
if(OdvozT[i] == 0){
SendClientMessage(i,SVIJETLOPLAVA,"Hello!");
}
}
}
}
return 1;
}
show
PHP код:
#define SVIJETLOPLAVA
|
that is fine its lightblue color I don't think so that is this problem something else in the code is wrong. Also I want to mention when I compile gamemode I get no errors it's clean compile. Thanks
Re: [HELP] runtime error 7: stack underflow -
AbyssMorgan - 11.10.2015
nothing in the code is wrong, show definitions
PHP код:
#define SVIJETLOPLAVA
Re: [HELP] runtime error 7: stack underflow -
Luca12 - 11.10.2015
It's not that I check that already. But here you go:
#define SVIJETLOPLAVA 0x33CCFFAA
Re: [HELP] runtime error 7: stack underflow -
AbyssMorgan - 11.10.2015
There is no error in the code
you have so:
new OdvozT[MAX_PLAYERS];
Re: [HELP] runtime error 7: stack underflow -
Crayder - 11.10.2015
Where is OdvozT set?