AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Formatting question (https://forums.alliedmods.net/showthread.php?t=251598)

Estland 11-15-2014 20:36

Formatting question
 
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? :)

YamiKaitou 11-15-2014 20:48

Re: Formatting question
 
Depends, what are you trying to do? Did you test it?

Estland 11-15-2014 20:55

Re: Formatting question
 
-snip-

fysiks 11-15-2014 21:42

Re: Formatting question
 
Quote:

Originally Posted by YamiKaitou (Post 2224725)
Did you test it?


Estland 11-16-2014 07:26

Re: Formatting question
 
Yes, I did, but sometimes console said "String is not formatted correctly" (or sth like that). It works though.

YamiKaitou 11-16-2014 10:10

Re: Formatting question
 
That it is talking about your format lines, not that line.

Estland 11-16-2014 14:29

Re: Formatting question
 
Quote:

Originally Posted by YamiKaitou (Post 2224942)
That it is talking about your format lines, not that line.

So basically, full code has flaws?

YamiKaitou 11-16-2014 14:32

Re: Formatting question
 
Provide the entire error message

Estland 11-16-2014 16:17

Re: Formatting question
 
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!


YamiKaitou 11-16-2014 16:29

Re: Formatting question
 
Enable debug so you can figure out exactly which line is producing the error


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

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