about id = str_to_num
Code:
public plugin_init() |
Re: about id = str_to_num
It's a player index. For example, if sid was equal to "27", id would be 27. It converts the string to a number and stores the numerical value in id.
|
Re: about id = str_to_num
I still confused.
What`s the difference between this : Code:
public bot_interface() |
Re: about id = str_to_num
Quote:
Code:
command 27In the second situation you are using a loop that is used to do some action over all players (using their ID's). Basically, "ID" means the same in both examples but its used in different contexts. |
Re: about id = str_to_num
Thanks for help. The matter is : There is a plugin use the code that I posted in the thread, to make Bots do a function.
It just "new sid[8]", it doesn`t equal sid[8] to any numbers, how can the "A_function" know the "id" is the bots? |
Re: about id = str_to_num
Quote:
PHP Code:
so you need not to use loop ! |
Re: about id = str_to_num
Quote:
Quote:
Code:
bot 12325434 |
| All times are GMT -4. The time now is 03:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.