global values, player's indexes
Yet another neewbies request here:oops:
so an example: PHP Code:
Can anybody tell me how to prevent this? |
Re: global values, player's indexes
If you want it to be shown to all players change id to 0 in show_hudmessage
Edited: I'm not getting your point. Not sure if you want to show the hud to everyone in server when a new player connect, is this what you looking for? |
Re: global values, player's indexes
nooooo, i want it ti be shown only to one
for example: Your nick - hectorz0r you will enter the server and see your name but it is shown to all players and the name that shown is the last connected player's name...that's a problem for me |
Re: global values, player's indexes
Why do you need it to be global?
|
Re: global values, player's indexes
PHP Code:
|
Re: global values, player's indexes
PHP Code:
And also no codes would work because you two forgot a " in the set_task() and also you don't remove the task and there will be some serious load after many player connects and disconnects. Also... Quote:
PHP Code:
|
Re: global values, player's indexes
i'm working with an sql version of my plugin, so i want hudmess to display some results from sql
an example: PHP Code:
edit: ohh i was typing too slow, 3 answers... |
Re: global values, player's indexes
Depends what exacly you want to get from sql... if you need to take it only one time use that variable hint I said, but if you need to update player's name or something you need to hook when the player changes name also.
|
Re: global values, player's indexes
nono that value updates only when map changes, so i will test your code) thx
|
Re: global values, player's indexes
Values are per player and update only at map change ?
if so: PHP Code:
|
| All times are GMT -4. The time now is 13:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.