Raised This Month: $ Target: $400
 0% 

operator


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Atspulgs
Senior Member
Join Date: Mar 2008
Old 06-05-2009 , 09:18   Re: operator
Reply With Quote #1

ok help me understand this now.

so i have variable Pos
Quote:
new Pos
ok then i format a string with this
Quote:
format ( output[], len, const format[], ... )
im passing in a array g_HudMessage then i dont know whats sizeof
is it function inbuilt in pawn like equali?
anyways it looks like im taking away from the message(that follows later) 1 and then Pos what is 0 as it was just declared and then is the message itself.

so output of this format will be some integer that will be added on to Pos

right?
__________________
-=DG Ats
DoomedGang web page -
http://www.doomedgang.com
Atspulgs is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-05-2009 , 18:24   Re: operator
Reply With Quote #2

PHP Code:
new g_HudMessage[32]

new 
Pos format(g_HudMessage31"Hello %s""World")
// Or
new Pos format(g_HudMessagesizeof(g_HudMessage) - 1"Hello %s""World"
"Pos" is an integer. And, format() outputs the number of characters that were copied to the string "g_HudMessage". So in this case "Pos" is 11.
__________________

Last edited by fysiks; 06-05-2009 at 18:26.
fysiks is online now
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 23:36.


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