View Single Post
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 11-16-2018 , 11:32   Re: [HELP] Client Menu
Reply With Quote #8

Quote:
Originally Posted by Dragokas View Post
Code:
if (!FileExists(path))
??? It almost always exist. In 99 % cases your code will not work.

https://sm.alliedmods.net/new-api/files/WriteFileLine
1-st argument is a handle.

"%s" "20:ao", ... - what is this?
WriteFileLine( - and what is this?

You should write correctly. Handle, "string". Or Handle, "specifiers(s)", arg(s)

char path[512]; - use PLATFORM_MAX_PATH const
FormatEx - in the non-performance critical places it's better to use Format()
Thanks again! When i Handle hndl is says what i can't use Handle has value!

How do i fix it?
__________________
SpirT is offline