Admins Cmds
#7

Quote:

C:\Users\Ali Computer\Desktop\0.3.7\filterscripts\Adminsmy.pwn( 59) : warning 209: function "cmd_kick" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Just add a return 1; to the end of the function, just like shown below.

PHP код:
CMD:kick(playeridparams[]) 

    new 
id
    if (
sscanf(params"u"id)) return SendClientMessage(playerid,-1"usage: /kick <id>"); 
    if( 
pinfo[playerid][adminlevel] += 
    { 
        
Kick(id); 
    } 
    else return 
SendClientMessage (playerid, -1"you dont have permission!"); 
return 
1;

Reply


Messages In This Thread
Admins Cmds - by dopeboy1040 - 01.05.2017, 16:02
Re: Admins Cmds - by moura98 - 01.05.2017, 17:27
Re: Admins Cmds - by dopeboy1040 - 06.05.2017, 17:26
Re: Admins Cmds - by jlalt - 06.05.2017, 18:35
Re: Admins Cmds - by Loinal - 06.05.2017, 21:21
Re: Admins Cmds - by dopeboy1040 - 07.05.2017, 06:50
Re: Admins Cmds - by ShihabSoft - 07.05.2017, 07:02
Re: Admins Cmds - by dopeboy1040 - 07.05.2017, 07:20
Re: Admins Cmds - by coool - 07.05.2017, 07:29
Re: Admins Cmds - by moura98 - 07.05.2017, 13:01

Forum Jump:


Users browsing this thread: 2 Guest(s)