02.01.2016, 08:25
Ok, so I tried to make something like police monitor and there I used select textdraw and other stuff, that doesn't matter right now.I have problem with geting string from dialog.I tried using inputtext and I'am getting errors so here is what I have done by now.
If you need something else just post!
Код:
if(dialogid == DIALOG_RECORD) { if(response) { new id[MAX_PLAYERS], h, m, s, Name[MAX_PLAYER_NAME]; gettime(h,m,s); RPName(playerid, Name); SCM(playerid, GRAD2, "_______________| {FFFFFF}MONITOR {BFC0C2}|_______________"); format(CmdString, sizeof CmdString, " Name: %s", CrimeInfo[inputtext][cDone]); SCM(playerid, WHITE, CmdString); format(CmdString, sizeof CmdString, " Crime: %s", CrimeInfo[inputtext][cCrime]); SCM(playerid, WHITE, CmdString); format(CmdString, sizeof CmdString, " Reported: %s", CrimeInfo[inputtext][cReported]); SCM(playerid, WHITE, CmdString); format(CmdString, sizeof CmdString, " Your name: %s", hIme); SCM(playerid, WHITE, CmdString); format(CmdString, sizeof CmdString, "________________________________|{FFFFFF}%d:%d{BFC0C2}|__", h, m); SCM(playerid, WHITE, CmdString); }