ATTENTION
I'm aware that the first upload of Nerd Gaming was extremely buggy. I've decided since that I'm starting to come back to MTA that i'll create support for it. Anyone that is using scripts or wants to use scripts from this gamemode, please put this NGGamemode resource on your server.
It will notify you when there is a gamemode update available.
The most recent version of NG can be found here: https://github.com/braydondavis/Nerd-Gaming-Public
From the looks of it, you should use the playSound function in the onClientMapStopping event (created by the race resource) and then destroy the sound element in the onClientMapStarting event (created by the race resource).
The script is trying to use the mysql_connect function, which doesn't exist. You should update the script to the default MTA db functions, otherwise you need to install the MTA MySQL module.
I'm not too good with SQL, so I'm not sure if you can do it only with SQL. However, within Lua, you can run a SELECT query (SELECT * FROM tableName) and check to see if the value you're about to insert is already in the table.
I also released this a bit back, just after luac.multitheftauto.com was being forced.
viewtopic.php?f=108&t=72988
Either way, the link DNL291 posted and my program basically should do the same thing.
That would have no effect.
If I remember correctly, it has something to do with the order in which you replace the files. Not sure if it'll work, but try loading the dff file first, if that doesn't work then it would probably be a corrupted file.
Does it give any errors? Does it give you either $50 or $100? Are you sure you're in the "Vip" ACL and not something like "VIP" because it is case sensitive.
That error isn't coming from this script. However, you need to remove the onResourceStart and onResourceResart events because that function isn't properly scripted for it.
It could be the webserver. Some common issues would be:
- THe server doesn't support have a mail server
- The mail server is registered temporarily registered as spam due to a lot of emails being sent