06.03.2013, 12:17
I'm trying to make a system for cops. It's for personal files. And the problem occured in write section. If the cop chooses to add more data,it should show a dialog in which he should write a name, and then another dialog in which is what he wants to write. Tried improvising,didn't work.This is what i got:
pawn Код:
if(dialogid==DIALOG_PFILEA && response)
{
new vardas=strval(inputtext),string[128];
format(string,sizeof(string),"%s byla",vardas);
ShowPlayerDialog(playerid,DIALOG_PFILECRIME,DIALOG_STYLE_INPUT,"Asmens bylos pildymas",string","Saugoti","Atрaukti");
if(dialogid==DIALOG_PFILECRIME && response)
{
new string[128],query[128];
GetPlayerName(playerid,Name,sizeof(Name));
format(string,sizeof(string),"%s. Бraрл:%s",inputtext,Name);
format(query,sizeof(query),"UPDATE `PoliceFiles` SET Nusikaltimai = '%s' WHERE Vardas = '%s'",string,vardas);
}
}