Raised This Month: $ Target: $400
 0% 

fputs question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 04-16-2011 , 12:55   fputs question
Reply With Quote #1

PHP Code:
fputs(file"Plugin %s^n^n^n"PLUGIN
Gives me this:

Quote:
Error: Number of arguments does not match definition.
bibu is offline
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 04-16-2011 , 12:59   Re: fputs question
Reply With Quote #2

Quote:
Originally Posted by bibu View Post
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:...)
__________________

Working on:
nothing
schmurgel1983 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-16-2011 , 13:00   Re: fputs question
Reply With Quote #3

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.
__________________
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 04-16-2011 , 13:08   Re: fputs question
Reply With Quote #4

I tried to search on the forum, but ok, thanks.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-16-2011 , 13:10   Re: fputs question
Reply With Quote #5

Search first, on the funcwiki, read all the natives. Then after, if you sill don't know, search on the forum.
__________________
Arkshine 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 19:53.


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