01.06.2013, 00:39
Hi, I have a question, I have my command in ZCMD facts, the problem is that I use takes the line that I have to determine that the command was wrong, yet it works.
Any solution?
Example of detected wrong command
In other commands not give me problem
Command:
Thanks!
Any solution?
Example of detected wrong command
In other commands not give me problem
PHP код:
//___________________________________________________
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Error:{FFFFFF} El comando no fue procesado.{00FF22} /ayuda");
else if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "Usted no esta logeado aъn."); }
return 1;
}
PHP код:
CMD:creardrogas(playerid, params[])
{
if(Equipo_Narcotraficantes(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, -1072.81,-1631.91,76.36) || IsPlayerInRangeOfPoint(playerid, 1.0, -1062.18,-1632.44,76.36))
{
PlayerInfo[playerid][pDrugs]++;
SendClientMessage(playerid, COLOR_GRAD2, "ЎFelicidades!. Usted ha creado algunas drogas");
}
else
SendClientMessage(playerid, COLOR_GRAD2, "[ERROR] Usted no esta en el punto para crear drogas.");
}
else
SendClientMessage(playerid, COLOR_GRAD2, "[ERROR] Usted no es un Narcotraficante!.");
}