Code: Select all
if nameTable[counter] == "Screetigh","Splychu","Ceiphee","Gnarailf","Jamudea","Prealpee","Springoi","Glachoi","Spaelf","Eigoibu","Klirstae","Eangeeth","Bumetho","Shreng","Thoiboich","Screihoo" then <!--Insert last characters name in quotes on line 40 and 41 ex: if nameTable[counter] == "Bob" -->
UMM_SendByNameOrId("Screetigh","Splychu","Ceiphee","Gnarailf","Jamudea","Prealpee","Springoi","Glachoi","Spaelf","Eigoibu","Klirstae","Eangeeth","Bumetho","Shreng","Thoiboich","Screihoo",228966); <!--Same as above-->
These 2 lines are both wrong.
In the first line you are doing a comparison. You can only do a comparison between one thing and another thing. You are trying to do a comparison between one thing and lots of other things. That's a syntax error so it will cause a compile error.
The second line wont cause a compile error but it wont work because the function is not used properly. The format for the function is
Code: Select all
UMM_SendByNameOrId(_recipient, _itemTable, _amount)
You are trying to send to recipient "Screetigh" items with the name "Splychu". And the amount you are trying to send is "Ceiphee". All the rest of the arguments will be ignored. This will most likely error when it is run.