iFoReX Posted April 21, 2012 Share Posted April 21, 2012 como dice el titulo e creado un create water para una piscina pero el agua no aparece D: y en el debugging no me aparece ningun error water = createWater( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) Link to comment
Alexs Posted April 21, 2012 Share Posted April 21, 2012 como dice el titulo e creado un create water para una piscina pero el agua no aparece D: y en el debugging no me aparece ningun error water = createWater( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) lo dejaste en server side? ahh, es asi quiza: water = createWater( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) setWaterLevel ( 10 ) Quiza estabas creando agua sin tamaño... Link to comment
iFoReX Posted April 21, 2012 Author Share Posted April 21, 2012 no se llena la piscina solo el mar sube de nivel Link to comment
Alexs Posted April 21, 2012 Share Posted April 21, 2012 no se llena la piscina solo el mar sube de nivel waterp = createWater( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) setWaterLevel (waterp,10) quiza si ponemos la variable... Link to comment
iFoReX Posted April 21, 2012 Author Share Posted April 21, 2012 me da error en el 1 argumento de setWaterLevel Link to comment
Alexs Posted April 21, 2012 Share Posted April 21, 2012 me da error en el 1 argumento de setWaterLevel intentalo asi setWaterLevel ( [waterp,] 10 ) Link to comment
iFoReX Posted April 21, 2012 Author Share Posted April 21, 2012 unexpected symbol near '[' Link to comment
Alexs Posted April 21, 2012 Share Posted April 21, 2012 unexpected symbol near '[' es el ejemplo de la wiki: bool setWaterLevel ( [water theWater,] float level ) ahora podes intentar asi: setWaterLevel ( 10, waterp ) Aunq no creo Link to comment
Castillo Posted April 21, 2012 Share Posted April 21, 2012 waterp = createWater ( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) if ( waterp ) then setWaterLevel ( waterp, 10 ) else outputChatBox ( "El agua no se creo!" ) end Link to comment
iFoReX Posted April 21, 2012 Author Share Posted April 21, 2012 Solid me aparece el mensaje de else "el agua no se creo " Link to comment
Alexs Posted April 21, 2012 Share Posted April 21, 2012 Solid me aparece el mensaje de else "el agua no se creo " lo tienes en server side? Link to comment
iFoReX Posted April 21, 2012 Author Share Posted April 21, 2012 function piscina() waterp = createWater ( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) if ( waterp ) then setWaterLevel ( waterp, 10 ) else outputChatBox ( "El agua no se creo!" ) end addEventHandler("onResourceStart", getRootElement(), piscina) Serviria ?? Link to comment
Alexs Posted April 21, 2012 Share Posted April 21, 2012 function piscina() waterp = createWater ( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) if ( waterp ) then setWaterLevel ( waterp, 10 ) else outputChatBox ( "El agua no se creo!" ) end addEventHandler("onResourceStart", getRootElement(), piscina) Serviria ?? Pruebalo y dinos.. Link to comment
iFoReX Posted April 21, 2012 Author Share Posted April 21, 2012 "el agua no se creo!" Link to comment
Renkon Posted April 22, 2012 Share Posted April 22, 2012 RECUERDA DEBES ORDENARLO ASI: x1, y1, z1: position of bottom left (south-west) corner. x2, y2, z2: position of bottom right (south-east) corner. x3, y3, z3: position of top left (north-west) corner. x4, y4, z4: position of top right (north-east) corner. SI NO NO SECREA! Link to comment
iFoReX Posted April 22, 2012 Author Share Posted April 22, 2012 si man ya lo ordene asi Link to comment
Renkon Posted April 22, 2012 Share Posted April 22, 2012 si no te funciona, ES POR ESO. Porque esta perefcto Link to comment
Recommended Posts