i want to add rcon to my filterscript
#1

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

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

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
Reply
#4

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.
Reply
#5

thanks for your help guys but i fix it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)