SA-MP Forums Archive
[Include] [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) (/showthread.php?tid=91354)

Pages: 1 2 3 4 5 6


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - shaPP - 24.11.2012

pawn Код:
CMD:move(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        new Float:pX, Float:pY, Float:pZ;
        if(sscanf(params, "fff", pX, pY, pZ);
        {
            SendClientMessage(playerid, "Usage: /move [FloatX] [FloatY] [FloatZ]");
            return 1;
        }
    }
    return 1;
}

CMD:colete(playerid, params[])
{
    #pragma unused params
    if(IsPlayerConnected(playerid))
    {
        SetPlayerArmour(playerid, 100);
    }
    return 1;
}



Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - betopiaia - 24.11.2012

Quote:
Originally Posted by shaPP
Посмотреть сообщение
pawn Код:
CMD:move(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        new Float:pX, Float:pY, Float:pZ;
        if(sscanf(params, "fff", pX, pY, pZ);
        {
            SendClientMessage(playerid, "Usage: /move [FloatX] [FloatY] [FloatZ]");
            return 1;
        }
    }
    return 1;
}

CMD:colete(playerid, params[])
{
    #pragma unused params
    if(IsPlayerConnected(playerid))
    {
        SetPlayerArmour(playerid, 100);
    }
    return 1;
}
thanks but, not that, he meant the 'else'...

pawn Код:
else
{
        SendClientMessage(playerid, -1, "Invalid command!!!");
}



Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - TheArcher - 24.11.2012

Quote:
Originally Posted by betopiaia
Посмотреть сообщение
thanks but, not that, he meant the 'else'...

pawn Код:
else
{
        SendClientMessage(playerid, -1, "Invalid command!!!");
}
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
         if(!success) SendClientMessage(playerid, -1, "Invalid command!!!");
}



Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Curtehs - 15.04.2013

This is a god-like include!

Код:
CMD:THANKYOU(playerid params[])
     {
        SendClientMessage(playerid, (insertcolourhere),"THANK YOU!");
        return 1;
 }



Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - vent - 23.05.2015

yes it will work.


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Yashas - 30.05.2015

The download links in the description are broken.
So here is a new link to the original zcmd.
https://github.com/YashasSamaga/I-ZC...ginal-zcmd.inc

I have made an update to ZCMD which updates the hook method and does some minor optimizations.
https://sampforum.blast.hk/showthread.php?tid=575186


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - ownager122 - 23.06.2015

fucking shit, I used the download link and got like 100000 viruses, thnx ._.


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Yashas - 23.06.2015

LOL?

Github is a project hosting website and all files in my project are text files.One cannot spread viruses using text files.


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Crayder - 23.06.2015

Quote:
Originally Posted by ownager122
Посмотреть сообщение
fucking shit, I used the download link and got like 100000 viruses, thnx ._.


Dumbass...


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - dugi - 24.06.2015

Looks like the upffs link or the solidfiles link had something malicious on them, I've removed them and replaced them with a working link.


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - GShock - 24.06.2015

Quote:
Originally Posted by dugi
Посмотреть сообщение
Looks like the upffs link or the solidfiles link had something malicious on them, I've removed them and replaced them with a working link.
#dugi4president


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Crayder - 24.06.2015

Quote:
Originally Posted by dugi
Посмотреть сообщение
Looks like the upffs link or the solidfiles link had something malicious on them, I've removed them and replaced them with a working link.
This is why you should always click "Direct Link" instead of the "Download" button.


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Khanz - 24.06.2015

Quote:
Originally Posted by GShock
Посмотреть сообщение
#dugi4president
>wanting a polish cuck as a president
top kek

Use mega or somewhere like Dropbox where you can easily share the files.


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Crayder - 24.06.2015

Quote:
Originally Posted by Khanz
Посмотреть сообщение
>wanting a polish cuck as a president
top kek

Use mega or somewhere like Dropbox where you can easily share the files.
In my opinion ****** Drive and Dropbox are the only two anybody should be using. They are like the most flexible clouds out there.


Re : [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Mehdi16 - 01.07.2015

Код:
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(124) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(125) : error 017: undefined symbol "mysql_store_result"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(126) : error 017: undefined symbol "mysql_num_rows"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(128) : error 017: undefined symbol "mysql_fetch_row_format"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(130) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(131) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(132) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(148) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(153) : error 017: undefined symbol "mysql_free_result"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(207) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(222) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(223) : error 017: undefined symbol "mysql_store_result"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(224) : error 017: undefined symbol "mysql_fetch_row_format"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(226) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(227) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(228) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(229) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(230) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(231) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(232) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(233) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(234) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(235) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(236) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(237) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(238) : error 017: undefined symbol "mysql_fetch_field_row"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Re: Re : [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - XxBaDxBoYxX - 01.07.2015

Quote:
Originally Posted by Mehdi16
Посмотреть сообщение
Код:
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(124) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(125) : error 017: undefined symbol "mysql_store_result"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(126) : error 017: undefined symbol "mysql_num_rows"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(128) : error 017: undefined symbol "mysql_fetch_row_format"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(130) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(131) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(132) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(148) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(153) : error 017: undefined symbol "mysql_free_result"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(207) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(222) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(223) : error 017: undefined symbol "mysql_store_result"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(224) : error 017: undefined symbol "mysql_fetch_row_format"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(226) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(227) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(228) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(229) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(230) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(231) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(232) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(233) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(234) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(235) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(236) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(237) : error 017: undefined symbol "mysql_fetch_field_row"
C:\Documents and Settings\ayman\Bureau\b\Miami\filterscripts\sqlmode.pwn(238) : error 017: undefined symbol "mysql_fetch_field_row"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Obviously, It got nothing to do with ZCMD include!


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - jamal1992 - 21.08.2015

I can send a command from PHP userpanel to my server with that ?


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - MBilal - 31.08.2015

Код:
CMD:slap(playerid,id,Float:x,Float:y,Float:z,params[])// what ever varaible you want define it here in CMD as you 
// in most cmds we need id and x/y/z or some other other varaible i think you should allow to use them in cmd. 
{
	  if(pInfo[playerid][pLevel] >= 1 )
      {
//           new id,Float:x, Float:y, Float:z, Float:Health; // rather than defining here 
           if(sscanf(params, "u", id)) return SCM(playerid, yellow, "SERVER : /slap <Player ID>");
           if(!IsPlayerConnected(id)) return ShowMessage(playerid, red, 2);
           if(pInfo[playerid][pLevel] < pInfo[id][pLevel] ) return ShowMessage(playerid, red, 6);
    	   format(Jstring,sizeof(Jstring),"You have slapped '%s'",GetName(id));
		   SCM(playerid,yellow,Jstring);
		   GetPlayerHealth(id,Health);
		   SetPlayerHealth(id,Health-15);
		   GetPlayerPos(id, x, y, z);
		   SetPlayerPos(id,x,y,z+6);
		   return 1;
      }
      else return ShowMessage(playerid, red, 1);
}



Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Alexv001 - 11.11.2015

where can I find ZCMD 0.3.7?


Re: [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009) - Ritzy2K - 11.11.2015

This will work with all.