Posts: 20
Threads: 11
Joined: Dec 2013
Reputation:
0
10.12.2013, 15:23
(
Last edited by rober98; 10/12/2013 at 04:19 PM.
)
after include ZCMD (#include<ZCMD>) Getting unknown commands
Posts: 342
Threads: 24
Joined: Feb 2013
Quote:
Originally Posted by rober98
after define ZMCD (#define<ZMCD>) Getting unknown commands
|
#define <zcmd>
Example:
pawn Code:
CMD:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, -1, "You Have commited a Suicide");
return 1;
}
Posts: 20
Threads: 11
Joined: Dec 2013
Reputation:
0
CMD:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, -1, "You Have commited a Suicide");
return 1;
}
C:\Users\rober\Desktop\New folder\server\gamemodes\mine.pwn(500) : error 029: invalid expression, assumed zero
C:\Users\rober\Desktop\New folder\server\gamemodes\mine.pwn(500) : error 017: undefined symbol "cmd_kill"
C:\Users\rober\Desktop\New folder\server\gamemodes\mine.pwn(500) : error 029: invalid expression, assumed zero
C:\Users\rober\Desktop\New folder\server\gamemodes\mine.pwn(500) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Posts: 20
Threads: 11
Joined: Dec 2013
Reputation:
0
CMD:kill(playerid)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid,-1,"You have commited a suicide");
return 1;
}
C:\Users\rober\Desktop\New folder\server\gamemodes\mine.pwn(499) : error 017: undefined symbol "kill"
C:\Users\rober\Desktop\New folder\server\gamemodes\mine.pwn(505) : warning 225: unreachable code
C:\Users\rober\Desktop\New folder\server\gamemodes\mine.pwn(499) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Posts: 212
Threads: 8
Joined: Jul 2012
Reputation:
0
Place it under onplayercommandtext ....