View Single Post
  #65  
Old 04-30-2009, 10:18 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Raelyn View Post
Ok, so I put the functions in classes, and uploaded the rest of the main script as a weapon, and this is the errors I got:



So, disableselectweapons and showstats don't work online? And what is callstack overrun?
As far as I know, callstack overrun means you're calling a function too many times, e.g.

PHP Code:
function onCreated() {
  
badLoop();
}
function 
badLoop() {
  
// bad loop stuff here
  
badLoop();

and no ... showstats an disableselectweapons are clientside, which means you need to do this in your system weapons:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
initStats();
}
function 
initStats() {
  
showstats(allstats whatever);
  
disableselectweapons();

though for disableselectweapons, it's better to use "enablefeatures" if you don't plan on ever enabling it.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
initStats();
}
function 
initStats() {
  
showstats(1024);
  
enablefeatures(allfeatures 4);

Here are the rest of the game features:

__________________
Reply With Quote