Raised This Month: $ Target: $400
 0% 

Making String from specific client strings


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 02-06-2013 , 10:13   Making String from specific client strings
Reply With Quote #1

Hello everybody,

In my code here everybody is making a String for a HUD Message.
Code:
new pHUD[33][512]
.
.
.
for(new i = 1 ; i <= maxplayers ; i++)
	{
		if(is_user_alive(i) && get_user_team(i == 1))
		{
                      formatex(pHUD[i],512,"%s^n%s^n%i^n",Info1[i],Info2[i],Info3[i])
                      .
                      .
                      .
                 }
         }
So now I want a String with includes all the strings from the terror team (1) and display them.

Code:
new gHUD[4096]
.
.
.
set_hudmessage(255, 0, 0, 0.0, 0.0, 0, 6.0, 0.1)
show_hudmessage(0, "%s",gHUD)
This is only working when all selected Strings are Terror, but this is very ugly to use :

Code:
//formatex(gHUD[0],4096,"%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n",pHUD[1],pHUD[2],pHUD[3],pHUD[4],pHUD[5],pHUD[6],pHUD[7],pHUD[8],pHUD[9],pHUD[10],pHUD[11],pHUD[12],pHUD[13],pHUD[14],pHUD[15],pHUD[16])
Anyone has an idea how to solve my problem?
__________________
Kia is offline
 



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 20:33.


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