SA-MP Forums Archive
zcmd problem.. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: zcmd problem.. (/showthread.php?tid=159380)



zcmd problem.. - GaGlets(R) - 13.07.2010

Ok, i made my first zcmd`s

added includes etc.. compiled and went in the server. Tested out my zcmds - Works perfect.

But... my other cmds wont work.

When i type existing cmd - normal one

it shows that is incorrect /unknown.


Re: zcmd problem.. - cessil - 13.07.2010

when you use zcmd you can't use OnPlayerCommandText in the same script


Re: zcmd problem.. - GaGlets(R) - 13.07.2010

omg.... .
WHY?

then i need to run all my zcmds in filterscript?


Re: zcmd problem.. - willsuckformoney - 13.07.2010

lol zcmd is fun to use lol

at bottom, very bottom


Re: zcmd problem.. - cessil - 13.07.2010

just convert all your commands to zcmd


Re: zcmd problem.. - GaGlets(R) - 13.07.2010

y.. i have a lot of commands... it will be verry hard... ;(

there is no way to fix that?

//////////

willsuckformoney: WTF? ?!!?!!??


Re: zcmd problem.. - bigcomfycouch - 13.07.2010

Rename
Код:
public OnPlayerCommandText(playerid, cmdtext[])
to
Код:
public OnPlayerCommandProcessed(playerid, cmdtext[], success)
and replace the
Код:
return 0;
at the bottom of onplayercommandtext to
Код:
return success;
Somewhere in your script, add
Код:
public OnPlayerCommandReceived(playerid, cmdtext[]) return 1;



Re: zcmd problem.. - GaGlets(R) - 13.07.2010

still cant..


Edit: CAnn..

you mixed something..
Not processed but Performed, so i needed to forward that callback to and decided to look into include..


thank you verry much..