Vice Underdogs
Scripting => Scripting Support => Topic started 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.
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.
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.
-
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.
-
Ye, LocalMessage isn't a function.
there are many other function like ClientMessage, ClientMessageToAll,Message,MessagePlayer, etc.
-
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.
-
That means there was an error after the register/login commands are declared.
-
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.