AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Characters, space; fit... (https://forums.alliedmods.net/showthread.php?t=308919)

JocAnis 07-08-2018 05:11

Characters, space; fit...
 
hi guys..im wondering is there any way to code the script so it will stamp all 'aligned' messages...here's what i mean, the structure:

smth name ...
123 | 1234567890 | ect.

so practically:

HTML Code:

11  | srbija    |

1  | kalimero  |

111 | drvo      |

i guess its something with len += format..but im 100% sure and im bad at it...so any help is welcome :)

Relaxing 07-08-2018 06:35

Re: Characters, space; fit...
 
https://forums.alliedmods.net/showthread.php?t=285118

JocAnis 07-08-2018 07:53

Re: Characters, space; fit...
 
its interesting but its like hardcored in my opinion
i thought about something simpler...like count name characters..return that...count your string, like its 50 chars. then spaces in the row will be =( 50 - returned name characters )...but i guess adding multiple spacs isnt possible in that way..thanks for the link :)

Relaxing 07-08-2018 08:04

Re: Characters, space; fit...
 
If the console had the setting to use the monospaced font/whatchu might call it, then your idea would be the most decent way.


All times are GMT -4. The time now is 12:43.

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