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?
__________________