14.01.2010, 14:52
Hi,
I got this problem. I switched to zcmd recently, but there are too much commands to convert, so i did this:
But now all those commands in OnPlayerCommandReceived work (return 1; and stuff), and ZCMD ones don't..
Example of my zcmd command:
What is wrong?
Thanks.
I got this problem. I switched to zcmd recently, but there are too much commands to convert, so i did this:
Quote:
Quote:
pawn Код:
pawn Код:
pawn Код:
pawn Код:
|
Example of my zcmd command:
pawn Код:
CMD:setneed(playerid, params[])
{
if(IsLogged(playerid))
{
new need=-1, playa=-1, amount=-1;
sscanf(params, "iui",need,playa,amount);
if(need<0 || playa<0 || amount<0)
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /setneed [need] [player] [amount]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] >= 5)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
NeedStatIncrease(playa, need, amount);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] You're not an administrator.");
}
}
return 1;
}
Thanks.