March 29, 2024, 06:50:32 am

Author Topic: [SQUIRREL]Local message problem  (Read 1983 times)

0 Members and 1 Guest are viewing this topic.

Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
[SQUIRREL]Local message problem
« 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.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

Charley

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 4749
  • Country: 00
    • View Profile
Re: [SQUIRREL]Local message problem
« Reply #1 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.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Writer of excessively long posts


Mac

  • Guest
Re: [SQUIRREL]Local message problem
« Reply #2 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.
Cannot rate own posts


Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: [SQUIRREL]Local message problem
« Reply #3 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.
« Last Edit: November 06, 2011, 02:08:31 pm by Zeke »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

stormeus

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 1755
  • Country: us
  • VC:MP Developer
    • View Profile
    • GTA VICE CITY Respective owner
Re: [SQUIRREL]Local message problem
« Reply #4 on: November 07, 2011, 12:59:49 am »
That means there was an error after the register/login commands are declared.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

<krystianoo> stormeus do good job
<krystianoo> with recent update
<krystianoo> if not agree; jeb yourself in head
<Avenger> yesterday you said death to stormeus
<karan> double standard krystianoo
<karan> he called him fake prophet too
<krystianoo> sure fake prophet
<krystianoo> but with recent updates real

Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: [SQUIRREL]Local message problem
« Reply #5 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.
« Last Edit: November 11, 2011, 08:10:40 pm by Zeke »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light