27.07.2014, 16:57
I've been experiancing this problem, for well... a few hours. I've been trying to work constantly to fix it - no luck. I'll post my shit below...
Command handler:
Command example:
Although, it isn't just this command that's not working. All commands seem inactive..
When I perform a command:
pawn Код:
#include <zcmd>
#define ALTCOMMAND:%1->%2; COMMAND:%1(playerid, params[]) return cmd_%2(playerid, params);
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(P_TEMP[playerid][loggedin] != 1) return SendClientError(playerid, "You are not logged in!");
if(!success) return SendClientMessage(playerid, -1, "This {B9C9BF}command{ffffff} has not been found. Please use: {B9C9BF}/commands {ffffff}({B9C9BF}/cmds{ffffff})");
return 1;
}
pawn Код:
COMMAND:forcept(playerid)
{
if(P_INFO[playerid][PAdmin] < 3) return SendClientError(playerid, CANT_USE_CMD);
PlayerLoop(p) P_INFO[p][PTime] = 3599;
return 1;
}
When I perform a command: