- 0
Ban system (Sscanf bug?)
-
Similar Content
-
- 0 replies
- 154 views
-
- 7 replies
- 638 views
-
- 1 reply
- 496 views
-
- 10 answers
- 3.222 views
-
- 1 reply
- 665 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
Armyww
[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?
0 answers to this question
Recommended Posts