n00b question : SearchForClients Alternatives
Morning,
Brace ya self, another n00b question coming :-P Currently I'm using the sm cash plugin by ferret as a base for another plugin however its using SearchForClients() function to locate the target, when compiling, it gives a warnign that its depreciated. However when I try the alternatives [FindTarget() or ProcessTargetString()] I receive back: 'argument type mismatch (argument 1)' This is what I have written, can some point me in the right direction to using one of the alternatives? Where 'name' is the target PHP Code:
Matt |
Re: n00b question : SearchForClients Alternatives
hmmm.... ignore the above the base commands appear to be what I was looking for as it looks like the extra coding added to check the clinets has now been added to ProcessTargetString() and will do the vast majority of the checking!
Matt |
Re: n00b question : SearchForClients Alternatives
FindTarget is a very simple stock meant to hide and wrap up the ProcessTargetString and error message handling. It's only really meant for commands that will only target a single player. If you need stuff like @all/@team, don't use it.
Sounds like you got where you need to go though. |
Re: n00b question : SearchForClients Alternatives
Quote:
Yes I did after trawling through the base plugins :) BTW The reason for the post as I was using your cash plugin as a base which uses that function and wanted an alternative so that the plugin I was writting it would be approved (not using a depreciated function) Matt |
Re: n00b question : SearchForClients Alternatives
Yeah cash is very old. It was written before ProcessTargetString was added (Many many months bebfore). In fact, it was written before FindTarget was made a base stock.
|
All times are GMT -4. The time now is 09:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.