i want to add rcon to my filterscript -
dawoodshah - 07.07.2015
i have gate system and i add
if( isnull( params) )
return SendClientMessage( playerid, -1, "Syntax: /makegate [password]" );
return SendClientMessage( playerid, -1, "You Are Not Rcon admin" );
i login in rcon but it still give You Are Not Rcon admin will some one help me
Re: i want to add rcon to my filterscript -
SNAKE12 - 07.07.2015
try this
Код:
if( isnull( params) )
return SendClientMessage( playerid, -1, "Syntax: /makegate [password]" );
if(!IsPlayerAdmin(playerid))
{
//admin action
}
else return SendClientMessage( playerid, -1, "You Are Not Rcon admin" );
Re: i want to add rcon to my filterscript -
kloning1 - 07.07.2015
pawn Код:
CMD:makegate(playerid,params[])
{
if( isnull( params) ) return SendClientMessage( playerid, -1, "Syntax: /makegate [password]" );
if(!IsPlayerAdmin(playerid))
{
//the function
}
else return SendClientMessage( playerid, -1, "You Are Not Rcon admin" );
return 1;
}
:v
Re: i want to add rcon to my filterscript -
dawoodshah - 07.07.2015
code:
E:\gta sa\nvcnr\filterscripts\gate.pwn(40) : error 010: invalid function or declaration
E:\gta sa\nvcnr\filterscripts\gate.pwn(41) : error 010: invalid function or declaration
E:\gta sa\nvcnr\filterscripts\gate.pwn(43) : error 010: invalid function or declaration
E:\gta sa\nvcnr\filterscripts\gate.pwn(44) : error 010: invalid function or declaration
E:\gta sa\nvcnr\filterscripts\gate.pwn(47) : error 021: symbol already defined: "GetPlayerPos"
E:\gta sa\nvcnr\filterscripts\gate.pwn(49) : error 010: invalid function or declaration
E:\gta sa\nvcnr\filterscripts\gate.pwn(49 -- 52) : error 010: invalid function or declaration
E:\gta sa\nvcnr\filterscripts\gate.pwn(76) : warning 217: loose indentation
E:\gta sa\nvcnr\filterscripts\gate.pwn(87) : warning 217: loose indentation
E:\gta sa\nvcnr\filterscripts\gate.pwn(11

: warning 217: loose indentation
E:\gta sa\nvcnr\filterscripts\gate.pwn(129) : warning 217: loose indentation
E:\gta sa\nvcnr\filterscripts\gate.pwn(153) : warning 217: loose indentation
E:\gta sa\nvcnr\filterscripts\gate.pwn(162) : warning 217: loose indentation
E:\gta sa\nvcnr\filterscripts\gate.pwn(219) : error 017: undefined symbol "Gate"
E:\gta sa\nvcnr\filterscripts\gate.pwn(223) : error 017: undefined symbol "Objects"
E:\gta sa\nvcnr\filterscripts\gate.pwn(223) : warning 215: expression has no effect
E:\gta sa\nvcnr\filterscripts\gate.pwn(223) : error 001: expected token: ";", but found "]"
E:\gta sa\nvcnr\filterscripts\gate.pwn(223) : error 029: invalid expression, assumed zero
E:\gta sa\nvcnr\filterscripts\gate.pwn(223) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
12 Errors.
Re: i want to add rcon to my filterscript -
dawoodshah - 07.07.2015
thanks for your help guys but i fix it