Advertisement
AlexRap

Untitled

Jul 4th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public ondialogresponse
  2. gasesti mai jos asta if(strlen(inputtext) >= 1) {
  3. if(strfind(inputtext, "%", true) != -1 || strfind(inputtext, "`", true) != -1) return SCM(playerid, COLOR_WHITE,"Caractere invalide!");
  4. }
  5.  
  6. o inlocuiesti cu asta
  7.  
  8. if(strfind(inputtext, "%", true) != -1)
  9. {
  10. SendClientMessage(playerid, COLOR_GENANNOUNCE, "SERVER: Invalid dialog input. You can't use %%.");
  11. ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_INPUT, "Invalid dialog input", "Invalid dialog input", "OK", "Exit");
  12. return 1;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement