Tag mistach when returning a value. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag mistach when returning a value. (
/showthread.php?tid=533778)
Tag mistach when returning a value. -
h4Xz0R - 26.08.2014
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.
Re: Tag mistach when returning a value. -
Eth - 26.08.2014
can you explain what is this: e_COMMAND_ERRORS? I don't get it...