sm_allinfo code help
im creating a sm_allinfo plugin for sourcemod and ive got some coded but it want compile i cant figure out whats wrong and why it want taget a person when i type sm_allinfo player
here the code any help would be greatly appreciated Code:
/* Plugin Template generated by Pawn Studio */ |
Re: code help
What compile errors do you get?
you got an s in the "clients" in the SearchForClients call is an example make sure you have a unique player id is a suggestion or make it handle several matches :) |
Re: sm_allinfo code help
its showing
Code:
/home/groups/sourcemod/upload_tmp/textips7pg.sp(16) : error 029: invalid expression, assumed zero |
Re: sm_allinfo code help
What do you want to command to look like? sm_allinfo that gives the info of ALL players, or sm_allinfo "name" that gives the information about the named player?
|
Re: sm_allinfo code help
i want to make it like the amx version
amx_allinfo <player name> then it shows the admin the players name,steam id, and ip |
Re: sm_allinfo code help
PHP Code:
If you have any questions about the code and things I changed, feel free to ask me =) |
Re: sm_allinfo code help
think you should have a semicolon after you plugin info
|
Re: sm_allinfo code help
Not necessary. It compiles without it.
...i'll add it in there anyway. |
Re: sm_allinfo code help
for the print to console if i want it to print like..
.:[Name: |Steam ID: |IP: ]:. would i make it.. Code:
PrintToConsole(client, ".:[Name:# %s|Steam ID: %s|IP: %s]:.", t_name, t_ip, t_steamid); |
Re: sm_allinfo code help
PHP Code:
|
| All times are GMT -4. The time now is 21:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.