02.12.2011, 19:15
I'm having this really strange dialog problem, probably just some stupid error that I have missed.
It does call dialogid 4, I did some printing on that, but for some reason nothing of this will work, I even tried just adding print("test"); right after if(dialogid == 4) but it still doesn't call it.
My printing to confirm it was called:
pawn Код:
if(dialogid == 4){
if(response){
new xxz[120];
format(xxz,sizeof(xxz),"SELECT name FROM characters WHERE name = '%s'",Add_(inputtext));
mysql_query(xxz);
mysql_store_result();
if(mysql_num_rows() == 1){ print("Test") }
}
}
My printing to confirm it was called:
Код:
OnDialogResponse Called Dialogid:4 Response:1 Listitem:-1 Inputtext:Test