Format Function Assigns To Every Key
Heres the problem. When I execute the format functions they format every key of the array. Which makes everyone see the text. And when I make it equal it just shows a random letter because it thinks its an integer. Any suggestions?
Code:
|
Re: Format Function Assigns To Every Key
I am not certain, but I think 0 is a valid number for id, but I don't know why you would do: if(id == 0)...
From the look of it, all players should receive the message since 0 is a vaild number for id, so the lines in the 'if' statement will always be executed. I don't understand the point of have 4 different "hudmsg" when you do Code:
What is this code supposed to do? |
Re: Format Function Assigns To Every Key
0 is valid, its server if I'm not mistaken.
|
Re: Format Function Assigns To Every Key
Its the text console on the bottom left.
http://minimum.gabionstudios.com/images/ts-25.jpg When I send 0 to the function's id I make it execute the code in the if(id == 0). |
Re: Format Function Assigns To Every Key
I notice that:
Code:
Code:
Also, how are you declaring your hudmessage1...4 variables? Based on how it seems you want to make your code act, make sure they are two-dimensional: hudmessage1[33][128] for example, otherwise you would run into the same thing as above. |
| All times are GMT -4. The time now is 04:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.