Raised This Month: $ Target: $400
 0% 

Formatting question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Estland
Member
Join Date: Nov 2012
Old 11-15-2014 , 20:36   Formatting question
Reply With Quote #1

Code:
    new x[128]
    read_argv ( 1 , x , 127 )
    
    if(x[0] == '@' || x[0] == '/' || x[0] == '!' || equal(x, ""))
    return PLUGIN_CONTINUE
Is this formatted correctly?

Last edited by Estland; 11-15-2014 at 20:37.
Estland is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-15-2014 , 20:48   Re: Formatting question
Reply With Quote #2

Depends, what are you trying to do? Did you test it?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-15-2014 , 21:42   Re: Formatting question
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
Did you test it?
__________________
fysiks is offline
Estland
Member
Join Date: Nov 2012
Old 11-16-2014 , 07:26   Re: Formatting question
Reply With Quote #4

Yes, I did, but sometimes console said "String is not formatted correctly" (or sth like that). It works though.
Estland is offline
Estland
Member
Join Date: Nov 2012
Old 11-15-2014 , 20:55   Re: Formatting question
Reply With Quote #5

-snip-

Last edited by Estland; 01-13-2015 at 20:51.
Estland is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-16-2014 , 10:10   Re: Formatting question
Reply With Quote #6

That it is talking about your format lines, not that line.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Estland
Member
Join Date: Nov 2012
Old 11-16-2014 , 14:29   Re: Formatting question
Reply With Quote #7

Quote:
Originally Posted by YamiKaitou View Post
That it is talking about your format lines, not that line.
So basically, full code has flaws?
Estland is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-16-2014 , 14:32   Re: Formatting question
Reply With Quote #8

Provide the entire error message
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Estland
Member
Join Date: Nov 2012
Old 11-16-2014 , 16:17   Re: Formatting question
Reply With Quote #9

Code:
L 11/16/2014 - 03:15:17: Start of error session.
L 11/16/2014 - 03:15:17: Info (map "1hp_faval") (file "addons/amxmodx/logs/error_20141116.log")
L 11/16/2014 - 03:15:17: String formatted incorrectly - parameter 3 (total 2)
L 11/16/2014 - 03:15:17: [AMXX] Run time error 25 (plugin "vip_prefixid.amxx") - debug not enabled!
Estland is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-16-2014 , 16:29   Re: Formatting question
Reply With Quote #10

Enable debug so you can figure out exactly which line is producing the error
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode