[Include] [INC] zcmd 0.3.1 | Fast & Simple Command Processor (updated 30/10/2009)
#81

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;
}
Reply
#82

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!!!");
}
Reply
#83

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!!!");
}
Reply
#84

This is a god-like include!

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

yes it will work.
Reply
#86

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
Reply
#87

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

LOL?

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

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


Dumbass...
Reply
#90

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.
Reply
#91

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
Reply
#92

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.
Reply
#93

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.
Reply
#94

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.
Reply
#95

Код:
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.
Reply
#96

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!
Reply
#97

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

Код:
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);
}
Reply
#99

where can I find ZCMD 0.3.7?
Reply

This will work with all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)