Help in editing a code
Hey there.
I'm trying to edit the plugin adminvote.sma, so basically what I want it to do is if staff member of the server made a vote and everybody voted, at last he/she will be asked to continue, if he/she declined, then there's a message will be printed saying Result Refused, and if he/she accepted, a message will be printed saying Result accepted. So what I'm trying to do is when an admin makes a vote and he/she want's to continue, It will say Result Accepted by Administrator %s and if he/she wants to decline, it would say Result Refused by Administrator %s But the problem is I have an 2 extra staff ranks which are Golden and Silver Players. and if they accepted or decline a vote, it would say Result Accepted/Refused by GP/SP %s, %s should be the name of the staff member. Here what I tried. PHP Code:
|
Re: Help in editing a code
So, what is your problem then?
I do see one error in a string for the multilingual system. |
Re: Help in editing a code
What I want is when a Golden Player accepts a result, it would say result accepted by Golden Player %s.
It doesn't at the moment. |
Re: Help in editing a code
Well, it doesn't compile so you need to fix that first.
|
Re: Help in editing a code
Well I'm really bad in coding. I thought I would post in the scripting help to get some help.
|
Re: Help in editing a code
Well, are you able to get it to compile? You said it doesn't show the message when you accept/refuse a result. This implies that you have the plugin running in your server. However, that means that you have different code in your plugin than you posted.
If you post that "this plugin doesn't work" we can't really help you. You need to tell us what is wrong, specifically. So, if you are able to compile it, I don't see anything wrong with it. But, like I said, the code that you posted will NOT compile because of one of the strings you are providing for the multilingual system. Check the third client_print(). |
Re: Help in editing a code
Wow I missed that xD
I will see and tell you if it worked. |
Re: Help in editing a code
Btw if I want the name of the player to be printed, it should be like that?
PHP Code:
|
Re: Help in editing a code
Quote:
Code:
client_print(0, print_chat, "%L %s", LANG_PLAYER, "RES_ACCEPTED_G1", GetUserName( id ))Code:
stock GetUserName( const index ) |
Re: Help in editing a code
Thanks man.
one more question. I use this in plmenu.sma, when an Admin Slap/Slay, it shows that administartor has slapped. but when a Golden Player/Silver Player slaps, it doesn't show anything. PHP Code:
And where to add the stock that you gave me? Directly after it or at the end of the code? Sorry for my noobness, still learning. :s |
| All times are GMT -4. The time now is 15:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.