Posts: 1,018
Threads: 320
Joined: Jul 2010
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;
}
|
Posts: 1,208
Threads: 36
Joined: Apr 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
Posts: 1,018
Threads: 320
Joined: Jul 2010
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
Posts: 1,208
Threads: 36
Joined: Apr 2015
nothing in the code is wrong, show definitions
PHP код:
#define SVIJETLOPLAVA
Posts: 1,018
Threads: 320
Joined: Jul 2010
It's not that I check that already. But here you go:
#define SVIJETLOPLAVA 0x33CCFFAA
Posts: 1,208
Threads: 36
Joined: Apr 2015
There is no error in the code
you have so:
new OdvozT[MAX_PLAYERS];
Posts: 3,324
Threads: 96
Joined: Sep 2013