30.10.2015, 09:22
sscanf returns 0 on success, therefore this:
if(sscanf(params, "ud", id, amount))
should be
if(!sscanf(params, "ud", id, amount))
the line you wrote means: "check to see if params doesn't have parameters ID and amount."
@PawnHunter: if you can't see whats wrong, it's simple not to answer bro, indentation doesn't make code work wrong !
if(sscanf(params, "ud", id, amount))
should be
if(!sscanf(params, "ud", id, amount))
the line you wrote means: "check to see if params doesn't have parameters ID and amount."
@PawnHunter: if you can't see whats wrong, it's simple not to answer bro, indentation doesn't make code work wrong !