AlliedModders

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

bibu 04-16-2011 12:55

fputs question
 
PHP Code:

fputs(file"Plugin %s^n^n^n"PLUGIN

Gives me this:

Quote:

Error: Number of arguments does not match definition.

schmurgel1983 04-16-2011 12:59

Re: fputs question
 
Quote:

Originally Posted by bibu (Post 1451463)
PHP Code:

fputs(file"Plugin %s^n^n^n"PLUGIN


fputs(file, const text[])

it's not fputs(file, const text[], any:...)

so use format(output[] ,len ,const format[] , any:...)

Arkshine 04-16-2011 13:00

Re: fputs question
 
fputs can't format a string.

Use instead fprintf().

But, please, learn to search yourself, something you could have seen easily on the funcwiki or file.inc.

bibu 04-16-2011 13:08

Re: fputs question
 
I tried to search on the forum, but ok, thanks.

Arkshine 04-16-2011 13:10

Re: fputs question
 
Search first, on the funcwiki, read all the natives. Then after, if you sill don't know, search on the forum.


All times are GMT -4. The time now is 19:53.

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