sscanf icon indicating copy to clipboard operation
sscanf copied to clipboard

Issues on u/r specifier

Open PateeerQ opened this issue 1 year ago • 0 comments

why sscanf u specifier doesn't work properly when input player name?

new 
    otherid
;
            
if(sscanf(inputtext, "u", otherid))
    return Error(playerid, "Please Input Name!");
        
if(!IsPlayerConnected(otherid)) 
    return Error(playerid, "Player tidak valid");

image image image

when im using r specifier, it also won't work smh

new 
    otherid
;
            
if(sscanf(params, "r", otherid))
    return Usage(playerid, "/spec(tate) [playerid/PartOfName] - Type '/spec off' to stop spectating.");

if(!IsPlayerConnected(otherid))
    return Error(playerid, "Target user isn't logged in!");

image

My server is currently using 0.3DL with Compat, and use https://github.com/Y-Less/sscanf/releases/tag/v2.13.8

PateeerQ avatar Jun 07 '24 07:06 PateeerQ