Muito bom mesmo o sistema cara. Acho que tenho créditos, um dia dou pra você :p
Kriteuus tem que parar de dizer que tudo é copia de outras coisas .-.
Kriteuus tem que parar de dizer que tudo é copia de outras coisas .-.
Sub LoadCraft()
Dim filename As String
Dim i As Long
Dim F As Long
Call CheckCrafts
For i = 1 To MAX_CRAFTS
filename = App.Path & "\data\craft\craft" & i & ".dat"
F = FreeFile
Open filename For Binary As #F
Get #F, , Craft(i)
Close #F
Next
End Sub
Sub CheckCrafts()
Dim i As Long
For i = 1 To MAX_CRAFTS
If Not FileExist("\Data\craft\craft" & i & ".dat") Then
Call SaveCraft(i)
End If
Next
End Sub
HandleDataSub(CRequestEditCraft) = GetAddress(AddressOf HandleRequestEditCraft) 'Craft System[size=12][/size]
HandleDataSub(CSaveCraft) = GetAddress(AddressOf HandleSaveCraft)[size=12][/size]
HandleDataSub(CRequestCraft) = GetAddress(AddressOf HandleRequestCraft)[size=12][/size]
HandleDataSub(CCraftLogUpdate) = GetAddress(AddressOf HandleCraftUpdate)[size=12][/size]
HandleDataSub(CPlayerHandleCraft) = GetAddress(AddressOf HandleCraftOk)[size=12][/size]
HandleDataSub(CCraftItemAdd) = GetAddress(AddressOf HandleCraftItemAd
CRequestEditCraft 'Craft System
CSaveCraft
CRequestCraft
CCraftLogUpdate
CPlayerHandleCraft
CCraftItemAdd
For i = 1 To MAX_Craft
For i = 1 To MAX_CRAFTS
bsxjiggawhatbsxjiggawhat escreveu:ao invés de Private Type TempPlayerRec:
não seria a Public Type TempPlayerRec: ?
Existe um erro no tópico nessa parte
" Feito Isso vá ao ModEnumerations e procure por Public Enum ClientPackets e antes de ' Make sure CMSG_COUNT is below everything else adicione: "
Ao invés de :
- Código:
HandleDataSub(CRequestEditCraft) = GetAddress(AddressOf HandleRequestEditCraft) 'Craft System[size=12][/size]
HandleDataSub(CSaveCraft) = GetAddress(AddressOf HandleSaveCraft)[size=12][/size]
HandleDataSub(CRequestCraft) = GetAddress(AddressOf HandleRequestCraft)[size=12][/size]
HandleDataSub(CCraftLogUpdate) = GetAddress(AddressOf HandleCraftUpdate)[size=12][/size]
HandleDataSub(CPlayerHandleCraft) = GetAddress(AddressOf HandleCraftOk)[size=12][/size]
HandleDataSub(CCraftItemAdd) = GetAddress(AddressOf HandleCraftItemAd
Adicione:
- Código:
CRequestEditCraft 'Craft System
CSaveCraft
CRequestCraft
CCraftLogUpdate
CPlayerHandleCraft
CCraftItemAdd
+1 Erro:
na ModCraftServer Procure : Sub ClearCraftS()
Encontre:
- Código:
For i = 1 To MAX_Craft
Substitua por:
- Código:
For i = 1 To MAX_CRAFTS
Profane ~ escreveu:KielledsLoved,
Para isso se tem o Debug , Faça o Run de sempre usando tanto cliente quanto servidor em run mode do VB.
Faça o teste, quebrando, traga a SS para que possamos degustar ;3
Att