Is it possible to - 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: Is it possible to (
/showthread.php?tid=219177)
Is it possible to -
IBP-RP - 31.01.2011
Use ZCMD and Strcmp in the same script? If so, please tell me now.
Re: Is it possible to -
PeteShag - 31.01.2011
No.
Why would you want to do that anyways?
Re: Is it possible to -
David5290 - 31.01.2011
I don't think it is.
Re: Is it possible to -
IBP-RP - 31.01.2011
I remember finding a solution a long time ago but I don't remember how. You had to move all the OnPlayerCommandText to somewhere. And & PeteShag, because maybe I don't want to convert all my commands to ZCMD?
Re: Is it possible to -
bartje01 - 31.01.2011
Quote:
Originally Posted by IBP-RP
I remember finding a solution a long time ago but I don't remember how. You had to move all the OnPlayerCommandText to somewhere. And & PeteShag, because maybe I don't want to convert all my commands to ZCMD?
|
Well you should. And maybe it works with filterscripts ? Not sure.
Re: Is it possible to -
Krx17 - 31.01.2011
Depends on how you want to use it?
Re: Is it possible to -
IBP-RP - 31.01.2011
I think it was something like OnCommandTextRecieved or something? I really can't remember.
@ Krx17 - most of my commands at Strcmp but I'm adding a dealership that some of the commands are already scripted, but they're ZCMD.
Re: Is it possible to -
Krx17 - 31.01.2011
Here is an example of how to use it one way:
pawn Код:
CMD:advertise(playerid, params[])
{
if(strcmp(params, "Come to my server", true) == 0)
return SendClientMessage(playerid, some_color, "Do not advertise servers here!");
SendClientMessageToAll(playerid, some_color, adv);
return 1;
}
Re: Is it possible to -
IBP-RP - 31.01.2011
No, I don't think you understand. I have some of my commands as Strcmp and some as ZCMD. But when you use ZCMD, only the ZCMD ones work - not the Strcmp.
Re: Is it possible to -
PeteShag - 31.01.2011
Convert them to ZCMD then? It won't take you more than 3-5 hours if we are talking about a large(GF-like) script and you would have better performance.