Author Topic: Can't get more than 1 function in .cs  (Read 2201 times)

Well I want a .cs with all the functions I have made in it, but the problem is when I try I either get a buffer overrun trying to start a mission, or the functions under the top one don't work, I can add them all in a row in the Support_InServCmd.cs but not in my own, halp?

A }; only goes after Datablocks, Packages, etc. Functions use just }.

Syntax errors cause only the functions before the "stop" to work.

I don't have any };'s in it, heres an example (I know it wont work but its an example >.>):

function serverCmdbleh(%this, %client){
     poop.lolplease = 12;
}

function serverCmdblah(%this, %client){
     poop.lolno = 9;
}

function serverCmdbeans(%this, %client){
     poop.lolomg = 200;
}

They are lined like that, but only "bleh" will work.

Syntax errors usually cause buffer overloads, etc, so what does it say in console to do with that file?

Also, make sure you don't have return; outside a script. That aborts file execution and will only make things defined before that work.

poop isnt a variable. You havent put % and you havent listed it in the args.

« Last Edit: June 30, 2007, 04:52:34 AM by VerticalHorizon »

Oh, sorry didnt see that.