PrintCenterText Not Work
Hi guys
My printHintText not work why ? Code : PHP Code:
|
Re: PrintCenterText Not Work
Well what doesn't work ? Printing it at all or something specifik? Does it return any errors..?
Also noticed you're using "client" when you have "X" from the loop. |
Re: PrintCenterText Not Work
it does not show me the text Print Center Text
|
Re: PrintCenterText Not Work
If you replace PrintCenterText with PrintToChat, does it work?
|
Re: PrintCenterText Not Work
Not work with PrintToChat :/
|
Re: PrintCenterText Not Work
Try adding a check in your loop to make sure the clients being looped are valid (IsClientInGame). I'd imagine that youre getting an error in your error logs when trying to get the distance and/or name to invalid client slots.
|
Re: PrintCenterText Not Work
Well if it's not working with neither PrintCenterText or PrintToChat, then you should review your code...
You got some semantic error there. Hint: Check if you pass the ifs P.S.: I believe, that GetMaxClients() should be MaxClients |
Re: PrintCenterText Not Work
-Change your for loop to something like:
for (int X = 1; X <= MaxClients; X++) -Check if the client is in game using IsClientInGame before doing anything in the loop. -Don't use GetClientName if you are just using it in PrintToCenterText. Use %N formatter with the client's index. |
Re: PrintCenterText Not Work
In half life my code is work , in css not work :/
|
All times are GMT -4. The time now is 01:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.