AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Show_hudmessage too small? (https://forums.alliedmods.net/showthread.php?t=12507)

Prelithe 04-17-2005 03:12

Show_hudmessage too small?
 
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?

XxAvalanchexX 04-17-2005 03:47

Your array has a size of 2000 but you your format uses a size of 1024?


All times are GMT -4. The time now is 09:57.

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