ZCMD & strcmp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ZCMD & strcmp (
/showthread.php?tid=436578)
ZCMD & strcmp -
Squirrel - 11.05.2013
Alright so simple question.
I know that you cannot use ZCMD & strcmp in same script etc. but can you for example use strcmp in one thing and zcmd in your filterscript or such?
Re: ZCMD & strcmp -
AndreT - 11.05.2013
Why cannot you use ZCMD and strcmp together in the same script?
As far as I know, ZCMD provides a callback which is fired after a command is either executed or not. In this callback, simply check if the command was successfully executed or not. If not, run your string comparisons.
As simple as that.