Jump to content
  • 0

Ban system (Sscanf bug?)



[pawn]            new

                str    [ 200 ],

                str21    [ 200 ],

                actH, actMin, actS,

                actY, actM, actD;

gettime(actH, actMin, actS),getdate(actY, actM, actD);

format(str, 200, "{FFFFFF}Please enter the {BBFF00}date when the player will get unbanned {BBFF00}(day/month/year){FFFFFF}:\nPlease enter the correct {BBFF00}date{FFFFFF}.\n{BBFF00}Current date: {FFFFFF}%d/%d/%d", actD, actM, actY);

mysql_fetch_row_format(inputtext, "/");

if (sscanf(inputtext, "p</>iii", BanInfo[playerid][bD], BanInfo[playerid][bM], BanInfo[playerid][bY]) ) return ShowPlayerDialog(playerid,22,DIALOG_STYLE_INPUT,"{FFFFFF}Ban System", str,"Enter", "Cancel");

format(str21, 200, "{FFFFFF}Please enter the {BBFF00}time {FFFFFF}when the player will get unbanned {BBFF00}(hour:minute){FFFFFF}:\n{BBFF00}Current time: {FFFFFF}%d:%d", actH, actMin);

ShowPlayerDialog(playerid,23,DIALOG_STYLE_INPUT,"{FFFFFF}Ban System", str21,"Enter", "Cancel");[/pawn]

Problema este ca scriu data corecta, actuala 8/4/2012 , dar totusi da erroarea din verificarea sscanf.

Iar partea 'aiurea' este ca daca scriu a doua oara aceasi data, merge.

Posibil bug de la sscanf?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.