ZCMD unusually problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ZCMD unusually problem (
/showthread.php?tid=271013)
ZCMD unusually problem -
tbedy - 22.07.2011
i make command for heal.. and he get me errors:
Quote:
C:\Documents and Settings\Toni Tomas\Desktop\mod od 0\gamemodes\nula.pwn(256) : error 055: start of function body without function header
C:\Documents and Settings\Toni Tomas\Desktop\mod od 0\gamemodes\nula.pwn(25 : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
|
command;
Код:
// ==================== pocetak komande ===========
CMD:heal(playerid, params[]);
{
SetPlayerHealth(playerid, 99);
return 1;
}
Re: ZCMD unusually problem -
Calgon - 22.07.2011
pawn Код:
CMD:heal(playerid, params[])
{
SetPlayerHealth(playerid, 99);
return 1;
}
You added a semi-colon after defining a zcmd command - which is something you can't do. Whenever you begin the code for a function, the parenthesis (brackets) do not require a semi-colon and will generate a compiler error (unless otherwise defined to do so).
Re: ZCMD unusually problem -
tbedy - 22.07.2011
omg... thank so much, stupid problem ...