GS-Zone

Al compilar Argus Ir al Indice

Moderadores: Moderadores de Argentum, Especialistas de Argentum, Especialistas de Programación

3

Nota » 01 Oct 2011 14:40

¡Buenas Tardes!

Alguien me puede ayudar a poder revolver el siguiente problema en Argus AO (12.1 Dx8)

El problema es el siguiente:

Al compilar cliente me salta el siguiente error:

"Wrong number of arguments or invalid propety assignment"

y me marca la siguiente linea:



Y la linea completa seria asi:

  1. Engine.Particle_Group_Make Particle_Count, 0, charlist(CharIndex).Pos.X, charlist(CharIndex).Pos.Y, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0


Aca les dejo el Sub Particle_Group_Make:

  1. Public Sub Particle_Group_Make( _
  2. ByVal particle_group_index As Integer, _
  3. ByVal map_z As Integer, _
  4. ByVal map_x As Integer, _
  5. ByVal map_y As Integer, _
  6. ByVal var_z As Single, _
  7. ByVal var_x As Single, _
  8. ByVal var_y As Single, _
  9. ByVal start_a As Integer, _
  10. ByVal start_r As Integer, _
  11. ByVal start_g As Integer, _
  12. ByVal start_b As Integer, _
  13. ByVal end_a As Integer, _
  14. ByVal end_r As Integer, _
  15. ByVal end_g As Integer, _
  16. ByVal end_b As Integer, _
  17. ByVal n_particles As Integer, _
  18. ByVal Gravity As Single, _
  19. ByVal Texture As Integer, _
  20. ByVal Size As Single, _
  21. ByVal Life As Integer)
  22.  
  23.     'If particle_group_index > particle_group_last Then
  24.     '    particle_group_last = particle_group_index
  25.    
  26.     ReDim Preserve particle_group_list(0 To particle_group_index)
  27.     With particle_group_list(particle_group_index)
  28.         ReDim Preserve .PrtData(0 To n_particles)
  29.         ReDim Preserve .PrtVertList(0 To n_particles)
  30.         'Map pos
  31.         Dim X As Integer
  32.        
  33.    
  34.         map_x = map_x
  35.         map_y = map_y
  36.         .Z = map_z
  37.         .Life = Life
  38.         .Size = Size
  39.         .Gravity = Gravity '-0.5
  40.         'Sets alive counter
  41.         .nParticles = n_particles
  42.         .Texture = Texture
  43.         Dim i As Integer
  44.         .XVariation = var_x '0.5
  45.         .YVariation = var_y '0.85
  46.         .ZVariation = var_z '0.5
  47.         Dim nowa As Long
  48.         nowa = GetTickCount
  49.         For i = 0 To .nParticles
  50.             .PrtData(i).status = Alive
  51.             .PrtData(i).lifeTime = 1000 + (Rnd * 500)
  52.             .PrtData(i).created = nowa
  53.             .PrtData(i).X = map_x + 1
  54.             .PrtData(i).Y = map_y + 1
  55.             '.PrtData(I).Z = map_z
  56.             .PrtData(i).vX = (Rnd * var_x) - (var_x / 2)
  57.             .PrtData(i).vY = (Rnd * var_y) - (var_y / 3)
  58.             '.PrtData(I).vZ = (Rnd * var_z) - (var_z / 2)
  59.             'Randomize
  60.             .PrtData(i).StartColor = CreateColorVal(start_a, start_r, start_g, start_g)
  61.             .PrtData(i).EndColor = CreateColorVal(end_a, end_r, end_g, end_b)
  62.             .PrtData(i).CurrentColor = .PrtData(i).StartColor
  63.             .PrtVertList(i).X = .PrtData(i).X
  64.             .PrtVertList(i).rhw = 1
  65.             .PrtVertList(i).Y = .PrtData(i).Y ', 0) '.PrtData(I).Z)
  66.             .PrtVertList(i).color = D3DColorARGB(.PrtData(i).CurrentColor.a, .PrtData(i).CurrentColor.r, .PrtData(i).CurrentColor.g, .PrtData(i).CurrentColor.b)
  67.         Next i
  68.         MapData(map_x + 1, map_y + 1).particle_group = particle_group_index
  69.     End With
  70.    
  71.     particle_group_count = particle_group_count + 1
  72. End Sub


Bueno espero que son esos datos puedan ayudarme.

Gracias.
Última edición por Gelfor el 01 Oct 2011 14:57, editado 1 vez en total

Imagen

"Para que queres beber y conducir, si podes fumarte un porro y volar."
Director Force Online
595
Oraculo [5]
Registrado: Años de membresía
Ubicación: En la PC, Programando Force Online
Mensajes: 2196
Aportes: 11
Premios: 2
Mejor amigo del año (1) Embajador (1)

Nota » 01 Oct 2011 15:20

NADIE tiene este ao para ayudarte nene, no entendiste esa parte ¬¬
Última edición por Dunkan el 01 Oct 2011 15:21, editado 2 veces en total
All we need is love
460
Oraculo [5]
Registrado: Años de membresíaAños de membresía
Ubicación: Mar del Plata
Mensajes: 1997
Aportes: 30
Premios: 1
Mister Programador AO (1)

Nota » 01 Oct 2011 15:22

Okey...

Imagen

"Para que queres beber y conducir, si podes fumarte un porro y volar."
Director Force Online
595
Oraculo [5]
Registrado: Años de membresía
Ubicación: En la PC, Programando Force Online
Mensajes: 2196
Aportes: 11
Premios: 2
Mejor amigo del año (1) Embajador (1)


Volver a AO 0.12.x

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados