Why in this code bonus doesn't work
Hello, I have changed a bit code from surf-desk, to earn bonus from npc, but only bonus is error, and I'm not receiving bonus from NPC ( for example model )etc.
Can someone analize this ? please Exactly this: Code:
L 11/23/2014 - 10:23:25: String formatted incorrectly - parameter 4 (total 3)Code:
public plugin_init(){ |
Re: Why in this code bonus doesn't work
You forgot to specify what %s is suppose to be in call to ColorChat
|
Re: Why in this code bonus doesn't work
Could you explain please?
|
Re: Why in this code bonus doesn't work
For every % parameter in a formatted string, you must have a corresponding variable that will be used in the formatting process.
|
Re: Why in this code bonus doesn't work
Ohh yeah! I forgot to put Prefix at the end of ColorChat lol. Right thanks!
Can someone tell me one more thing please? If I have got here, in cases, bonus for players they are not getting it. Why? Or just maybe everything was fine, but I didn't get message about that? lol Code:
case 0:{ Y |
Re: Why in this code bonus doesn't work
Because you are issuing amx_reloadadmins after you set the flag, resulting in the flag being removed. Just using set_user_flags is enough to change their access
|
Re: Why in this code bonus doesn't work
Quote:
Have a good night guys, thanks for answers |
| All times are GMT -4. The time now is 17:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.