| Blockland Forums > Modification Help |
| GameConnection::onConnectRequest script fails authentication. |
| (1/6) > >> |
| Ipquarx:
I'm trying to finish up my new mod, but im needing to use onConnectRequest to do it. I'm parenting, putting it in a package, and its still saying authentication failed. what am i doing wrong? code: deactivatePackage(package1); package package1 { function GameConnection::onConnectRequest(%this,%lanname,%netname,%clantag1,%clantag2) { Parent::onConnectRequest(%this,%lanname,%netname,%clantag1,%clantag2); //stuff goes here } }; activatePackage(package1); |
| Greek2me:
Instead of Parent::onConnectRequest(%this,%lanname,%netname,%clantag1,%clantag2);, try return parent::onConnectRequest(%this,%lanname,%netname,%clantag1,%clantag2); If that doesn't work, this might be a function you can't package. |
| Ipquarx:
okay it works, but it only shows my first tag. what, do i have to add another tag? |
| Greek2me:
Do you absolutely have to use onConnectRequest? If you just need something that calls right when someone joins, use autoAdminCheck. --- Code: ---package package1 { function GameConnection::autoAdminCheck(%this) { return parent::autoAdminCheck(%this); //stuff goes here } }; --- End code --- |
| Ipquarx:
i absolutely need onconnectrequest. and also, im trying to have it so the script checks the blid against a list, and if it isnt on the list, it disconnects the client. so i did %this.delete("blah"); and it caused a runtime error! how can i fix this? |
| Navigation |
| Message Index |
| Next page |