SA-MP Forums Archive
Help with zcmd. - 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: Help with zcmd. (/showthread.php?tid=164688)



Help with zcmd. - Bumbis - 01.08.2010

So, i started to make commands with zcmd, cuz its faster and that all stuff.. All my zcmd command work, but all my non-zcmd commands dont work. I replaced OnPlayerCommandText with public OnPlayerCommandPerformed(playerid, cmdtext[], success) and return success; at end. And also public OnPlayerCommandReceived(playerid, cmdtext[]) return 1;

But commands doesn't work, only my zcmd.

Really need help from you mates


Re: Help with zcmd. - willsuckformoney - 01.08.2010

mind placing your OnPlayerCommandText section, all of it?


Re: Help with zcmd. - Bumbis - 01.08.2010

I don't get what you want to say.. I deleted public OnPlayerCommandText and placed OnPlayerCommandPerformed(playerid, cmdtext[], success) in there.

my zcmd command is not under OnPlayerCommandPerformed(playerid, cmdtext[], success)

i tried to put the command under that callback but there was an errors. Then i placed the command somewhere, under no callback. No errors, but only zcmd command worked. All commands expect zcmd doesnt work. It shows that command is unknown.

And public OnPlayerCommandReceived(playerid, cmdtext[]) return 1; somewhere in the script i have placed too.

I can't find the problem


Re: Help with zcmd. - willsuckformoney - 01.08.2010

ok i dont think i understand you, do you have

forward OnPlayerCommandReceived(playerid, cmdtext[]);
&&
forward OnPlayerCommandPerformed(playerid, cmdtext[], success);

&& i think that onplayercommandtext is moar needed for commands other than zcmd && dcmd


Re: Help with zcmd. - Daren_Jacobson - 01.08.2010

you would have to go into zcmd.inc and change some stuff, I don't recommend this, I broke it trying to do it, and I was understanding everything I saw.


Re: Help with zcmd. - Bumbis - 01.08.2010

Yes i have forwards, but still ony zcmd works...


"&& i think that onplayercommandtext is moar needed for commands other than zcmd && dcmd" With this you tell me that i need back the OnPlayerCommandText? And there is no need for OnPlayerCommandPerformed(playerid, cmdtext[], success)? Hard to understand :S Because of my english.