Quote:
Originally Posted by Raelyn
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:
