LeeXian99

Error on OnDialogResponse.

Mar 24th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.68 KB | None | 0 0
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3.     if(response)
  4.         {
  5.         switch(dialogid == 1)
  6.             {
  7.                 case 9001:
  8.                 {
  9.                     SendClientMessageToAll(-1, "test");
  10.                     if(strlen(inputtext) > 0)
  11.                     {
  12.                         new name[MAX_PLAYER_NAME], string[128];
  13.                         GetPlayerName(playerid, name, sizeof(name));
  14.                         format(string, sizeof(string), "VIP %s shouted: {00ffff}%s", name, inputtext);
  15.                         SendClientMessageToAll(0xFFAA3300, string);
  16.                     }
  17.                     else
  18.                     {
  19.                         SendClientMessage(playerid, 0xFF000000, "Your shout needs to be more than 0 character!");
  20.                     }
  21.                 }
  22.             }
  23.         }
  24.     return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment