sscanf isnt returning correct message
#1

Hello,

When I am writing the script, it should return a message "[Server] Usage: /ban [playerid] [reason]"

but what I am getting is (in the image below)



Any ideas?

pawn Код:
new id,reason[55];
if(sscanf(params, "UD[55]", id,reason)) return SendClientMessage(playerid, -1, "USAGE: /ban [playerid] [reason]");
Reply
#2

Replace 'D' with 'S'
Reply
#3

shouldn't it be
pawn Код:
if(sscanf(params, "us[55]", id,reason))
?


edit: too late...
Reply
#4

THanks guys it is working, got it working with s and it needs to be lower. never saw that happen befor,
Reply
#5

d = decimal
s = string

https://github.com/Y-Less/sscanf/wiki
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)