14.06.2017, 05:37
Al ejecutar el comando /graff (que se abre este dialogo para crearlo) se me cierra el servidor. (Solo me pasa en el host)
Код:
case SPRAYTAG_CREATE_MAIN: { if(!response) return SprayTag_Dialog(playerid, TYPE_LIST_TAGS_CREATE); switch(listitem) { case 0: ShowPlayerDialog(playerid, SPRAYTAG_CREATE_TEXT, DIALOG_STYLE_INPUT, "{FF0000}CR - "COL_WHITE"Texto", "Introduzca el texto que aparecera en el graffiti.", "Aceptar", "Volver"); case 1: ShowPlayerDialog(playerid, SPRAYTAG_CREATE_FONT, DIALOG_STYLE_LIST, "{FF0000}CR - "COL_WHITE"Fuente", "Arial\nCourier\nImpact\nPricedown\nDaredevil\nBombing\nNaight Fat\nFrom Street Art\nGhang\nGraffogie\nGraphers Blog\nNosegrind Demo", "Aceptar", "Volver"); case 2: ShowPlayerDialog(playerid, SPRAYTAG_CREATE_SIZE, DIALOG_STYLE_INPUT, "{FF0000}CR - "COL_WHITE"Tamaсo", "Introduzca el tamaсo del texto del graffiti.", "Aceptar", "Volver"); case 3: ShowPlayerDialog(playerid, SPRAYTAG_CREATE_COLOR, DIALOG_STYLE_LIST, "{FF0000}CR - "COL_WHITE"Color", "{FF0000}Rojo\n{04B404}Verde\n{00B5CD}Azul Claro\n{FFFF00}Amarillo\n{0000FF}Azul\n{848484}Gris\n{FF00FF}Rosa\n{FFFFFF}Blanco", "Aceptar", "Volver"); case 4: { switch(spraytag_bold[playerid]) { case 0: spraytag_bold[playerid] = 1; case 1: spraytag_bold[playerid] = 0; } SprayTag_Dialog(playerid, TYPE_LIST_CREATE); } case 5: { new Float:Position[3], szText[50], szFont[50] ; GetPlayerPos(playerid, Position[0], Position[1], Position[2]); format(szText, 50, spraytag_text[playerid]); format(szFont, 50, spraytag_font[playerid]); spraytag_object[playerid] = CreateDynamicObject(SPRAY_TAG_OBJECT, Position[0]-1.0, Position[1], Position[2], 0.0, 0.0, 0.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, SPRAY_TAG_OBJECT_DISTANCE); SetDynamicObjectMaterialText(spraytag_object[playerid], 0, szText, OBJECT_MATERIAL_SIZE_512x512, szFont, spraytag_size[playerid], spraytag_bold[playerid], spraytag_color[playerid], 0, 1); EditDynamicObject(playerid, spraytag_object[playerid]); SetPVarInt(playerid, "SPRAYTAG_EDIT", 1); } } }