Vice Underdogs

Scripting => Scripting Support => Topic started by: Zeke on November 05, 2011, 10:49:55 pm

Title: [SQUIRREL]Local message problem
Post by: Zeke on November 05, 2011, 10:49:55 pm
So since i moved to squirrel ive been having a problem with the local message for my RPG server

The /c l doesnt work wen im ingame and i type it nothing hapenes its like i havent typed nothing.

I have the IsPlayerInRangeOfPoint Function already.
Code: [Select]
function IsPlayerInRangeOfPoint(v1, v2, range) // by Rusty_Bullet22
{
v1.x -= v2.x, v1.y -= v2.y, v1.z -= v2.z;
return ((v1.x * v1.x) + (v1.y * v1.y) + (v1.z * v1.z)) < (range * range);
}

Here is my cmd line.
Code: [Select]
else if ( cmd == "l" || cmd == "local" )
{
LocalMessage(player.Name + " says: " + text, player.Pos, 10);
}

Im a noob in squirrel so i dont know what may be cousing this problem.
Title: Re: [SQUIRREL]Local message problem
Post by: Charley on November 06, 2011, 10:43:55 am
http://liberty-unleashed.co.uk/VCWiki/Scripting/Squirrel/Functions

LocalMessage isn't a function. Unless you've made it. If you have made it, paste that here too.
Title: Re: [SQUIRREL]Local message problem
Post by: Mac on November 06, 2011, 12:20:29 pm
Ye, LocalMessage isn't a function.
there are many other function like ClientMessage, ClientMessageToAll,Message,MessagePlayer, etc.
Title: Re: [SQUIRREL]Local message problem
Post by: Zeke on November 06, 2011, 12:33:25 pm
Nope i dont have a local message function, to tell u rly the a friend gave me the cmd but dint mention anything about a function.

Im gonna start to work on it nao.

EDIT:

Guys i found something interesting that i think may be cousing the problem.

ALL of FBS /c cmds dont work for some reason even wen i download a fresh copy of the script its the same.

All the cmds are like the /c l wen i use them they dont work even on a clean copy.

Only /c register and /c login work.
Title: Re: [SQUIRREL]Local message problem
Post by: stormeus on November 07, 2011, 12:59:49 am
That means there was an error after the register/login commands are declared.
Title: Re: [SQUIRREL]Local message problem
Post by: Zeke on November 07, 2011, 10:43:52 am
That means there was an error after the register/login commands are declared.

Yep, but why does it happen i've never had any problems with FBS before.

Maybe if Force updated it or something script must of bugged  :(


EDIT: Any ideas on how can i fix it?

Im gonna recheck the register/login commands for any unusual crap.