Problem with sscanf2 params command
#1

Hello to all,

I have next problem,
Example: I have command /askq, but when i type /askq example: come to me, it send me return with message "/askq [Text]"

I have newest, sscanf2 plugin, also there is not any errors or warnings

COMMAND:
PHP код:
CMD:askqplayeridparams[] ) {
    if( 
PlayerCuffedplayerid ] >= ) return GRESKAplayerid"Ne mozes koristiti komandu kad si cuffovan ili tazovan.");
    if( 
PlayerInfoplayerid ][ pJailed ] != ) return GRESKAplayerid"Ne mozes da koristis ovu komandu dok si u zatvoru." );
    if( 
PlayerInfoplayerid ][ pMuted ] != 0) return GRESKAplayerid"Ne mozete pricati, usutkani ste.");
    if( 
askqInfoplayerid ][ askqSended ] == true ) return GRESKAplayerid"Vec si poslao pitanje, nije vam odgovoreno ili nisi pogledao." );
    new 
textic128 ];
    if( 
sscanfparams"d"textic )) return SendClientMessageplayerid"/askq[ Text ]" );
    new 
askQ = -1;
    for( new 
id 1id MAX_ASKQSid++ ) {
        if( 
askqListid ][ askqSend ] == false ) {
            
askQ id;
            break;
        }
    }
    if( 
askQ == -) return GRESKAplayerid"Vec ima maksimalan broj poslatih pitanja." );
    
askqListaskQ ][ askqSend ] = true;
    
askqListaskQ ][ askqID ] = playerid;
    
askqInfoplayerid ][ askqSended ] = true;
    
askqInfoplayerid ][ askqAnswered ] = false;
    
strmidaskqListaskQ ][ askqOwner ], GetNameplayerid ), 0strlenGetNameplayerid ) ), 32 );
    
strmidaskqListaskQ ][ askqQuestion ], textic0strlentextic ), 128 );
    
SendInfoMessageplayerid"Poslao si pitanje Adminima i Helperima." );
    new 
stringic128 ];
    
formatstringicsizeofstringic ), ""COL_RED"|P| %s je poslao pitanje.( /lp )"GetName(playerid) );
    
RPTChat( -1stringic );
    return 
1;

Reply


Messages In This Thread
Problem with sscanf2 params command - by RoX123 - 04.02.2018, 21:18
Re: Problem with sscanf2 params command - by Mugala - 04.02.2018, 21:22
Re: Problem with sscanf2 params command - by Inn0cent - 04.02.2018, 21:22
Re: Problem with sscanf2 params command - by RoX123 - 04.02.2018, 21:28
Re: Problem with sscanf2 params command - by Dayrion - 04.02.2018, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)