k wtf commands half way work now?? [message #468826] |
Sat, 09 June 2012 12:53 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
So I put all my commands into the new source and put the updated scripts.dll in my server loaded it up to test, and it works half way.
When you do !bind it give's you the message like it should, but it doesn't show that you typed !bind???
Am I missing something here?
bool SSGMGameManager::ChatHook(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
{
if (VehicleOwnership)
{
GameObject *obj = Get_GameObj(PlayerID);
if (wcsistr(Message,L"!bind") == Message)
{
Bind_Vehicle(obj);
return false;
}
if (wcsistr(Message,L"!lock") == Message)
{
Lock_Vehicle(obj);
return false;
}
if (wcsistr(Message,L"!bl") == Message)
{
Bind_Vehicle(obj);
Lock_Vehicle(obj);
return false;
}
if (wcsistr(Message,L"!unbind") == Message)
{
Unbind_Vehicle(obj);
return false;
}
if (wcsistr(Message,L"!unlock") == Message)
{
Unlock_Vehicle(obj);
return false;
}
if (wcsistr(Message,L"!vkick") == Message)
{
Kick_Vehicle_Driver(obj);
return false;
}
if (wcsistr(Message,L"!c4") == Message)
{
GameObject *Player = Get_GameObj(PlayerID);
Print_C4(Player);
return false;
}
if (wcsistr(Message,L"!irc") == Message)
{
Console_Input("msg The DSGaming IRC is located @ irc.dsgaming.us");
return false;
}
if (wcsistr(Message,L"!ts") == Message)
{
Console_Input("msg The DSGaming TeamSpeak is located @ dsts.us:3369");
return false;
}
if (wcsistr(Message,L"!website") == Message)
{
Console_Input("msg The DSGaming IRC is located @ dsgaming.us");
return false;
}
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: k wtf commands half way work now?? [message #468830 is a reply to message #468827] |
Sat, 09 June 2012 13:07 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Xpert wrote on Sat, 09 June 2012 14:59 | 1. Learn to read and understand the code
2. The commands are not showned in public chat due to the way the ChatHook function works. If return false; then it will not show in chat. If return true; then it will show in public chat.
|
Then they must of changed it...
It was working like that in beta 4.
and I have been learning to read the code ;p
You saying that is pretty much saying zunnie needs to learn to read it to and darknes2 as well, they both helped me to get all of it to work in beta expect the sounds and info.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
|
Re: k wtf commands half way work now?? [message #468839 is a reply to message #468835] |
Sat, 09 June 2012 13:49 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Xpert wrote on Sat, 09 June 2012 15:37 | Like I said, learn the code instead of going OMGWTFBBQS. The contents that are in SSGM 2.0.2 are not the same as the SSGM in 4.0
A lot of code differences, especially in the way certain hooks work.
|
I under stand that, what I was getting at was in beta 4 ssgm with it saying return false it still showed the text.
Then I put it in beta 5 ssgm and then it wouldn't work...
All you had to say was the return false was wrong to set them to return true and I wouldn't of said anything else, but thank you for your help.
Now no where in my first post was I talking about ssgm 2.0.2...
And btw xpert thank you it now works again.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: k wtf commands half way work now?? [message #468880 is a reply to message #468826] |
Sat, 09 June 2012 17:02 |
|
Mauler
Messages: 448 Registered: May 2003 Location: Alberta, Canada
Karma: 0
|
Commander |
|
|
I don't know about the rest of you guys but I really think all these code questions could be contained into one thread. Instead of creating multiple threads asking how you do this or that every time you run into a problem. Just saying.
|
|
|
|
Re: k wtf commands half way work now?? [message #468898 is a reply to message #468826] |
Sun, 10 June 2012 00:00 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
@Ethenal
The code in beta 4 source is set to return false and it does show the chat when you type in !ram, when I put it in beta 5 and rebuilt the hole solution and tested it, it did not show !ram, when I did what xpret said it started to work again, and IDK WHY you are posting After I thanked xpret for helping me, because it is not needed...
My codes are working now that it is return true.
You can look at the code I released in the release forum and see that it was set to return false and I wasn't having a problem with it, or else I wouldn't have released them to help other people out.
@Mauler
No it is not better to place it into 1 thread unless it is about the same thing, If I where to make 1 topic and keep adding my problems people would get confused and just start, raging at me.
I've tried that before so I do know.
And besides the point, your message was off topic.
@Omar007
It is not a programers pov, it's one person that want's it his way...
And if you look in the TT forum they keep everything separate.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: k wtf commands half way work now?? [message #468903 is a reply to message #468826] |
Sun, 10 June 2012 02:21 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Well guess what this is the way my beta 4 script is set.
if (wcsistr(Message,L"!irc") == Message) {
Console_Input("msg The DSGaming IRC is located @ irc.dsgaming.us");
return false;
}
if (wcsistr(Message,L"!ts") == Message) {
Console_Input("msg The DSGaming TeamSpeak is located @ dsts.us:3369");
return false;
}
if (wcsistr(Message,L"!website") == Message) {
Console_Input("msg The DSGaming IRC is located @ dsgaming.us");
return false;
}
And this is the way it is set in beta 5.
if (wcsistr(Message,L"!irc") == Message)
{
Console_Input("msg The DSGaming IRC is located @ irc.dsgaming.us");
return true;
}
if (wcsistr(Message,L"!ts") == Message)
{
Console_Input("msg The DSGaming TeamSpeak is located @ dsts.us:3369");
return true;
}
if (wcsistr(Message,L"!website") == Message)
{
Console_Input("msg The DSGaming IRC is located @ dsgaming.us");
return true;
}
Now in the beta 4 code it shows the chat.
In beta 5 it shows when it's true.
And further more, I'm not trying to say or act like I know what I'm talking about, and I'm guessing your just trying to be a fucking troll and a jackass.
All I said is that is weird that IT WORKED IN BETA 4 WITH RETURN FALSE...................
EDIT: Now kindly shove it up your ass!
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
[Updated on: Sun, 10 June 2012 02:21] Report message to a moderator
|
|
|
Re: k wtf commands half way work now?? [message #468904 is a reply to message #468826] |
Sun, 10 June 2012 02:29 |
|
Ethenal
Messages: 2532 Registered: January 2007 Location: US of A
Karma: 0
|
General (2 Stars) |
|
|
Beta 1 Code:
virtual bool OnChat(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
{
if(MutedPlayers[PlayerID] == false)
{
return true;
}
else
{
return false;
}
}
Beta 5 Code:
virtual bool OnChat(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
{
if(MutedPlayers[PlayerID] == false)
{
return true;
}
else
{
return false;
}
}
Comparison of the mute chat hook from TT's beta 1 and beta 5. I even included the links to the source code zip for you.
Oh, strange... they seem to be identical.
-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29 | Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade
|
|
|
|
Re: k wtf commands half way work now?? [message #468905 is a reply to message #468826] |
Sun, 10 June 2012 02:49 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
You know what I'm gonna end this here with this last post.
1 I don't care what the beta 1 says.
2 I don't care what you have to say anymore
3 I was just trying to say it was weird that it worked with return false in the BETA 4 SOURCE, and I had to change it in beta 5, witch was no big deal.
now you can go troll someone else.
and next time maybe READ THE FUCKING POSTS BEFORE YOU POST.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
Re: k wtf commands half way work now?? [message #468911 is a reply to message #468904] |
Sun, 10 June 2012 04:45 |
BillieJoe67
Messages: 35 Registered: March 2012
Karma: 0
|
Recruit |
|
|
Ethenal wrote on Sun, 10 June 2012 02:29 | Beta 4 Code:
virtual bool OnChat(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
{
if(MutedPlayers[PlayerID] == false)
{
return true;
}
else
{
return false;
}
}
Beta 5 Code:
virtual bool OnChat(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
{
if(MutedPlayers[PlayerID] == false)
{
return true;
}
else
{
return false;
}
}
Comparison of the mute chat hook from TT's beta 4 and beta 5. I even included the links to the source code zip for you.
Oh, strange... they seem to be identical.
|
The way it works hasn't changed between beta 4 and 5.... return true to show the chat, return false to block it
Also, if it's no big deal, why did you need to post it?
[Updated on: Sun, 10 June 2012 04:46] Report message to a moderator
|
|
|
|
Re: k wtf commands half way work now?? [message #468976 is a reply to message #468970] |
Sun, 10 June 2012 14:56 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
iRANian wrote on Sun, 10 June 2012 16:21 | Could you stop being a douchebag to people trying to help you?
|
YOU KNOW WHAT SOMEONE ALREADY DID HELP ME......................
THERE IS NO NEED FOR OTHER POSTS ANYMORE..........
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: k wtf commands half way work now?? [message #468981 is a reply to message #468976] |
Sun, 10 June 2012 15:14 |
Sean
Messages: 822 Registered: February 2009
Karma: 0
|
Colonel |
|
|
DistrbdSt0rm21 wrote on Sun, 10 June 2012 14:56 |
iRANian wrote on Sun, 10 June 2012 16:21 | Could you stop being a douchebag to people trying to help you?
|
YOU KNOW WHAT SOMEONE ALREADY DID HELP ME......................
THERE IS NO NEED FOR OTHER POSTS ANYMORE..........
|
I fail to see why anyone would help you, are all Americans this eccentric?
Your server is not even active..
Instead of writing in capitals like a retard, you should be saying thank you, they don't need to help you but they are. So show some fucking gratitude and stop expecting it, like its your god given right.
Head admin at TmX (The Matrix Sniper server)
irc.thematrixserver.com
The Matrix Sniper: 188.138.84.134:4576
[Updated on: Sun, 10 June 2012 15:26] Report message to a moderator
|
|
|