Skip to content

Issues on u/r specifier #63

@PateeerQ

Description

@PateeerQ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions