ZCMD unusually problem
#1

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;
}
Reply
#2

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).
Reply
#3

omg... thank so much, stupid problem ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)