21.12.2012, 16:40
HeHe, fico legal
9/10
9/10
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(4 : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(49) : warning 217: loose indentation C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(54) : error 001: expected token: ",", but found ";" C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(62) : warning 217: loose indentation C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : error 028: invalid subscript (not an array or too many subscripts): "Editando" C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : warning 215: expression has no effect C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : error 029: invalid expression, assumed zero C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : fatal error 107: too many error messages on one line |
queria criar um portao em dialog com o comando de abrir e fechar
#include <a_samp> #if defined FILTERSCRIPT #else #endif new SNN; forward abrir(); forward fechar(); public OnFilterScriptInit() { SNN = CreateObject(980, 390.7108, 2498.2642, 18.1633, 0, 0, 5.0); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/1383", true) == 0) { ShowPlayerDialog(playerid,1697,DIALOG_STYLE_LIST," PORTAO BASE","{00FF00}ABRIR\n{FF0000}FECHAR","Selecionar" ,"Cancelar"); return 1; } return 0; } public fechar() { MoveObject(SNN, 390.7108, 2498.2642, 18.1633, 5.0); return 1; } public abrir() { MoveObject(SNN, 390.7108, 2498.2642, 12.3209, 5.0); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[ ]) { if(dialogid == 1697) //Menu entrada 994 { if(!response) return(playerid); if(listitem == 0) { SetTimer ( "abrir" , 10000 , false ) ; return 1; } if(listitem == 1) { SetTimer ( "fechar" , 10000 , false ) ; return 1; } return 0; } return 0; } eu tenho esse mais quando cloco em abrou ou fechar nao acontece nada nem abre e nem fecha me ajuda |