| Mirage Source http://miragesource.net/forums/ |
|
| Another Question http://miragesource.net/forums/viewtopic.php?f=201&t=4378 |
Page 1 of 1 |
| Author: | skillzalot [ Sat Sep 20, 2008 1:27 am ] |
| Post subject: | Another Question |
Everything in doomteams admin panel works until here. I am using MSE2 Just so you know I added the whole form Code: Private Sub btnBan_Click() If GetPlayerAccess(MyIndex) >= ADMIN_CREATOR Then Call SendBan(Trim$(txtPlayer.Text)) Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnedititem_Click() If GetPlayerAccess(MyIndex) >= ADMIN_DEVELOPER Then Call SendRequestEditItem Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnEditNPC_Click() If GetPlayerAccess(MyIndex) >= ADMIN_DEVELOPER Then Call SendRequestEditNpc Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnEditShops_Click() If GetPlayerAccess(MyIndex) >= ADMIN_DEVELOPER Then Call SendRequestEditShop Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btneditspell_Click() If GetPlayerAccess(MyIndex) >= ADMIN_DEVELOPER Then Call SendRequestEditSpell Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnKick_Click() If GetPlayerAccess(MyIndex) >= ADMIN_MONITER Then Call SendKick(frmAdmin.txtPlayer.Text) Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnLOC_Click() If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then Call SendRequestLocation Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnMapeditor_Click() If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then Call SendRequestEditMap Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnPlayerSprite_Click() If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then If Trim$(txtPlayer.Text) <> vbNullString Then If Trim$(txtSprite.Text) <> vbNullString Then Call SendSetPlayerSprite(Trim$(txtPlayer.Text), Trim$(txtSprite.Text)) End If End If Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnRespawn_Click() If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then Call SendMapRespawn Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnSetAccess_Click() If GetPlayerAccess(MyIndex) >= ADMIN_CREATOR Then Call SendSetAccess(Trim$(txtPlayerAdmin.Text), Trim$(txtAccess.Text)) Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnSprite_Click() If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then Call SendSetSprite(Val(txtSprite.Text)) Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnWarpMeTo_Click() If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then Call WarpMeTo(Trim$(txtPlayer.Text)) Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub Private Sub btnWarpto_Click() If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then Call WarpTo(Val(txtMap.Text)) Else: Auth = "You are not authorized to carry out that action" Call AddText(Auth, BrightRed) End If End Sub It highlights Call SendSetPlayerSprite and says sub or function not defined And How would I make it so if you click f1 you can access the panel |
|
| Author: | Nean [ Sat Sep 20, 2008 1:31 am ] |
| Post subject: | Re: Another Question |
I suggest porting all questions over to the Admin Panel thread. The F1 question is answered over there. |
|
| Author: | skillzalot [ Sat Sep 20, 2008 1:32 am ] |
| Post subject: | Re: Another Question |
Just so you know im using mse2 |
|
| Author: | Nean [ Sat Sep 20, 2008 1:40 am ] |
| Post subject: | Re: Another Question |
skillzalot wrote: Just so you know im using mse2 Then use: Code: SetPlayerSprite ... It should work.Edit: I helped him fix all his probs. |
|
| Author: | skillzalot [ Sat Sep 20, 2008 1:54 am ] |
| Post subject: | Re: Another Question |
Thanks to Nean My admin panel works really good |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|