Ghytek escribió:Reemplaza la function essublider por esta!
- Public Function EsSubLider(UserIndex As Integer) As Boolean
- Dim U As Integer
- For U = 1 To Val(GetVar(App.Path & "\GUILDS\" & "guildsinfo.inf", "INIT", "NroGuilds"))
- DoEvents
- If GetVar(App.Path & "\GUILDS\" & "guildsinfo.inf", "GUILD", "GuildName") = Guilds(UserList(UserIndex).GuildIndex).GuildName Then
- If GetVar(App.Path & "\GUILDS\" & "guildsinfo.inf", "GUILD", "SubLider") = UserList(UserIndex).name Then
- EsSubLider = True
- Else
- EsSubLider = False
- End If
- Exit For
- End If
- Next U
-
-
- End Function
-
Saludos!
Flaco sabes lo que tas haciendo hay ? mira si borras algo que tiene otra funcion el modulo remplazarlo por este
- Public Function EsSubLider(UserIndex As Integer) As Boolean
- Dim U As Integer
- For U = 1 To Val(GetVar(App.Path & "\GUILDS\" & "guildsinfo.inf", "INIT", "NroGuilds"))
- DoEvents
- If GetVar(App.Path & "\GUILDS\" & "guildsinfo.inf", "GUILD" & U, "GuildName") = Guilds(UserList(UserIndex).GuildIndex).GuildName Then
- If GetVar(App.Path & "\GUILDS\" & "guildsinfo.inf", "GUILD" & U, "SubLider") = UserList(UserIndex).name Then
- EsSubLider = True
- Else
- EsSubLider = False
- End If
- Exit For
- End If
- Next U
- End Function
-
Fijate si te funciona haci
Testealo