Raised This Month: $ Target: $400
 0% 

Show_hudmessage too small?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Prelithe
Junior Member
Join Date: Mar 2005
Old 04-17-2005 , 03:12   Show_hudmessage too small?
Reply With Quote #1

Hello,

i'm having problems displaying a big string.

Code:
      new plist[32],pnum,uName[64], dastring[2000]
      new len=0
      get_players(plist,pnum)
      for(new i=0; i<pnum; i++)
      {
        get_user_name(plist[i],uName,63)
        len += format(dastring[len], 1024,"-== Normal Form ==-^nName: Vegeta^nTransform Level: Saiyan^nStarting PL: 700,000^n^n-== Transformation 1 ==-^nTransform to: Super Saiyan^nTransform PL: 2,000,000^nPL Multiplier: 2^n^n-== Transformation 2 ==-^nTransform to: Ultra Super Saiyan^nTransform PL between: 5,200,000 - 6,799,000^n")
        len += format(dastring[len], 1024-len,"Transform PL in Normal Form between: 2,600,000 - 3,399,500^nPL Multiplier: 2.5^n^n-== Transformation 3 ==-^nTransform to: Super Saiyan 2^nTransform PL: 6,800,000^nTransform PL in Normal Form: 3,400,000^nPL Multiplier: 2^n^n-== Transformation 4 ==-^nTransform to: Majin Super Saiyan 2^nTransform PL: 15,000,000^nTransform PL in Normal Form: 3,750,000^nTransform PL in SSJ: 7,500,000^nPL Multiplier: 2^n")
        show_hudmessage(plist[i],dastring)
ok it cuts off at ".....3,400,000^nPL Multiplier". Is it because hudmessage cannot display such a large string? Anyone got any alternatives?
Prelithe is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-17-2005 , 03:47  
Reply With Quote #2

Your array has a size of 2000 but you your format uses a size of 1024?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 09:57.


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