Raised This Month: $ Target: $400
 0% 

how can it accept multiple parameters


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JerryJerryAdios
Member
Join Date: Jun 2015
Location: the universe
Old 06-02-2016 , 08:51   how can it accept multiple parameters
Reply With Quote #1

PHP Code:
new value[32], value2[32]
value[32] = {.....}//whatever
value2[32] = {.......}
precache_model("models/X/%s/%s.mdl"valuevalue2
the error the compiller says is 'Error: Number of arguments does not match definition on line 6383'

how can precache_model accept multiple parameters..... thanks!
__________________
This is a Super Awesome Asking Guy! Don't mind alright? Just be cool!
JerryJerryAdios is offline
Send a message via Skype™ to JerryJerryAdios
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 06-02-2016 , 09:09   Re: how can it accept multiple parameters
Reply With Quote #2

PHP Code:
new model[32]
formatex(modelsizeOf(model), "models/X/%s/%s.mdl"valuevalue2)
precache_model(model
__________________
gabuch2 is offline
JerryJerryAdios
Member
Join Date: Jun 2015
Location: the universe
Old 06-02-2016 , 09:46   Re: how can it accept multiple parameters
Reply With Quote #3

great! thank you!!
__________________
This is a Super Awesome Asking Guy! Don't mind alright? Just be cool!
JerryJerryAdios is offline
Send a message via Skype™ to JerryJerryAdios
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 06-02-2016 , 10:12   Re: how can it accept multiple parameters
Reply With Quote #4

Quote:
Originally Posted by JerryJerryAdios View Post
great! thank you!!
For future , when you have this problem go and look at the native or function
if it has in the end something like "..."
like here:

PHP Code:
client_print indextype, const message[],  ...  ) 
Then it works , but if doesnt have then you will have first to format the string...
siriusmd99 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 15:37.


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