11.06.2013, 12:38
so what i want to do it, if player tries a rcon command, i want server to send that player a message but if that player is a rcon admin, to do nothing.
This is the code i used...
public OnRconCommand(cmd[])
{
if(IsPlayerAdmin(playerid)
{
else
SendClientMessage(playerid, 0xFFFFFFFF, "RCON: You are not a Rcon admin");
}
return 1;
}
This is the errors i get
C:\Users\Ronaldo\Desktop\Stuff\Freeroam Server\gamemodes\dm3.pwn(204) : error 017: undefined symbol "playerid"
C:\Users\Ronaldo\Desktop\Stuff\Freeroam Server\gamemodes\dm3.pwn(207) : error 029: invalid expression, assumed zero
C:\Users\Ronaldo\Desktop\Stuff\Freeroam Server\gamemodes\dm3.pwn(20 : warning 217: loose indentation
C:\Users\Ronaldo\Desktop\Stuff\Freeroam Server\gamemodes\dm3.pwn(20 : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Please help
This is the code i used...
public OnRconCommand(cmd[])
{
if(IsPlayerAdmin(playerid)
{
else
SendClientMessage(playerid, 0xFFFFFFFF, "RCON: You are not a Rcon admin");
}
return 1;
}
This is the errors i get
C:\Users\Ronaldo\Desktop\Stuff\Freeroam Server\gamemodes\dm3.pwn(204) : error 017: undefined symbol "playerid"
C:\Users\Ronaldo\Desktop\Stuff\Freeroam Server\gamemodes\dm3.pwn(207) : error 029: invalid expression, assumed zero
C:\Users\Ronaldo\Desktop\Stuff\Freeroam Server\gamemodes\dm3.pwn(20 : warning 217: loose indentation
C:\Users\Ronaldo\Desktop\Stuff\Freeroam Server\gamemodes\dm3.pwn(20 : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Please help