error 033: array must be indexed (variable "minutes")
#2

Heres the cmd that using that stock:
PHP код:
CMD:bantempplayeridparams[ ] )
{
    if(
pInfo[playerid][pAdminLevel] >= 2) return SCM(playerid, -1"You are not authorized to use this command.");
    new 
idreason[64];
    if(
sscanfparams"us[64]"idreason ) ) return SendClientMessageplayerid, -1"Usage: /ban <Part Of Name> <hours> <minutes> <reason>" );
    if( !
IsPlayerConnectedid ) || id == INVALID_PLAYER_ID ) return SendClientMessageplayerid, -1"That player is not connected!" );
    new 
str128 ], pNameMAX_PLAYER_NAME ], aNameMAX_PLAYER_NAME ],hours,minutes;
    
GetPlayerNameplayeridaNameMAX_PLAYER_NAME );
    
GetPlayerNameidpNameMAX_PLAYER_NAME );
    
formatstrsizeofstr ), "{a7c0dc}%s was banned temporarily by administrator %s for %i hours and %i minutes (Reason: %s)"pNameaNamehoursminutesreason );
    
SendClientMessageToAll( -1str );
    
BanPlayerTemp(playerid,reason,aName,hours,minutes);
    return 
1;

Also, im using TimeStampToDate
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)