Poll

Do you think this can get better in the future?

Yes, I can see that this will be successful with the right coding.
1 (100%)
Yes
0 (0%)
Maybe
0 (0%)
No
0 (0%)
No, this might as well be tossed into the failed addons folder left to die
0 (0%)
I can't confirm or deny about this.
0 (0%)

Total Members Voted: 1

Author Topic: Coding issue  (Read 4917 times)

You are absolutely right, I apologize for going offtopic, Although I wouldn't make a topic in the drama section for it as that will just encourage flaming and other negative behavior.
I am too. So what can I do now?
EDIT: What if we recreate Decalchar as a datablock? Could that work?
« Last Edit: December 12, 2012, 06:04:53 AM by Quinn Mallory »

Sorry for double post but I got so excited to edit my other post.

Ik why it's not showing up. The <bitmap> command crashes blockland if you didn't do the :?. Also, I had to do the smileys as :confused: because it will give a syntax error thinking its giving an alternate command. All we need is to figure out a code that shows the smileys in the chat and find out why why the sky is blue; Lol, I'm kidding about that. So, is there another code?

Sorry for double post but I got so excited to edit my other post.

Ik why it's not showing up. The <bitmap> command crashes blockland if you didn't do the :?. Also, I had to do the smileys as :confused: because it will give a syntax error thinking its giving an alternate command. All we need is to figure out a code that shows the smileys in the chat and find out why why the sky is blue; Lol, I'm kidding about that. So, is there another code?
%msg = strReplace(%msg, ":confused:", "<bitmap:add-ons/blah_crap/confused.png>"); ?
What are you trying to do

%msg = strReplace(%msg, ":confused:", "<bitmap:add-ons/blah_crap/confused.png>"); ?
What are you trying to do
Cracked it! I did it through events and now the image is showing up! I think the code would be like:
Code: [Select]
function ServerCmdMessageSent(%client, %msg)
{
     %msg = strReplace(%msg, "<bitmap:Add-Ons/Client_Smiley_System/Smileys/confused.png>");
     ChatmessageAll(' ', <color:ffff00>%1<color:ffffff> : <bitmap:Add-Ons/Client_Smiley_System/Smileys/confused.png>;
};
EDIT: fixed the code
« Last Edit: December 19, 2012, 08:36:29 AM by Quinn Mallory »

EDIT: fixed the code
There are multiple syntax errors in that code, such as:
A semicolon at the end of the function declaration
A missing right parenthesis at the end of the messageAll call
messageAll message parameter isn't in quotes

Also you should use the proper chat function (chatMessageAll i believe) not messageAll

and the text is being replace with the smiley.
Because that's what you're giving the messageAll function as an argument when you should be giving it %msg
Also your strReplace (the end result of which isn't even being used) has the wrong number of arguments



There have been multiple emoticon add-ons made, some should still be available. Why don't you just look at one of them.
You have already been given code proper code that replaces text with the emote picture. I have no idea what you're still trying to accomplish.
« Last Edit: December 18, 2012, 05:07:12 PM by Headcrab Zombie »

There are multiple syntax errors in that code, such as:
A semicolon at the end of the function declaration
A missing right parenthesis at the end of the messageAll call
messageAll message parameter isn't in quotes

Also you should use the proper chat function (chatMessageAll i believe) not messageAll
Because that's what you're giving the messageAll function as an argument when you should be giving it %msg
Also your strReplace (the end result of which isn't even being used) has the wrong number of arguments



There have been multiple emoticon add-ons made, some should still be available. Why don't you just look at one of them.
You have already been given code proper code that replaces text with the emote picture. I have no idea what you're still trying to accomplish.
It's been updated, out of what I have, I got AdminShields, that's what comes close to the chat. I'll upload the zip to mediafire when I'm in town.
Edit: Its now on mediafire. Link :http://www.mediafire.com/?emm6atz661dua. Do what yall need to do. There is a bug. On the main menu, if you don't have it on 800x600, it will be covering the buttons and the title. I couldn't figure that out.

EDIT: I added some more to the add–on, but I haven't tested it out yet. Does anyone view this post anymore?
« Last Edit: December 25, 2012, 06:15:11 PM by Quinn Mallory »