Tag mistach when returning a value.
#1

Hello, so as the topic says, I get tag mistach when I try to return anything in these callbacks. I highlighted those lines.

pawn Код:
public e_COMMAND_ERRORS:OnPlayerCommandReceived (playerid, cmdtext[], e_COMMAND_ERRORS:success)
{
    if (commandsSpam [playerid] + 1000 > GetTickCount () && commandsSpam [playerid] > 0)
        >>>> return SendClientMessage (playerid, COLOR_PURPLE, "test."), false; HERE

    commandsSpam[playerid] = GetTickCount ();
   
    >>>> return true; HERE
}

public e_COMMAND_ERRORS:OnPlayerCommandPerformed (playerid, cmdtext[], e_COMMAND_ERRORS:success)
{
    if (!success)
        >>>> return SendClientMessage (playerid, COLOR_PURPLE, "test"), (false); HERE

    >>>> return true; HERE
}
Thanks.
Reply
#2

can you explain what is this: e_COMMAND_ERRORS? I don't get it...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)