Hi,
So basically I am making a booking system for my restaurant. The system works fine it can get bookings from the database. But Roblox won’t let me make them from in-game due to an error about a string and an instance or something. Here is the code.
game.ReplicatedStorage.gb.OnServerEvent:Connect(function(user, timeslot, tablenum, host, day)
wait(1)
print("Adding...")
http:PostAsync("https://REDACTED.com/create.php?user="..user.Name.."&time="..timeslot.."&tablenum="..tablenum.."&host="..host.."&day="..day.."&userid="..user.UserId.."")
print("Added")
end)
2 errors I get:
Can’t concatenate instance with string or something
Argument 2 missing or nil.
Arguments:
User = Person who fired the event
Timeslot = 1600-1700 (or some other time in that format)
Tablenum = 00
Host = Name
Day = Monday
I removed the UserId from the arguments as it will get that from the User (User.UserId)
Many thanks,
Watch this be something obvious now lol.