Raised This Month: $ Target: $400
 0% 

get_user_weapon2()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 05-16-2009 , 12:40   Re: get_user_weapon2()
Reply With Quote #18

The syntax for both is the same; it depends on whether the function to which you pass func() as a parameter expects a value or a reference to an array.

Code:
console_print("%c %s", func(), func());
This would, I believe, output "e ello".

Code:
if(func() == 101)     console_print("My name is Vinny.");
This should also output the string "My name is Vinny.", because 'e' (encoded in ASCII) is equal to 101.

In your example however you would need to declare s with six cells and assign s[5] to '\0'.
__________________
No support via PM.

Last edited by Lee; 05-16-2009 at 12:49.
Lee is offline
 


Thread Tools
Display Modes

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 23:13.


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