Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XPP 0.23 KB | None | 0 0
  1. local name = getPlayerName(playerid);
  2. local found = 0;
  3.  
  4. for(local i = 0; i < name.len(); i++)
  5. {
  6.     if(string[i] == '_')
  7.     {
  8.         found = 1;
  9.         break;
  10.     }
  11. }
  12.  
  13. if(!found)
  14. {
  15.     // An '_' was not found in their name
  16.     // Do somthing here
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement