SHARE
TWEET

Untitled

a guest Aug 12th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3.     {
  4.     if( strfind( inputtext, "%", true ) != -1 || strfind( inputtext, "#", true ) != -1 ) {
  5.         SendMessage( playerid, "Format koji ste unjeli je ne dopusten na serveru!" );
  6.         return 1;
  7.     }
  8.         new len = strlen (inputtext);
  9.         for (new i = 0; i < len; ++i)
  10.         if (inputtext [i] == '%')
  11.         inputtext [i] = '#';
  12.         return 1;
  13. }
RAW Paste Data
Top